diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-29 15:19:34 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-29 15:19:34 (GMT) |
commit | 539318f5875de0c0d0e008f820a3bd721d322f09 (patch) | |
tree | edb941b33c894e7571f47d857e84a54f48b671d9 /Source/FLTKDialog | |
parent | 88c32dacc7a193a0a05b5c85daa973a56d580d67 (diff) | |
download | CMake-539318f5875de0c0d0e008f820a3bd721d322f09.zip CMake-539318f5875de0c0d0e008f820a3bd721d322f09.tar.gz CMake-539318f5875de0c0d0e008f820a3bd721d322f09.tar.bz2 |
ENH: add callback for message display
Diffstat (limited to 'Source/FLTKDialog')
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx index 1961a36..dd02b56 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx @@ -12,7 +12,15 @@ #include "../cmake.h" #include "../cmMakefileGenerator.h" - +void FLTKMessageCallback(const char* message, const char* title, bool& nomore) +{ + int ok = + fl_ask(message, "Press cancel to suppress any further messages."); + if(!ok) + { + nomore = true; + } +} /** * Constructor @@ -20,6 +28,7 @@ CMakeSetupGUIImplementation ::CMakeSetupGUIImplementation():m_CacheEntriesList( this ) { + cmSystemTools::SetErrorCallback(FLTKMessageCallback); m_BuildPathChanged = false; } @@ -359,6 +368,7 @@ CMakeSetupGUIImplementation arg += m_WhereBuild; args.push_back(arg); arg = "-G"; + m_GeneratorChoiceString = "Unix Makefiles"; arg += m_GeneratorChoiceString; args.push_back(arg); // run the generate process |