${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/GEOMUtils
${PROJECT_SOURCE_DIR}/src/GEOMClient
+ ${PROJECT_SOURCE_DIR}/src/GEOMToolsGUI
${PROJECT_BINARY_DIR}/idl
)
// GEOM includes
#include <GEOM_Displayer.h>
+#include <GEOMToolsGUI_ReduceStudyDlg.h>
// QT includes
#include <QMenu>
}
}
+//=================================================================================
+// function : onReduceStudy()
+// purpose : slot for showing dialog box "Reduce Study"
+//=================================================================================
+void DependencyTree_ViewModel::onReduceStudy()
+{
+ DependencyTree_View* viewPort = dynamic_cast<DependencyTree_View*>( getActiveViewPort() );
+ QDialog* dlg = new GEOMToolsGUI_ReduceStudyDlg( viewPort );
+ if( dlg != NULL )
+ dlg->show();
+}
+
//=================================================================================
// function : contextMenuPopup()
// purpose : process calling of context menu popup
theMenu->clear();
theMenu->addAction( tr( "MEN_DISPLAY" ), this, SLOT( onShowSelected() ) );
theMenu->addAction( tr( "MEN_DISPLAY_ONLY" ), this, SLOT( onShowOnlySelected() ) );
- theMenu->addAction( tr( "REBUILD_THE_TREE"), viewPort, SLOT( onRebuildModel() ) );
+ theMenu->addAction( tr( "MEN_REBUILD_THE_TREE"), viewPort, SLOT( onRebuildModel() ) );
+ theMenu->addSeparator();
+ theMenu->addAction( tr( "MEN_REDUCE_STUDY" ), this, SLOT( onReduceStudy() ) );
}
}
}
</message>
<name>DependencyTree_ViewModel</name>
<message>
- <source>REBUILD_THE_TREE</source>
+ <source>MEN_REBUILD_THE_TREE</source>
<translation>Rebuild the tree</translation>
</message>
+ <message>
+ <source>MEN_REDUCE_STUDY</source>
+ <translation>Reduce study</translation>
+ </message>
</context>
</TS>
</message>
<name>DependencyTree_ViewModel</name>
<message>
- <source>REBUILD_THE_TREE</source>
+ <source>MEN_REBUILD_THE_TREE</source>
<translation type="unfinished">Rebuild the tree</translation>
</message>
+ <message>
+ <source>MEN_REDUCE_STUDY</source>
+ <translation type="unfinished">Reduce study</translation>
+ </message>
</context>
</TS>
</message>
<name>DependencyTree_ViewModel</name>
<message>
- <source>REBUILD_THE_TREE</source>
+ <source>MEN_REBUILD_THE_TREE</source>
<translation type="unfinished">Rebuild the tree</translation>
</message>
+ <message>
+ <source>MEN_REDUCE_STUDY</source>
+ <translation type="unfinished">Reduce study</translation>
+ </message>
</context>
</TS>
\ No newline at end of file