msgid "VisuGUI::MEN_EXPORT_TABLE"
msgstr "Export Table"
-#msgid "VisuGUI::MEN_FILE"
-#msgstr ""
-
msgid "VisuGUI::MEN_INSIDEFRAME"
msgstr "Insideframe"
msgid "VisuGUI::MEN_SELECTION"
msgstr "Selection"
-msgid "VisuGUI::MEN_REPRESENTATION"
-msgstr "Representation"
-
msgid "VisuGUI::MEN_DISPLAY_SELECTION"
msgstr "Display Selection"
//###################################################################
-
/*!
Constructor
*/
// this, SLOT(onWindowActivated(SUIT_ViewWindow*)));
}
-void VisuGUI_CutPlanesDlg::accept() {
+void VisuGUI_CutPlanesDlg::initFromPrsObject (VISU::CutPlanes_i* thePrs)
+{
+ myPrs = thePrs;
+ myScalarPane->initFromPrsObject(thePrs);
+ myCutPane->initFromPrsObject(thePrs);
+}
+
+int VisuGUI_CutPlanesDlg::storeToPrsObject (VISU::CutPlanes_i* thePrs)
+{
+ return (myScalarPane->storeToPrsObject(thePrs) &&
+ myCutPane->storeToPrsObject(thePrs));
+}
+
+void VisuGUI_CutPlanesDlg::accept()
+{
if (myScalarPane->check())
QDialog::accept();
-/*jfa tmp:
- if (myScalarPane->check()) {
- if (!isModal()) {
- if (storeToPrsObject(myPrs)) {
- if (myIsCreation) {
- if (VISU::GetViewWindow() != NULL) {
- try {
- visuGUI->CreateActor(myPrs);
- }
- catch (...) {
- reject();
- return;
- }
- VISU::GetViewWindow()->onFitAll();
- }
- } else {
- visuGUI->RecreateActor(myPrs);
- if (SVTK_ViewWindow* vf = VISU::GetViewWindow()) {
- if (vf->getRenderer()->GetActors()->GetNumberOfItems() > 0) {
- vf->getRenderer()->ResetCameraClippingRange();
- vf->Repaint();
- }
- }
- }
- } else {
- if (myIsCreation) {
- visuGUI->DeletePresentation(myPrs);
- }
- }
- }
- QDialog::accept();
- }
-*/
}
void VisuGUI_CutPlanesDlg::reject() {
- //jfa tmp:if (myIsCreation && (!isModal())) {
- //jfa tmp: visuGUI->DeletePresentation(myPrs);
- //jfa tmp: VisuGUI::application()->objectBrowser()->updateTree();
- //jfa tmp:}
QDialog::reject();
}
};
-
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 (QWidget* parent, bool theIsCreation = true, bool theIsModal = true);
~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;
+ VISU::CutPlanes_i* myPrs;
bool myIsCreation;
-
- //SUIT_ViewManager *myMgr;
- //SUIT_ViewWindow *myStudyWnd;
};
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