- SalomeApp_Module::initialize( app );
-
- QWidget* parent = application()->desktop();
-
- createAction( lgLoadFile, tr( "TOP_LOAD_FILE" ), QIconSet(), tr( "MEN_LOAD_FILE" ),
- tr( "STB_LOAD_FILE" ), 0, parent, false, this, SLOT( onLoadFile() ) );
- createAction( lgSaveFile, tr( "TOP_SAVE_FILE" ), QIconSet(), tr( "MEN_SAVE_FILE" ),
- tr( "STB_SAVE_FILE" ), 0, parent, false, this, SLOT( onSaveFile() ) );
- createAction( lgEditLine, tr( "TOP_EDIT_LINE" ), QIconSet(), tr( "MEN_EDIT_LINE" ),
- tr( "STB_EDIT_LINE" ), 0, parent, false, this, SLOT( onEditLine() ) );
- createAction( lgAddLine, tr( "TOP_ADD_LINE" ), QIconSet(), tr( "MEN_ADD_LINE" ),
- tr( "STB_ADD_LINE" ), 0, parent, false, this, SLOT( onAddLine() ) );
- createAction( lgDelLine, tr( "TOP_DEL_LINE" ), QIconSet(), tr( "MEN_DEL_LINE" ),
- tr( "STB_DEL_LINE" ), 0, parent, false, this, SLOT( onDelLine() ) );
- createAction( lgClear, tr( "TOP_CLEAR_ALL" ), QIconSet(), tr( "MEN_CLEAR_ALL" ),
- tr( "STB_CLEAR_ALL" ), 0, parent, false, this, SLOT( onClear() ) );
+}
+
+/*!
+ \brief Initialize module. Creates menus, prepares context menu, etc.
+ \param app application instance
+*/
+void LIGHTGUI::initialize( CAM_Application* app )
+{
+ LightApp_Module::initialize( app );
+
+ SUIT_Desktop* desk = application()->desktop();
+
+ createAction( lgLoadFile, tr( "TOP_LOAD_FILE" ), QIcon(), tr( "MEN_LOAD_FILE" ),
+ tr( "STB_LOAD_FILE" ), 0, desk, false, this, SLOT( onLoadFile() ) );
+ createAction( lgDisplayLine, tr( "TOP_DISPLAY_LINE" ), QIcon(), tr( "MEN_DISPLAY_LINE" ),
+ tr( "STB_DISPLAY_LINE" ), 0, desk, false, this, SLOT( onDisplayLine() ) );
+ createAction( lgEraseLine, tr( "TOP_ERASE_LINE" ), QIcon(), tr( "MEN_ERASE_LINE" ),
+ tr( "STB_ERASE_LINE" ), 0, desk, false, this, SLOT( onEraseLine() ) );
+ createAction( lgSaveFile, tr( "TOP_SAVE_FILE" ), QIcon(), tr( "MEN_SAVE_FILE" ),
+ tr( "STB_SAVE_FILE" ), 0, desk, false, this, SLOT( onSaveFile() ) );
+ createAction( lgEditLine, tr( "TOP_EDIT_LINE" ), QIcon(), tr( "MEN_EDIT_LINE" ),
+ tr( "STB_EDIT_LINE" ), 0, desk, false, this, SLOT( onEditLine() ) );
+ createAction( lgAddLine, tr( "TOP_ADD_LINE" ), QIcon(), tr( "MEN_ADD_LINE" ),
+ tr( "STB_ADD_LINE" ), 0, desk, false, this, SLOT( onAddLine() ) );
+ createAction( lgDelLine, tr( "TOP_DEL_LINE" ), QIcon(), tr( "MEN_DEL_LINE" ),
+ tr( "STB_DEL_LINE" ), 0, desk, false, this, SLOT( onDelLine() ) );
+ createAction( lgClear, tr( "TOP_CLEAR_ALL" ), QIcon(), tr( "MEN_CLEAR_ALL" ),
+ tr( "STB_CLEAR_ALL" ), 0, desk, false, this, SLOT( onClear() ) );