diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-06 06:16:11 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-06 06:16:11 (GMT) |
commit | e8a208384c77455d51c398132ff487df86a66f89 (patch) | |
tree | 89a8753a54708b4ecbe0cf43b3b77d5589b6951b /Source/QtDialog/QCMake.cxx | |
parent | 87e1004f25702d5d21385cd5f616963c67f89b9e (diff) | |
download | CMake-e8a208384c77455d51c398132ff487df86a66f89.zip CMake-e8a208384c77455d51c398132ff487df86a66f89.tar.gz CMake-e8a208384c77455d51c398132ff487df86a66f89.tar.bz2 |
ENH: Add menus in menu bar.
Add reload & delete cache options.
Add option to quit after generation step (not yet remembered between sessions).
Add Help -> About
Remove Help button (in menu now)
Remove Cancel button (File -> Exit and the Window 'X' button exist)
Diffstat (limited to 'Source/QtDialog/QCMake.cxx')
-rw-r--r-- | Source/QtDialog/QCMake.cxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx index 367f6b3..0fa7441 100644 --- a/Source/QtDialog/QCMake.cxx +++ b/Source/QtDialog/QCMake.cxx @@ -248,3 +248,27 @@ QStringList QCMake::availableGenerators() const return this->AvailableGenerators; } +void QCMake::deleteCache() +{ + // delete cache + this->CMakeInstance->GetCacheManager()->DeleteCache(this->BinaryDirectory.toAscii().data()); + // reload to make our cache empty + this->CMakeInstance->GetCacheManager()->LoadCache(this->BinaryDirectory.toAscii().data()); + // emit no generator and no properties + this->setGenerator(QString()); + QCMakeCachePropertyList props = this->properties(); + emit this->propertiesChanged(props); +} + +void QCMake::reloadCache() +{ + // emit that the cache was cleaned out + QCMakeCachePropertyList props; + emit this->propertiesChanged(props); + // reload + this->CMakeInstance->GetCacheManager()->LoadCache(this->BinaryDirectory.toAscii().data()); + // emit new cache properties + props = this->properties(); + emit this->propertiesChanged(props); +} + |