cmQTWrapUICommand.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmQTWrapUICommand_h
  11. #define cmQTWrapUICommand_h
  12. #include "cmCommand.h"
  13. #include "cmSourceFile.h"
  14. /** \class cmQTWrapUICommand
  15. * \brief Create .h and .cxx files rules for QT user interfaces files
  16. *
  17. * cmQTWrapUICommand is used to create wrappers for QT classes into normal C++
  18. */
  19. class cmQTWrapUICommand : public cmCommand
  20. {
  21. public:
  22. cmTypeMacro(cmQTWrapUICommand, cmCommand);
  23. /**
  24. * This is a virtual constructor for the command.
  25. */
  26. virtual cmCommand* Clone()
  27. {
  28. return new cmQTWrapUICommand;
  29. }
  30. /**
  31. * This is called when the command is first encountered in
  32. * the CMakeLists.txt file.
  33. */
  34. virtual bool InitialPass(std::vector<std::string> const& args,
  35. cmExecutionStatus &status);
  36. /**
  37. * The name of the command as specified in CMakeList.txt.
  38. */
  39. virtual const char* GetName() { return "qt_wrap_ui";}
  40. /**
  41. * Succinct documentation.
  42. */
  43. virtual const char* GetTerseDocumentation()
  44. {
  45. return "Create Qt user interfaces Wrappers.";
  46. }
  47. /**
  48. * More documentation.
  49. */
  50. virtual const char* GetFullDocumentation()
  51. {
  52. return
  53. " qt_wrap_ui(resultingLibraryName HeadersDestName\n"
  54. " SourcesDestName SourceLists ...)\n"
  55. "Produce .h and .cxx files for all the .ui files listed "
  56. "in the SourceLists. "
  57. "The .h files will be added to the library using the HeadersDestName"
  58. "source list. "
  59. "The .cxx files will be added to the library using the SourcesDestName"
  60. "source list.";
  61. }
  62. };
  63. #endif