cmakewizard.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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. #include "cmStandardIncludes.h"
  15. class cmakewizard
  16. {
  17. public:
  18. cmakewizard();
  19. /**
  20. * Prompt the user to see if they want to see advanced entires.
  21. */
  22. virtual bool AskAdvanced();
  23. /**
  24. * Prompt the User for a new value for key, the answer is put in entry.
  25. */
  26. virtual void AskUser(const char* key, cmCacheManager::CacheEntry & entry);
  27. ///! Show a message to wait for cmake to run.
  28. virtual void ShowMessage(const char*);
  29. /**
  30. * Run cmake in wizard mode. This will coninue to ask the user questions
  31. * until there are no more entries in the cache.
  32. */
  33. void RunWizard(std::vector<std::string>const& args);
  34. private:
  35. bool m_ShowAdvanced;
  36. };