[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Feb 1 18:59:21 UTC 2007
SVN commit 629179 by rdale:
* Added the qdbus/chat example
* Made the classes generated by uics public
* Added a rule for setting up ${UICS_PATH}
CCMAIL: kde-bindings at kde.org
M +10 -0 CMakeLists.txt
M +3 -0 ChangeLog
M +1 -0 examples/qdbus/CMakeLists.txt
A examples/qdbus/chat (directory)
A examples/qdbus/chat/CMakeLists.txt
A examples/qdbus/chat/chat.cs
A examples/qdbus/chat/chat_adaptor.cs
A examples/qdbus/chat/chat_interface.cs
A examples/qdbus/chat/chatmainwindow.ui
A examples/qdbus/chat/chatsetnickname.ui
M +2 -2 uics/cs/cswritedeclaration.cpp
M +1 -1 uics/uic.cpp
--- trunk/playground/bindings/kimono/CMakeLists.txt #629178:629179
@@ -39,6 +39,16 @@
MESSAGE (STATUS "Looking for gmcs - found - ${GMCS_PATH}")
ENDIF (NOT GMCS_PATH)
+# find 'uics'
+MESSAGE (STATUS "Looking for uics")
+FIND_PROGRAM (UICS_PATH uics)
+IF (NOT UICS_PATH)
+ MESSAGE (STATUS "Looking for uics - not found")
+ MESSAGE (FATAL_ERROR "uics was not found on your system")
+ELSE (NOT UICS_PATH)
+ MESSAGE (STATUS "Looking for uics - found - ${UICS_PATH}")
+ENDIF (NOT UICS_PATH)
+
INCLUDE_DIRECTORIES (${QT_INCLUDES})
ADD_LIBRARY (qyoto SHARED ${SRC_CPP})
TARGET_LINK_LIBRARIES (qyoto smokeqt ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
--- trunk/playground/bindings/kimono/ChangeLog #629178:629179
@@ -1,6 +1,9 @@
2007-01-02 Richard Dale <rdale at foton.es>
* Improved the debugging output for the content of a QMetaObject
+ * Added the qdbus/chat example
+ * Made the classes generated by uics public
+ * Added a rule for setting up ${UICS_PATH}
2007-31-01 Richard Dale <rdale at foton.es>
--- trunk/playground/bindings/kimono/examples/qdbus/CMakeLists.txt #629178:629179
@@ -1,3 +1,4 @@
+ADD_SUBDIRECTORY(chat)
ADD_SUBDIRECTORY(complexpingpong)
ADD_SUBDIRECTORY(listnames)
ADD_SUBDIRECTORY(pingpong)
--- trunk/playground/bindings/kimono/uics/cs/cswritedeclaration.cpp #629178:629179
@@ -69,10 +69,10 @@
if (nsList.count())
output << "\n";
if (option.execCode) {
- output << "partial class " << exportMacro << option.prefix << className << "\n"
+ output << "public partial class " << exportMacro << option.prefix << className << "\n"
<< "{\n";
} else {
- output << "class " << exportMacro << option.prefix << className << "\n"
+ output << "public class " << exportMacro << option.prefix << className << "\n"
<< "{\n";
}
--- trunk/playground/bindings/kimono/uics/uic.cpp #629178:629179
@@ -209,7 +209,7 @@
if (option().execCode) {
QString qualifiedClassName = ui->elementClass() + option().postfix;
QString className = qualifiedClassName;
- out << "partial class " << option().prefix << className << " {" << endl;
+ out << "public partial class " << option().prefix << className << " {" << endl;
out << option().indent << "public static int Main(string[] args) {" << endl;
out << option().indent << option().indent << "new QApplication(args);" << endl;
out << option().indent << option().indent << option().prefix << className << " u = new " << option().prefix << className << "();" << endl;
More information about the Kde-bindings
mailing list