#include "SVTK_View.h"
+#include "SUIT_ResourceMgr.h"
+#include "SUIT_Session.h"
+
+#include "QtxAction.h"
+
+#include <qtoolbar.h>
+
+
//----------------------------------------------------------------------------
VVTK_ViewWindow
::VVTK_ViewWindow( SUIT_Desktop* theDesktop,
connect(this,SIGNAL(selectionChanged()),
theModel,SLOT(onSelectionChanged()));
+
+ // create another toolbar
+ myToolBar = new QToolBar(this);
+ myToolBar->setCloseMode(QDockWindow::Undocked);
+ myToolBar->setLabel(tr("LBL_TOOLBAR_LABEL"));
+
+ SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
+ // SVTK / VVTK switcher action
+ QtxAction* aAction = new QtxAction(tr("MNU_VVTK_SWITCH"), aResMgr->loadPixmap( "VISU", tr( "ICON_VVTK_SWITCH" ) ),
+ tr( "MNU_VVTK_SWITCH" ), 0, this);
+ aAction->setStatusTip(tr("DSC_VVTK_SWITCH"));
+ connect(aAction, SIGNAL(activated()), this, SLOT(onSwitchIS()));
+ aAction->addTo( myToolBar );
}
//----------------------------------------------------------------------------
::~VVTK_ViewWindow()
{
}
+
+//----------------------------------------------------------------------------
+void
+VVTK_ViewWindow
+::onSwitchIS()
+{
+ printf( "onswitch IS \n\n" );
+}
#include "SVTK_ViewWindow.h"
class VVTK_Viewer;
+class QToolBar;
class VVTK_EXPORT VVTK_ViewWindow : public SVTK_ViewWindow
{
public:
VVTK_ViewWindow( SUIT_Desktop*, VVTK_Viewer* );
virtual ~VVTK_ViewWindow();
+
+protected slots:
+ void onSwitchIS();
+
+private:
+ QToolBar* myToolBar;
+
};
#ifdef WIN32