cmakewizard.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #include "cmMakefile.h"
  11. class cmakewizard
  12. {
  13. public:
  14. cmakewizard();
  15. virtual ~cmakewizard() {}
  16. /**
  17. * Prompt the user to see if they want to see advanced entries.
  18. */
  19. virtual bool AskAdvanced();
  20. /**
  21. * Prompt the User for a new value for key, the answer is put in entry.
  22. */
  23. virtual void AskUser(const char* key, cmCacheManager::CacheIterator& iter);
  24. ///! Show a message to wait for cmake to run.
  25. virtual void ShowMessage(const char*);
  26. /**
  27. * Run cmake in wizard mode. This will coninue to ask the user questions
  28. * until there are no more entries in the cache.
  29. */
  30. int RunWizard(std::vector<std::string>const& args);
  31. private:
  32. bool ShowAdvanced;
  33. };