FIX: stupid pb fixed (close to being medieval'ed by The Ken)
[cmake.git] / Source / cmFLTKWrapUICommand.h
blob6607b02edc147de96b264a6bd7321092f5f85409
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmFLTKWrapUICommand.h,v $
5 Language: C++
6 Date: $Date: 2002-01-21 20:30:24 $
7 Version: $Revision: 1.4 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmFLTKWrapUICommand_h
18 #define cmFLTKWrapUICommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmFLTKWrapUICommand
24 * \brief Create .h and .cxx files rules for FLTK user interfaces files
26 * cmFLTKWrapUICommand is used to create wrappers for FLTK classes into normal C++
28 class cmFLTKWrapUICommand : public cmCommand
30 public:
31 /**
32 * This is a virtual constructor for the command.
34 virtual cmCommand* Clone()
36 return new cmFLTKWrapUICommand;
39 /**
40 * This is called when the command is first encountered in
41 * the CMakeLists.txt file.
43 virtual bool InitialPass(std::vector<std::string> const& args);
45 /**
46 * This is called at the end after all the information
47 * specified by the command is accumulated. Most commands do
48 * not implement this method. At this point, reading and
49 * writing to the cache can be done.
51 virtual void FinalPass();
53 /**
54 * The name of the command as specified in CMakeList.txt.
56 virtual const char* GetName() { return "FLTK_WRAP_UI";}
58 /**
59 * Succinct documentation.
61 virtual const char* GetTerseDocumentation()
63 return "Create FLTK user interfaces Wrappers.";
66 /**
67 * More documentation.
69 virtual const char* GetFullDocumentation()
71 return
72 "FLTK_WRAP_UI(resultingLibraryName SourceList)\n"
73 "Produce .h and .cxx files for all the .fl and .fld file listed "
74 "in the SourceList.\n"
75 "The .h files will be added to the library using the base name in\n"
76 "source list.\n"
77 "The .cxx files will be added to the library using the base name in \n"
78 "source list.";
81 private:
82 /**
83 * List of produced files.
85 std::vector<cmSourceFile> m_GeneratedSourcesClasses;
86 std::vector<cmSourceFile> m_GeneratedHeadersClasses;
87 /**
88 * List of Fluid files that provide the source
89 * generating .cxx and .h files
91 std::vector<std::string> m_WrapUserInterface;
92 std::string m_Target;
93 std::string m_GUISourceList;
98 #endif