QWidget* getViewWidget();
/* display */
- void DisplayAll();
- void EraseAll();
+ virtual void DisplayAll();
+ virtual void EraseAll();
void Repaint();
void Display( const Plot2d_Prs* );
*/
SUIT_ViewWindow* Plot2d_Viewer::createView(SUIT_Desktop* theDesktop)
{
- Plot2d_ViewWindow* aPlot2dView = new Plot2d_ViewWindow(theDesktop, this);
+ Plot2d_ViewWindow* aView = new Plot2d_ViewWindow(theDesktop, this);
+ aView->initLayout();
if (myPrs)
- aPlot2dView->getViewFrame()->Display(myPrs);
- return aPlot2dView;
+ aView->getViewFrame()->Display(myPrs);
+ return aView;
}
/*!
{
myModel = theModel;
myDumpImage = QImage();
+}
+/*!
+ \brief Destructor.
+*/
+Plot2d_ViewWindow::~Plot2d_ViewWindow()
+{
+}
+
+/*!
+ \brief Internal initialization.
+*/
+void Plot2d_ViewWindow::initLayout()
+{
myViewFrame = new Plot2d_ViewFrame( this, "plotView" );
setCentralWidget( myViewFrame );
myViewFrame->installEventFilter( this );
}
-/*!
- \brief Destructor.
-*/
-Plot2d_ViewWindow::~Plot2d_ViewWindow()
-{
-}
-
/*!
\brief Get view model.
\return Plot2d view model
void putInfo( const QString&);
Plot2d_ViewFrame* getViewFrame();
QToolBar* getToolBar();
+ virtual void initLayout();
void contextMenuPopup( QMenu* );
virtual bool eventFilter( QObject*, QEvent* );
signals:
void cloneView();
-private:
+protected:
Plot2d_Viewer* myModel;
Plot2d_ViewFrame* myViewFrame;
QToolBar* myToolBar;