Commit 2cf67cf8 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - the module graph can now be written separately too

parent c3dca89c
......@@ -181,6 +181,7 @@ void WMainWindow::setupPermanentToolBar()
// setup save button
QMenu* saveMenu = new QMenu( "Save Project", projectSaveButton );
saveMenu->addAction( "Save Project", this, SLOT( projectSaveAll() ) );
saveMenu->addAction( "Save Modules", this, SLOT( projectSaveModuleOnly() ) );
saveMenu->addAction( "Save Camera", this, SLOT( projectSaveCameraOnly() ) );
saveMenu->addAction( "Save ROIs", this, SLOT( projectSaveROIOnly() ) );
projectSaveButton->setPopupMode( QToolButton::MenuButtonPopup );
......@@ -454,6 +455,13 @@ void WMainWindow::projectSaveROIOnly()
projectSave( w );
}
void WMainWindow::projectSaveModuleOnly()
{
std::vector< boost::shared_ptr< WProjectFileIO > > w;
w.push_back( WProjectFile::getModuleWriter() );
projectSave( w );
}
void WMainWindow::projectLoad()
{
QFileDialog fd;
......
......@@ -196,6 +196,11 @@ public slots:
*/
void projectSaveROIOnly();
/**
* Gets called by the save menu to only save the Module settings
*/
void projectSaveModuleOnly();
/**
* Sets that a fiber data set has already been loaded. Thi shelps to prevent multiple fiber data sets to be loaded.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment