summaryrefslogtreecommitdiffstats
path: root/Source/cmQTWrapUICommand.h
diff options
context:
space:
mode:
authorFranck Bettinger <bettingf@cs.man.ac.uk>2001-11-09 17:03:41 (GMT)
committerFranck Bettinger <bettingf@cs.man.ac.uk>2001-11-09 17:03:41 (GMT)
commitbecce939a2ca00ee15b7beb722dea311efdd2573 (patch)
treede6c8034996f4b2553baec6416dc53c12af80011 /Source/cmQTWrapUICommand.h
parent61a66c2645cc540cdce801f24567df7a922e24d5 (diff)
downloadCMake-becce939a2ca00ee15b7beb722dea311efdd2573.zip
CMake-becce939a2ca00ee15b7beb722dea311efdd2573.tar.gz
CMake-becce939a2ca00ee15b7beb722dea311efdd2573.tar.bz2
support for compilation of .ui files into .h and .cxx files
Diffstat (limited to 'Source/cmQTWrapUICommand.h')
-rw-r--r--Source/cmQTWrapUICommand.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/Source/cmQTWrapUICommand.h b/Source/cmQTWrapUICommand.h
new file mode 100644
index 0000000..0daad14
--- /dev/null
+++ b/Source/cmQTWrapUICommand.h
@@ -0,0 +1,83 @@
+#ifndef cmQTWrapUICommand_h
+#define cmQTWrapUICommand_h
+
+#include "cmStandardIncludes.h"
+#include "cmCommand.h"
+
+/** \class cmQTWrapUICommand
+ * \brief Create .h and .cxx files rules for QT user interfaces files
+ *
+ * cmQTWrapUICommand is used to create wrappers for QT classes into normal C++
+ */
+class cmQTWrapUICommand : public cmCommand
+{
+public:
+ /**
+ * This is a virtual constructor for the command.
+ */
+ virtual cmCommand* Clone()
+ {
+ return new cmQTWrapUICommand;
+ }
+
+ /**
+ * This is called when the command is first encountered in
+ * the CMakeLists.txt file.
+ */
+ virtual bool InitialPass(std::vector<std::string> const& args);
+
+ /**
+ * This is called at the end after all the information
+ * specified by the command is accumulated. Most commands do
+ * not implement this method. At this point, reading and
+ * writing to the cache can be done.
+ */
+ virtual void FinalPass();
+
+ /**
+ * The name of the command as specified in CMakeList.txt.
+ */
+ virtual const char* GetName() { return "QT_WRAP_UI";}
+
+ /**
+ * Succinct documentation.
+ */
+ virtual const char* GetTerseDocumentation()
+ {
+ return "Create QT user interfaces Wrappers.";
+ }
+
+ /**
+ * More documentation.
+ */
+ virtual const char* GetFullDocumentation()
+ {
+ return
+ "QT_WRAP_UI(resultingLibraryName HeadersDestName SourcesDestName "
+ "SourceLists ...)\n"
+ "Produce .h and .cxx files for all the .ui file listed "
+ "in the SourceLists.\n"
+ "The .h files will be added to the library using the HeadersDestName\n"
+ "source list.\n"
+ "The .cxx files will be added to the library using the SourcesDestName\n"
+ "source list.";
+ }
+
+private:
+ /**
+ * List of produced files.
+ */
+ std::vector<cmSourceFile> m_WrapSourcesClasses;
+ std::vector<cmSourceFile> m_WrapHeadersClasses;
+ /**
+ * List of header files that pprovide the source for m_WrapClasses.
+ */
+ std::vector<std::string> m_WrapUserInterface;
+ std::string m_LibraryName;
+ std::string m_HeaderList;
+ std::string m_SourceList;
+};
+
+
+
+#endif