[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebindings/kjsembed/bindwizard
From: Richard J. Moore <rich () kde ! org>
Date: 2004-05-01 0:53:31
Message-ID: 20040501005331.7BB739A6E () office ! kde ! org
[Download RAW message or body]
CVS commit by rich:
- Improved binding wizard.
M +26 -4 binding_wizard.js 1.6
M +44 -0 binding_wizard.ui 1.5
--- kdebindings/kjsembed/bindwizard/binding_wizard.js #1.5:1.6
@@ -14,4 +14,5 @@
classes = new Array();
page = 0;
+output = new Array();
imp = new BindingWizard();
@@ -73,14 +74,18 @@
var out = "<b>Binding Class '" + clazz + "'...</b><pre>\n";
- var cmd = 'xsltproc doxygen2imp_h.xsl xml/class' + clazz + '.xml -o '
- + output_dir + '/' + clazz.toLowerCase() + '_imp.h';
+ var outfile = output_dir + '/' + clazz.toLowerCase() + '_imp.h';
+ var cmd = 'xsltproc doxygen2imp_h.xsl xml/class' + clazz + '.xml -o ' + outfile;
out += cmd + '\n';
out += shell( cmd );
+ output[ output.length ] = outfile;
+
+ outfile = output_dir + '/' + clazz.toLowerCase() + '_imp.cpp';
+ var cmd2 = 'xsltproc doxygen2imp_cpp.xsl xml/class' + clazz + '.xml -o ' + outfile;
- var cmd2 = 'xsltproc doxygen2imp_cpp.xsl xml/class' + clazz + '.xml -o '
- + output_dir + '/' + clazz.toLowerCase() + '_imp.cpp';
out += cmd2 + '\n';
out += shell( cmd2 );
+ output[ output.length ] = outfile;
+
out += '</pre>';
@@ -114,4 +119,8 @@
}
+ //
+ // Lists the classes available for binding. In future, this will let you
+ // control which classes are processed.
+ //
this.list_classes = function() {
@@ -165,4 +174,14 @@
}
+ this.view_results = function() {
+
+ var lv = wiz.child('bindings');
+
+ for ( var i=0 ; i < output.length ; i++ ) {
+ lv.insertItem( output[i] );
+ }
+
+ }
+
//
// Called to setup the display of the next page.
@@ -181,4 +200,7 @@
this.invoke();
}
+ else if ( page == 4 ) {
+ this.view_results();
+ }
}
--- kdebindings/kjsembed/bindwizard/binding_wizard.ui #1.4:1.5
@@ -434,4 +434,47 @@
<string>Results</string>
</attribute>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>textLabel3_2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>10</y>
+ <width>312</width>
+ <height>19</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>The following binding files have been created:</string>
+ </property>
+ </widget>
+ <widget class="KListView">
+ <column>
+ <property name="text">
+ <string>Filename</string>
+ </property>
+ <property name="clickable">
+ <bool>false</bool>
+ </property>
+ <property name="resizable">
+ <bool>false</bool>
+ </property>
+ </column>
+ <property name="name">
+ <cstring>bindings</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>40</y>
+ <width>700</width>
+ <height>430</height>
+ </rect>
+ </property>
+ <property name="resizeMode">
+ <enum>LastColumn</enum>
+ </property>
+ </widget>
</widget>
</widget>
@@ -446,4 +489,5 @@
<includehint>kpushbutton.h</includehint>
<includehint>klistview.h</includehint>
+ <includehint>klistview.h</includehint>
</includehints>
</UI>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic