#include <SUIT_ViewManager.h>
#include <SUIT_ResourceMgr.h>
-#include <TableViewer_ViewModel.h>
-#include <TableViewer_ViewManager.h>
-
-#include <VTKViewer_ViewModel.h>
-#include <VTKViewer_ViewManager.h>
-
#include <QtxDockAction.h>
#include <QtxActionMenuMgr.h>
#include <QtxActionToolMgr.h>
myEditEnabled( true )
{
setDesktop( new STD_MDIDesktop() );
- myTableMgr = 0;
- myVTKMgr = 0;
}
/*!Destructor.*/
tr( "MEN_DESK_EDIT_PASTE" ), tr( "PRP_DESK_EDIT_PASTE" ),
Qt::CTRL+Qt::Key_V, desk, false, this, SLOT( onPaste() ) );
- createAction( TableViewId, tr( "Table view" ),
- resMgr->loadPixmap( "STD", tr( "ICON_EDIT_COPY" ) ),
- tr( "Table view" ), tr( "Table view" ),
- Qt::CTRL+Qt::Key_T, desk, false, this, SLOT( onTableView() ) );
-
- createAction( VTKViewId, tr( "VTK view" ),
- resMgr->loadPixmap( "STD", tr( "ICON_EDIT_COPY" ) ),
- tr( "VTK view" ), tr( "VTK view" ),
- Qt::CTRL+Qt::Key_V, desk, false, this, SLOT( onVTKView() ) );
-
QAction* a = createAction( ViewStatusBarId, tr( "TOT_DESK_VIEW_STATUSBAR" ),
QIcon(), tr( "MEN_DESK_VIEW_STATUSBAR" ),
tr( "PRP_DESK_VIEW_STATUSBAR" ), Qt::SHIFT+Qt::Key_S, desk, true );
createMenu( EditCopyId, editMenu );
createMenu( EditPasteId, editMenu );
- createMenu( TableViewId, editMenu );
- createMenu( VTKViewId, editMenu );
createMenu( separator(), editMenu );
createMenu( ViewToolBarsId, viewMenu, 0 );
createTool( separator(), stdTBar );
createTool( EditCopyId, stdTBar );
createTool( EditPasteId, stdTBar );
- createTool( TableViewId, stdTBar );
- createTool( VTKViewId, stdTBar );
}
/*!Opens new application*/
{
}
-void STD_Application::onTableView()
-{
- if ( !myTableMgr ) {
- if ( !activeStudy() )
- createEmptyStudy();
- myTableMgr = new TableViewer_ViewManager( activeStudy(), desktop() );
- TableViewer_Viewer* vm = new TableViewer_Viewer();
- myTableMgr->setViewModel( vm );
- }
- myTableMgr->createView();
-}
-
-void STD_Application::onVTKView()
-{
- if ( !myVTKMgr ) {
- if ( !activeStudy() )
- createEmptyStudy();
- myVTKMgr = new VTKViewer_ViewManager( activeStudy(), desktop() );
- }
- myVTKMgr->createView();
-}
-
/*!Sets \a theEnable for menu manager and for tool manager.*/
void STD_Application::setEditEnabled( bool theEnable )
{
class SUIT_Desktop;
class SUIT_ViewManager;
class SUIT_PopupClient;
-class TableViewer_ViewManager;
-class VTKViewer_ViewManager;
typedef QList<SUIT_ViewManager*> ViewManagerList;
public:
enum { FileNewId, FileOpenId, FileCloseId, FileSaveId, FileSaveAsId, FileExitId,
ViewWindowsId, ViewToolBarsId, ViewStatusBarId, NewWindowId,
- EditCutId, EditCopyId, EditPasteId, HelpAboutId,
- TableViewId, VTKViewId, UserID };
+ EditCutId, EditCopyId, EditPasteId, HelpAboutId, UserID };
enum { CloseSave, CloseDiscard, CloseCancel };
virtual void onCopy();
virtual void onPaste();
- virtual void onTableView();
- virtual void onVTKView();
virtual void onViewStatusBar( bool );
private:
bool myExitConfirm;
bool myEditEnabled;
- TableViewer_ViewManager* myTableMgr;
- VTKViewer_ViewManager* myVTKMgr;
};
#if defined WIN32
</section>
<section name="splash" >
<!-- Splash screen settings -->
- <parameter name="image" value="${GUI_ROOT_DIR}/share/salome/resources/gui/icon_about.png" />
+ <parameter name="image" value="" />
<parameter name="constant_info" value="%A [ %V ]" />
<parameter name="text_colors" value="#5A81BF|#20408F" />
<parameter name="hide_on_click" value="no" />
</section>
<section name="resources">
<!-- Resource directories (resource manager)-->
- <parameter name="SUIT" value="${GUI_ROOT_DIR}/resources"/>
- <parameter name="STD" value="${GUI_ROOT_DIR}/resources"/>
- <parameter name="Plot2d" value="${GUI_ROOT_DIR}/resources"/>
- <parameter name="TableViewer" value="${GUI_ROOT_DIR}/resources"/>
- <parameter name="VTKViewer" value="${GUI_ROOT_DIR}/resources"/>
- <parameter name="OB" value="${GUI_ROOT_DIR}/resources"/>
+ <parameter name="SUIT" value="${SUIT_DIR}/resources"/>
+ <parameter name="STD" value="${SUIT_DIR}/resources"/>
+ <parameter name="Plot2d" value="${SUIT_DIR}/resources"/>
+ <parameter name="TableViewer" value="${SUIT_DIR}/resources"/>
+ <parameter name="VTKViewer" value="${SUIT_DIR}/resources"/>
+ <parameter name="OB" value="${SUIT_DIR}/resources"/>
</section>
<section name="desktop" >
<!-- Default GUI desktop state, position, size -->