diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-11-27 03:40:31 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-11-27 03:40:31 (GMT) |
commit | 0eb838643e95bce81d9ba2b048fb8895fb133295 (patch) | |
tree | 9602a81973e90487279384763364ca25f3311187 /Source/cmFLTKWrapUICommand.h | |
parent | eecf4b9cbf86e64d48f0fa3eb3eb622cb5d366b0 (diff) | |
download | CMake-0eb838643e95bce81d9ba2b048fb8895fb133295.zip CMake-0eb838643e95bce81d9ba2b048fb8895fb133295.tar.gz CMake-0eb838643e95bce81d9ba2b048fb8895fb133295.tar.bz2 |
Command for invoking FLTK's code generator "Fluid" during the building process
Diffstat (limited to 'Source/cmFLTKWrapUICommand.h')
-rw-r--r-- | Source/cmFLTKWrapUICommand.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Source/cmFLTKWrapUICommand.h b/Source/cmFLTKWrapUICommand.h new file mode 100644 index 0000000..8cc8142 --- /dev/null +++ b/Source/cmFLTKWrapUICommand.h @@ -0,0 +1,83 @@ +#ifndef cmFLTKWrapUICommand_h +#define cmFLTKWrapUICommand_h + +#include "cmStandardIncludes.h" +#include "cmCommand.h" + +/** \class cmFLTKWrapUICommand + * \brief Create .h and .cxx files rules for FLTK user interfaces files + * + * cmFLTKWrapUICommand is used to create wrappers for FLTK classes into normal C++ + */ +class cmFLTKWrapUICommand : public cmCommand +{ +public: + /** + * This is a virtual constructor for the command. + */ + virtual cmCommand* Clone() + { + return new cmFLTKWrapUICommand; + } + + /** + * 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 "FLTK_WRAP_UI";} + + /** + * Succinct documentation. + */ + virtual const char* GetTerseDocumentation() + { + return "Create FLTK user interfaces Wrappers."; + } + + /** + * More documentation. + */ + virtual const char* GetFullDocumentation() + { + return + "FLTK_WRAP_UI(resultingLibraryName HeadersDestName SourcesDestName " + "SourceLists ...)\n" + "Produce .h and .cxx files for all the .fl and .fld 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 |