cmakewizard.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmMakefile.h"
  14. class cmakewizard
  15. {
  16. public:
  17. cmakewizard();
  18. /**
  19. * Prompt the user to see if they want to see advanced entires.
  20. */
  21. virtual bool AskAdvanced();
  22. /**
  23. * Prompt the User for a new value for key, the answer is put in entry.
  24. */
  25. virtual void AskUser(const char* key, cmCacheManager::CacheIterator& iter);
  26. ///! Show a message to wait for cmake to run.
  27. virtual void ShowMessage(const char*);
  28. /**
  29. * Run cmake in wizard mode. This will coninue to ask the user questions
  30. * until there are no more entries in the cache.
  31. */
  32. void RunWizard(std::vector<std::string>const& args);
  33. private:
  34. bool m_ShowAdvanced;
  35. };