Imported Upstream version 2.8.9
[platform/upstream/cmake.git] / Source / cmakewizard.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12
13
14 #include "cmMakefile.h"
15
16 class cmakewizard
17 {
18 public:
19   cmakewizard();
20   virtual ~cmakewizard() {}
21   /** 
22    * Prompt the user to see if they want to see advanced entries.
23    */
24   virtual bool AskAdvanced();
25   
26   /**
27    * Prompt the User for a new value for key, the answer is put in entry.
28    */
29   virtual void AskUser(const char* key, cmCacheManager::CacheIterator& iter);
30   ///! Show a message to wait for cmake to run.
31   virtual void ShowMessage(const char*);
32   
33   /**  
34    *  Run cmake in wizard mode.  This will coninue to ask the user questions 
35    *  until there are no more entries in the cache.
36    */
37   int RunWizard(std::vector<std::string>const& args);
38   
39 private:
40   bool ShowAdvanced;
41 };
42