class QtxDblSpinBox;
class SUIT_ViewWindow;
class SUIT_ViewManager;
+class SalomeApp_Module;
class VisuGUI_CutPlanesPane : public QFrame
Q_OBJECT
public:
- VisuGUI_CutPlanesPane(QWidget* theParent/*, SUIT_ViewManager * theStudy*/);
+ VisuGUI_CutPlanesPane (QWidget* parent);
~VisuGUI_CutPlanesPane();
void setNbPlanes( const int nbp ) {nbPlan->setValue( nbp );}
double Y1, Y2;
double Z1, Z2;
bool hasInit;
- //SUIT_ViewManager *myMgr;
- //vector<SALOME_Actor*> myPreviewActors;
SALOME_Actor* myPreviewActor;
private slots:
};
-
class VisuGUI_CutPlanesDlg : public QDialog
{
Q_OBJECT
public:
- //VisuGUI_CutPlanesDlg(QWidget* parent, bool theIsCreation = true, bool theIsModal = false);
- VisuGUI_CutPlanesDlg(QWidget* parent, bool theIsCreation = true, bool theIsModal = true);
+ VisuGUI_CutPlanesDlg (SalomeApp_Module* theModule);
~VisuGUI_CutPlanesDlg() {};
- void initFromPrsObject(VISU::CutPlanes_i* thePrs)
- {myPrs=thePrs; myScalarPane->initFromPrsObject(thePrs); myCutPane->initFromPrsObject(thePrs);}
-
- int storeToPrsObject(VISU::CutPlanes_i* thePrs)
- {return myScalarPane->storeToPrsObject(thePrs) && myCutPane->storeToPrsObject(thePrs);}
+ void initFromPrsObject (VISU::CutPlanes_i* thePrs);
+ int storeToPrsObject (VISU::CutPlanes_i* thePrs);
protected slots:
- void accept();
- void reject();
- void onWindowActivated( SUIT_ViewWindow* );
+ void accept();
+ void reject();
+ void onWindowActivated (SUIT_ViewWindow*);
private:
VisuGUI_CutPlanesPane* myCutPane;
VisuGUI_ScalarBarPane* myScalarPane;
- VISU::CutPlanes_i* myPrs;
-
- bool myIsCreation;
-
- //SUIT_ViewManager *myMgr;
- //SUIT_ViewWindow *myStudyWnd;
+ VISU::CutPlanes_i* myPrs;
};
class VisuGUI_NumEditItem: public QTableItem
{
- // Q_OBJECT
-
public:
VisuGUI_NumEditItem(QTable* table, EditType et, const QString& text ):
QTableItem(table, et, text) {};
QWidget* createEditor() const;
};
-
#endif // VISUGUI_CUTPLANESDLG_H