the SALOME platform.
- <b>ASCII save</b> - if checked in, your study will be saved in
ASCII format file (or files).
+ - <b>Automatic loading of light modules when opening study</b> - if checked in,
+ Light Modules of the current study will be automatically loaded at the next study
+ opening, allowing completion of object browser.
- <b>Store positions of windows</b> - if checked in, positions of windows
will be saved in a special file at the end of the current session and
then restored for a new session.
REPEAT_BRIEF = NO
ABBREVIATE_BRIEF =
ALWAYS_DETAILED_SEC = YES
-INLINE_INHERITED_MEMB = YES
+INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = YES
STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@ @PROJECT_BINARY_DIR@
STRIP_FROM_INC_PATH =
JAVADOC_AUTOBRIEF = YES
MULTILINE_CPP_IS_BRIEF = NO
DETAILS_AT_TOP = NO
-INHERIT_DOCS = NO
+INHERIT_DOCS = YES
SEPARATE_MEMBER_PAGES = NO
TAB_SIZE = 5
ALIASES =
-OPTIMIZE_OUTPUT_FOR_C = YES
-OPTIMIZE_OUTPUT_JAVA = YES
+OPTIMIZE_OUTPUT_FOR_C = NO
+OPTIMIZE_OUTPUT_JAVA = NO
BUILTIN_STL_SUPPORT = @DOXYGEN_SUPPORT_STL@
DISTRIBUTE_GROUP_DOC = NO
SUBGROUPING = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
EXTRACT_LOCAL_CLASSES = YES
-EXTRACT_LOCAL_METHODS = NO
-HIDE_UNDOC_MEMBERS = YES
-HIDE_UNDOC_CLASSES = YES
+EXTRACT_LOCAL_METHODS = YES
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
HIDE_FRIEND_COMPOUNDS = NO
HIDE_IN_BODY_DOCS = NO
INTERNAL_DOCS = YES
HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
INLINE_INFO = YES
-SORT_MEMBER_DOCS = NO
+SORT_MEMBER_DOCS = YES
SORT_BRIEF_DOCS = NO
-SORT_BY_SCOPE_NAME = NO
+SORT_BY_SCOPE_NAME = YES
GENERATE_TODOLIST = YES
GENERATE_TESTLIST = YES
GENERATE_BUGLIST = YES
GENERATE_DEPRECATEDLIST= YES
ENABLED_SECTIONS =
MAX_INITIALIZER_LINES = 25
-SHOW_USED_FILES = NO
+SHOW_USED_FILES = YES
SHOW_DIRECTORIES = NO
FILE_VERSION_FILTER =
EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS =
EXAMPLE_PATH =
-EXAMPLE_PATTERNS =
+EXAMPLE_PATTERNS = *
EXAMPLE_RECURSIVE = YES
IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/images
INPUT_FILTER =
# configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER = NO
-INLINE_SOURCES = NO
+INLINE_SOURCES = YES
STRIP_CODE_COMMENTS = YES
-REFERENCED_BY_RELATION = NO
+REFERENCED_BY_RELATION = YES
REFERENCES_RELATION = YES
USE_HTAGS = NO
VERBATIM_HEADERS = YES
GENERATE_HTML = YES
HTML_OUTPUT = .
HTML_FILE_EXTENSION = .html
-HTML_HEADER = @CMAKE_CURRENT_BINARY_DIR@/static/header.html
-HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/static/footer.html
-HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/static/salome_extra.css
+HTML_HEADER =
+HTML_FOOTER =
+HTML_EXTRA_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = NO
CHM_FILE =
HIDE_UNDOC_RELATIONS = NO
HAVE_DOT = YES
CLASS_GRAPH = YES
-COLLABORATION_GRAPH = NO
-GROUP_GRAPHS = NO
+COLLABORATION_GRAPH = YES
+GROUP_GRAPHS = YES
UML_LOOK = NO
TEMPLATE_RELATIONS = YES
INCLUDE_GRAPH = YES
-INCLUDED_BY_GRAPH = NO
+INCLUDED_BY_GRAPH = YES
CALL_GRAPH = NO
GRAPHICAL_HIERARCHY = YES
DIRECTORY_GRAPH = YES
MAX_DOT_GRAPH_DEPTH = 0
DOT_TRANSPARENT = NO
DOT_MULTI_TARGETS = NO
-GENERATE_LEGEND = NO
+GENERATE_LEGEND = YES
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
// .... -> ascii save mode
pref->addPreference( tr( "PREF_ASCII_FILE" ), studyGroup, LightApp_Preferences::Bool, "Study", "ascii_file" );
// .... -> store windows geometry
+ pref->addPreference( tr( "PREF_LOAD_LIGHT" ), studyGroup, LightApp_Preferences::Bool, "Study", "autoload_light_modules" );
pref->addPreference( tr( "PREF_STORE_POS" ), studyGroup, LightApp_Preferences::Bool, "Study", "store_positions" );
pref->addPreference( "", studyGroup, LightApp_Preferences::Space );
pref->addPreference( tr( "PREF_STORE_TOOL_POS" ), studyGroup, LightApp_Preferences::Bool, "Study", "store_tool_positions" );
</section>
<section name="Study">
<!-- General study settings -->
+ <parameter name="autoload_light_modules" value="true" />
<parameter name="store_positions" value="true" />
<parameter name="store_tool_positions" value="true" />
<parameter name="auto_save_interval" value="0" />
<source>PREF_GROUP_VTKVIEWER</source>
<translation>VTK 3D Viewer</translation>
</message>
+ <message>
+ <source>PREF_LOAD_LIGHT</source>
+ <translation>Automatic loading of light modules when opening study</translation>
+ </message>
<message>
<source>PREF_STORE_POS</source>
<translation>Store positions of windows</translation>
<source>PREF_GROUP_VTKVIEWER</source>
<translation>Scène VTK 3D</translation>
</message>
+ <message>
+ <source>PREF_LOAD_LIGHT</source>
+ <translation>Chargement automatique des modules Light à l'ouverture d'étude</translation>
+ </message>
<message>
<source>PREF_STORE_POS</source>
<translation>Enregistrer la position des fenêtres</translation>
<source>PREF_GROUP_VTKVIEWER</source>
<translation>VTK 3D Viewer</translation>
</message>
+ <message>
+ <source>PREF_LOAD_LIGHT</source>
+ <translation>Automatic loading of light modules when opening study</translation>
+ </message>
<message>
<source>PREF_STORE_POS</source>
<translation>ウィンドウの位置を保存</translation>
return;
SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
+ if( !aResMgr )
+ return;
QtxAction* aAction;
// update action state if method is called outside
QtxAction* a = dynamic_cast<QtxAction*>( toolMgr()->action( SwitchInteractionStyleId ) );
- if ( a->isChecked() != on )
+ if ( a && a->isChecked() != on )
a->setChecked( on );
}
// update action state if method is called outside
QtxAction* a = dynamic_cast<QtxAction*>( toolMgr()->action( SwitchZoomingStyleId ) );
- if ( a->isChecked() != on )
+ if ( a && a->isChecked() != on )
a->setChecked( on );
}
#include "SalomeApp_Study.h"
#include "SalomeApp_Application.h"
-//#include <SUIT_ResourceMgr.h>
+#include <SUIT_Session.h>
+#include <SUIT_ResourceMgr.h>
#include <SUIT_ViewManager.h>
#include <SUIT_ViewWindow.h>
#include <QtxWorkstack.h>
myApp->modules( mlist );
QListIterator<CAM_Module*> itM( mlist );
CAM_Module* module = 0;
+ SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
+ bool loadLight = aResMgr->booleanValue( "Study", "autoload_light_modules", true );
+
while ( itM.hasNext() ) {
module = itM.next();
if ( !module ) continue;
- if ( SalomeApp_Module* sModule = dynamic_cast<SalomeApp_Module*>( module ) ) {
- ip->append( "AP_MODULES_LIST", sModule->moduleName().toStdString() );
- sModule->storeVisualParameters( savePoint );
+
+ if ( LightApp_Module* lModule = dynamic_cast<LightApp_Module*>( module ) ) {
+ if (loadLight)
+ ip->append( "AP_MODULES_LIST", lModule->moduleName().toStdString() );
+ if ( SalomeApp_Module* sModule = dynamic_cast<SalomeApp_Module*>( module ) )
+ sModule->storeVisualParameters( savePoint );
}
}
</section>
<section name="Study">
<!-- General study settings -->
+ <parameter name="autoload_light_modules" value="true" />
<parameter name="store_positions" value="true" />
<parameter name="store_tool_positions" value="true" />
<parameter name="store_visual_state" value="false" />
ViewerTools_DialogBase
::onParentShow()
{
- if(myAction->isChecked())
+ if(myAction && myAction->isChecked())
show();
else
hide();