Commit acbefdaf authored by Jan Möbius's avatar Jan Möbius

Added globalOption for the drawModeMenu in contextmenu

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3020 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6c1458d9
......@@ -108,6 +108,9 @@ static uint standardDrawMode_ = ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED;
/// Store the disableRedraw_ mode
static bool redrawDisabled_ = false;
/// Set if a drawMode Menu should always be in the context menu
static bool drawModesInContextMenu_ = true;
/// Store the toolbox gui Mode mode
static bool hideToolbox_ = false;
......@@ -415,6 +418,14 @@ bool redrawDisabled( ){
return redrawDisabled_;
}
bool drawModesInContextMenu() {
return drawModesInContextMenu_;
}
void drawModesInContextMenu(bool _show) {
drawModesInContextMenu_ = _show;
}
/// Set if we start the logging widget closed
void hideLogger( bool _hide) {
hideLogger_ = _hide;
......
......@@ -357,6 +357,14 @@ bool iconDir(QString _dir);
DLLEXPORT
bool redrawDisabled( );
/// Get the flag if a drawMode Menu should always be visible in the context menu
DLLEXPORT
bool drawModesInContextMenu();
/// Set the flag if a drawMode Menu should always be visible in the context menu
DLLEXPORT
void drawModesInContextMenu(bool _show);
/** @} */
//===========================================================================
......
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