msgid "VisuGUI_DeformedShapeDlg::SCALAR_BAR_TAB"
msgstr "Scalar Bar"
+msgid "VisuGUI_DeformedShapeDlg::INPUT_TAB"
+msgstr "Input"
+
msgid "VisuGUI_DeformedShapeDlg::MAGNITUDE_COLORING"
msgstr "Magnitude coloring"
msgid "VisuGUI_ScalarMapOnDeformedShapeDlg::SCALAR_BAR_TAB"
msgstr "Scalar Bar"
+msgid "VisuGUI_ScalarMapOnDeformedShapeDlg::INPUT_TAB"
+msgstr "Input"
+
msgid "VisuGUI_ScalarMapOnDeformedShapeDlg::SCALE_FACTOR"
msgstr "Scale Factor:"
msgid "VisuGUI_Plot3DDlg::SCALAR_BAR_TAB_TITLE"
msgstr "Scalar Bar"
+msgid "VisuGUI_Plot3DDlg::INPUT_TAB_TITLE"
+msgstr "Input"
+
msgid "VisuGUI_Plot3DPane::ORIENTATION"
msgstr "Orientation"
msgid "VisuGUI_GaussPointsDlg::SCALAR_BAR_TAB"
msgstr "Scalar Bar"
+msgid "VisuGUI_GaussPointsDlg::INPUT_TAB"
+msgstr "Input"
+
msgid "VisuGUI_GaussPointsDlg::PRS_TITLE"
msgstr "Presentation"
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
#include "VisuGUI_ViewTools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_Gen_i.hh"
#include "VISU_CutLines_i.hh"
hasInit = false;
// Tab pane
- QTabWidget* aTabPane = new QTabWidget(this);
+ myTabBox = new QTabWidget(this);
// Plane of lines
QFrame* aPlanePane = new QFrame(this);
aPlaneLayout->addStretch();
- aTabPane->addTab( aPlanePane, tr("LBL_LINES_PLANE") );
+ myTabBox->addTab( aPlanePane, tr("LBL_LINES_PLANE") );
// Number of lines
QFrame* aLinesPane = new QFrame(this);
aLinesLayout->addWidget( aPosBox2 );
aLinesLayout->addStretch();
- aTabPane->addTab( aLinesPane, tr("LBL_LINES_CUT") );
+ myTabBox->addTab( aLinesPane, tr("LBL_LINES_CUT") );
myScalarPane = new VisuGUI_ScalarBarPane(this, false);
myScalarPane->setMargin( 5 );
- aTabPane->addTab(myScalarPane, "Scalar Bar");
+ myInputPane = new VisuGUI_InputPane(theModule, this);
+ myTabBox->addTab(myScalarPane, "Scalar Bar");
+ myTabBox->addTab(myInputPane, "Input");
- aMainLayout->addWidget(aTabPane);
+ aMainLayout->addWidget(myTabBox);
// Dialog buttons
QHBox* aBtnBox = new QHBox(this);
myPrs = thePrs;
myScalarPane->initFromPrsObject(thePrs);
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
+
myRotXSpn->setValue(thePrs->GetRotateX()*180./PI);
myRotYSpn->setValue(thePrs->GetRotateY()*180./PI);
myPosSpn->setValue(thePrs->GetDisplacement());
{
myScalarPane->storeToPrsObject(thePrs);
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+ myInputPane->storeToPrsObject( thePrs );
+ }
+
thePrs->SetOrientation(getOrientaion(),
myRotXSpn->value()*PI/180.,
myRotYSpn->value()*PI/180.);
#include <qhbuttongroup.h>
#include <qvalidator.h>
+#include <qtabwidget.h>
class SUIT_ViewManager;
class SalomeApp_Module;
+class VisuGUI_InputPane;
namespace VISU{
class CutLines_i;
QDoubleValidator *mydvalidator;
VISU::CutLines_i* myCutLines;
+ QTabWidget* myTabBox;
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
VISU::CutPlanes::Orientation getOrientaion (bool IsBasePlane = true);
void setOrientation (const VISU::CutPlanes::Orientation orient);
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
#include "VisuGUI_ViewTools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_CutPlanes_i.hh"
#include "VISU_CutPlanesPL.hxx"
TopLayout->setMargin(11);
// Tab pane
- QTabWidget* aTabBox = new QTabWidget(this);
+ myTabBox = new QTabWidget(this);
myCutPane = new VisuGUI_CutPlanesPane(this/*, myMgr*/);
- aTabBox->addTab(myCutPane, "Cut Planes");
+ myTabBox->addTab(myCutPane, "Cut Planes");
myScalarPane = new VisuGUI_ScalarBarPane(this, false);
myScalarPane->setMargin(5);
- aTabBox->addTab(myScalarPane, "Scalar Bar");
+ myInputPane = new VisuGUI_InputPane(theModule, this);
+ myTabBox->addTab(myScalarPane, "Scalar Bar");
+ myTabBox->addTab(myInputPane, "Input");
- TopLayout->addWidget(aTabBox);
+ TopLayout->addWidget(myTabBox);
QGroupBox* GroupButtons = new QGroupBox(this, "GroupButtons");
GroupButtons->setGeometry(QRect(10, 10, 281, 48));
myPrs = thePrs;
myScalarPane->initFromPrsObject(thePrs);
myCutPane->initFromPrsObject(thePrs);
+
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
}
int VisuGUI_CutPlanesDlg::storeToPrsObject (VISU::CutPlanes_i* thePrs)
{
- return (myScalarPane->storeToPrsObject(thePrs) &&
- myCutPane->storeToPrsObject(thePrs));
+ int ok = 1;
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+
+ ok = myInputPane->storeToPrsObject( thePrs );
+ }
+
+ return ok && myScalarPane->storeToPrsObject(thePrs) && myCutPane->storeToPrsObject(thePrs);
}
void VisuGUI_CutPlanesDlg::accept()
#include <qradiobutton.h>
#include <qtable.h>
+#include <qtabwidget.h>
#include "SALOMEconfig.h"
#include CORBA_CLIENT_HEADER(VISU_Gen)
class SUIT_ViewWindow;
class SUIT_ViewManager;
class SalomeApp_Module;
+class VisuGUI_InputPane;
class VisuGUI_CutPlanesPane : public QFrame
void onHelp();
private:
+ QTabWidget* myTabBox;
VisuGUI_CutPlanesPane* myCutPane;
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
VISU::CutPlanes_i* myPrs;
};
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_DeformedShape_i.hh"
* Constructor
*/
VisuGUI_DeformedShapeDlg::VisuGUI_DeformedShapeDlg (SalomeApp_Module* theModule)
- : QDialog(VISU::GetDesktop(theModule), "VisuGUI_DeformedShapeDlg", true,
+ : QDialog(VISU::GetDesktop(theModule), "VisuGUI_DeformedShapeDlg", false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
setCaption(tr("DLG_TITLE"));
TopLayout->setSpacing(6);
TopLayout->setMargin(11);
- QTabWidget* aTabBox = new QTabWidget (this);
+ myTabBox = new QTabWidget (this);
// Deformed shape pane
QVBox* aBox = new QVBox (this);
UseMagn->setChecked(true);
TopGroupLayout->addMultiCellWidget(UseMagn, 1, 1, 0, 1);
- aTabBox->addTab(aBox, tr("DEFORMED_SHAPE_TAB"));
+ myTabBox->addTab(aBox, tr("DEFORMED_SHAPE_TAB"));
// Scalar bar pane
myScalarPane = new VisuGUI_ScalarBarPane (this, false);
myScalarPane->setMargin(5);
+ myInputPane = new VisuGUI_InputPane(theModule, this);
- aTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB"));
+ myTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB"));
+ myTabBox->addTab(myInputPane, tr("INPUT_TAB"));
// Buttons
QGroupBox* GroupButtons = new QGroupBox (this, "GroupButtons");
GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
// Add Tab box and Buttons to the top layout
- TopLayout->addWidget(aTabBox);
+ TopLayout->addWidget(myTabBox);
TopLayout->addWidget(GroupButtons);
// signals and slots connections
void VisuGUI_DeformedShapeDlg::initFromPrsObject (VISU::DeformedShape_i* thePrs)
{
myScalarPane->initFromPrsObject(thePrs);
+
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
+
setFactor(thePrs->GetScale());
UseMagn->setChecked(thePrs->IsColored());
}
int VisuGUI_DeformedShapeDlg::storeToPrsObject(VISU::DeformedShape_i* thePrs) {
myScalarPane->storeToPrsObject(thePrs);
+
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+ myInputPane->storeToPrsObject( thePrs );
+ }
+
thePrs->SetScale(getFactor());
thePrs->ShowColored(isColored());
return 1;
#include <qcheckbox.h>
#include <qlabel.h>
#include <qpushbutton.h>
+#include <qtabwidget.h>
class SalomeApp_Module;
+class VisuGUI_InputPane;
namespace VISU{
class DeformedShape_i;
private:
QtxDblSpinBox* ScalFact;
QCheckBox* UseMagn;
+ QTabWidget* myTabBox;
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
};
#endif // VISUGUI_DEFORMEDSHAPEDLS_H
#include "VISUConfig.hh"
#include "VisuGUI_Tools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_GaussPoints_i.hh"
#include "VISU_GaussPointsPL.hxx"
*/
VisuGUI_GaussPointsDlg::VisuGUI_GaussPointsDlg(SalomeApp_Module* theModule, bool SetPref):
QDialog(VISU::GetDesktop(theModule),
- "VisuGUI_GaussPointsDlg", true,
+ "VisuGUI_GaussPointsDlg", false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
myPrs(NULL)
{
myGeometryButton = new QRadioButton( tr( "GEOMETRY" ), PrsGroup );
myDefShapeButton = new QRadioButton( tr( "DEFORMED_SHAPE" ), PrsGroup );
- QTabWidget* aTabBox = new QTabWidget (this);
+ myTabBox = new QTabWidget (this);
// Gauss points pane
QVBox* aBox = new QVBox (this);
myScalarPane = new VisuGUI_GaussScalarBarPane(this, SetPref);
myScalarPane->setMargin(5);
+ // Input pane
+ myInputPane = new VisuGUI_InputPane(theModule, this);
connect( myResultsButton, SIGNAL( clicked() ), mySizeBox, SLOT( onToggleResults() ) );
connect( myResultsButton, SIGNAL( toggled( bool ) ), myScalarPane, SLOT( setEnabled( bool ) ) );
connect( myDefShapeButton, SIGNAL( toggled( bool ) ), this, SLOT( onToggleDefShape( bool ) ) );
connect( myDefShapeButton, SIGNAL( toggled( bool ) ), myScalarPane, SLOT( setEnabled( bool ) ) );
- aTabBox->addTab(aBox, tr("GAUSS_POINTS_TAB"));
- aTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB"));
+ myTabBox->addTab(aBox, tr("GAUSS_POINTS_TAB"));
+ myTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB"));
+ myTabBox->addTab(myInputPane, tr("INPUT_TAB"));
// Common buttons ===========================================================
QGroupBox* GroupButtons = new QGroupBox( this, "GroupButtons" );
GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
TopLayout->addWidget( PrsGroup );
- TopLayout->addWidget( aTabBox );
+ TopLayout->addWidget( myTabBox );
TopLayout->addWidget( GroupButtons );
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
myScalarPane->initFromPrsObject(thePrs);
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
+
myPrs = thePrs;
}
thePrs->SetMagnification( mySizeBox->getMagnification() );
thePrs->SetMagnificationIncrement( mySizeBox->getIncrement() );
- return myScalarPane->storeToPrsObject(thePrs);
+ int ok = 1;
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+
+ ok = myInputPane->storeToPrsObject( thePrs );
+ }
+
+ return ok && myScalarPane->storeToPrsObject(thePrs);
}
void VisuGUI_GaussPointsDlg::onToggleDefShape( bool on )
#include <qspinbox.h>
#include <qcombobox.h>
#include <qtoolbutton.h>
+#include <qtabwidget.h>
class SalomeApp_Module;
class VVTK_PrimitiveBox;
class VVTK_SizeBox;
class VisuGUI_TextPrefDlg;
+class VisuGUI_InputPane;
namespace VISU
{
private:
VISU::GaussPoints_i* myPrs;
+
+ QTabWidget* myTabBox;
VisuGUI_GaussScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
QRadioButton* myResultsButton;
QRadioButton* myGeometryButton;
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
+#include "VisuGUI_InputPane.h"
#include "LightApp_Application.h"
Constructor
*/
VisuGUI_IsoSurfacesDlg::VisuGUI_IsoSurfacesDlg (SalomeApp_Module* theModule)
- : QDialog(VISU::GetDesktop(theModule), "VisuGUI_IsoSurfacesDlg", true,
+ : QDialog(VISU::GetDesktop(theModule), "VisuGUI_IsoSurfacesDlg", false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
setCaption(tr("DEFINE_ISOSURFACES"));
TopLayout->setSpacing( 6 );
TopLayout->setMargin(11);
- QTabWidget* aTabBox = new QTabWidget(this);
+ myTabBox = new QTabWidget(this);
myIsoPane = new VisuGUI_IsoSurfPane(this);
myIsoPane->setMargin( 5 );
- aTabBox->addTab(myIsoPane, "Iso Surface");
+ myTabBox->addTab(myIsoPane, "Iso Surface");
myScalarPane = new VisuGUI_ScalarBarPane(this, false);
myIsoPane->setScalarBarPane(myScalarPane);
myScalarPane->setMargin( 5 );
- aTabBox->addTab(myScalarPane, "Scalar Bar");
+ myInputPane = new VisuGUI_InputPane(theModule, this);
+ myTabBox->addTab(myScalarPane, "Scalar Bar");
+ myTabBox->addTab(myInputPane, "Input");
- TopLayout->addWidget(aTabBox);
+ TopLayout->addWidget(myTabBox);
QGroupBox* GroupButtons = new QGroupBox( this, "GroupButtons" );
GroupButtons->setGeometry( QRect( 10, 10, 281, 48 ) );
QDialog::reject();
}
+void VisuGUI_IsoSurfacesDlg::initFromPrsObject(VISU::IsoSurfaces_i* thePrs)
+{
+ myScalarPane->initFromPrsObject(thePrs);
+ myIsoPane->initFromPrsObject(thePrs);
+
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
+}
+
+int VisuGUI_IsoSurfacesDlg::storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
+{
+ int ok = 1;
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+
+ ok = myInputPane->storeToPrsObject( thePrs );
+ }
+
+ return ok && myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);
+}
+
void VisuGUI_IsoSurfacesDlg::onHelp()
{
QString aHelpFileName = "/files/iso_surfaces_presentation.htm";
#include <qpushbutton.h>
#include <qcheckbox.h>
#include <qlineedit.h>
+#include <qtabwidget.h>
class SalomeApp_Module;
+class VisuGUI_InputPane;
class VisuGUI_IsoSurfPane : public QVBox
{
VisuGUI_IsoSurfacesDlg (SalomeApp_Module* theModule);
~VisuGUI_IsoSurfacesDlg() {};
- void initFromPrsObject(VISU::IsoSurfaces_i* thePrs)
- {myScalarPane->initFromPrsObject(thePrs); myIsoPane->initFromPrsObject(thePrs);}
-
- int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
- {return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
+ void initFromPrsObject(VISU::IsoSurfaces_i* thePrs);
+ int storeToPrsObject(VISU::IsoSurfaces_i* thePrs);
private:
void keyPressEvent( QKeyEvent* e );
void onHelp();
private:
+ QTabWidget* myTabBox;
VisuGUI_IsoSurfPane* myIsoPane;
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
};
#endif // VISUGUI_ISOSURFACESDLG_H
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
#include "VisuGUI_ViewTools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_ViewManager_i.hh"
#include "VISU_Plot3DPL.hxx"
TopLayout->setSpacing(6);
TopLayout->setMargin(11);
- QTabWidget* aTabBox = new QTabWidget (this);
+ myTabBox = new QTabWidget (this);
myIsoPane = new VisuGUI_Plot3DPane (this);
myIsoPane->setMargin(5);
- aTabBox->addTab(myIsoPane, tr("PLOT3D_TAB_TITLE"));
+ myTabBox->addTab(myIsoPane, tr("PLOT3D_TAB_TITLE"));
myScalarPane = new VisuGUI_ScalarBarPane (this, false);
myScalarPane->setMargin(5);
- aTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB_TITLE"));
+ myInputPane = new VisuGUI_InputPane(theModule, this);
+ myTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB_TITLE"));
+ myTabBox->addTab(myInputPane, tr("INPUT_TAB_TITLE"));
- TopLayout->addWidget(aTabBox);
+ TopLayout->addWidget(myTabBox);
QGroupBox* GroupButtons = new QGroupBox (this, "GroupButtons");
GroupButtons->setGeometry(QRect(10, 10, 281, 48));
QDialog::reject();
}
+//=======================================================================
+//function : initFromPrsObject
+//purpose :
+//=======================================================================
+void VisuGUI_Plot3DDlg::initFromPrsObject (VISU::Plot3D_i* thePrs)
+{
+ myScalarPane->initFromPrsObject(thePrs);
+ myIsoPane->initFromPrsObject(thePrs);
+
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
+}
+
+//=======================================================================
+//function : storeToPrsObject
+//purpose :
+//=======================================================================
+int VisuGUI_Plot3DDlg::storeToPrsObject (VISU::Plot3D_i* thePrs)
+{
+ int ok = 1;
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+
+ ok = myInputPane->storeToPrsObject( thePrs );
+ }
+
+ return ok && myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);
+}
+
//=======================================================================
//function : onHelp
//purpose :
#include "VISU_Plot3D_i.hh"
#include <qhbuttongroup.h>
+#include <qtabwidget.h>
class SalomeApp_Module;
+class VisuGUI_InputPane;
namespace VISU {
class Plot3D_i;
VisuGUI_Plot3DDlg (SalomeApp_Module* theModule);
~VisuGUI_Plot3DDlg() {};
- void initFromPrsObject (VISU::Plot3D_i* thePrs)
- { myScalarPane->initFromPrsObject(thePrs); myIsoPane->initFromPrsObject(thePrs); }
-
- int storeToPrsObject (VISU::Plot3D_i* thePrs)
- { return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs); }
+ void initFromPrsObject (VISU::Plot3D_i* thePrs);
+ int storeToPrsObject (VISU::Plot3D_i* thePrs);
void setPlane(int theOrientation, double theXRotation, double theYRotation, double thePlanePos);
void onHelp();
private:
+ QTabWidget* myTabBox;
VisuGUI_Plot3DPane* myIsoPane;
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
};
#endif // VISUGUI_PLOT3D_H
#include "VisuGUI_ScalarBarDlg.h"
-#include "VisuGUI_InputPane.h"
-
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
#include "VisuGUI_ViewTools.h"
+#include "VisuGUI_InputPane.h"
#include "SVTK_ViewWindow.h"
#include "SVTK_FontWidget.h"
myInputPane->initFromPrsObject( thePrs );
myTabBox->showPage( myInputPane );
}
-
myTabBox->setCurrentPage( 0 );
}
+/*!
+ Store dialog to the presentation
+*/
int VisuGUI_ScalarBarDlg::storeToPrsObject(VISU::ScalarMap_i* thePrs)
{
int ok = 1;
#include "VisuGUI_ScalarMapOnDeformedShapeDlg.h"
#include "VisuGUI_Tools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_Result_i.hh"
#include "VISU_ScalarMapOnDeformedShape_i.hh"
TopLayout->setSpacing(6);
TopLayout->setMargin(11);
- QTabWidget* aTabBox = new QTabWidget (this);
+ myTabBox = new QTabWidget (this);
// Scalar Map on Deformed shape pane
QVBox* aBox = new QVBox (this);
TopGroupLayout->addWidget(myTimeStampsCombo,2,1);
//
- aTabBox->addTab(aBox, tr("SCALAR_MAP_ON_DEFORMED_SHAPE_TAB"));
+ myTabBox->addTab(aBox, tr("SCALAR_MAP_ON_DEFORMED_SHAPE_TAB"));
// Scalar bar pane
myScalarPane = new VisuGUI_ScalarBarPane (this, false);
myScalarPane->setMargin(5);
+ myInputPane = new VisuGUI_InputPane(theModule, this);
- aTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB"));
+ myTabBox->addTab(myScalarPane, tr("SCALAR_BAR_TAB"));
+ myTabBox->addTab(myInputPane, tr("INPUT_TAB"));
// Buttons
QGroupBox* GroupButtons = new QGroupBox (this, "GroupButtons");
GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
// Add Tab box and Buttons to the top layout
- TopLayout->addWidget(aTabBox);
+ TopLayout->addWidget(myTabBox);
TopLayout->addWidget(GroupButtons);
// signals and slots connections
SetScalarField( false );
myScalarPane->initFromPrsObject(myPrs);
+
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
}
int VisuGUI_ScalarMapOnDeformedShapeDlg::storeToPrsObject
myScalarPane->storeToPrsObject(thePrs);
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+ myInputPane->storeToPrsObject( thePrs );
+ }
+
myPrs = thePrs;
return 1;
#include <qcheckbox.h>
#include <qlabel.h>
#include <qpushbutton.h>
+#include <qtabwidget.h>
#include <set>
class SalomeApp_Module;
+class VisuGUI_InputPane;
class QComboBox;
class QString;
private:
QtxDblSpinBox* ScalFact;
+ QTabWidget* myTabBox;
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
QComboBox *myFieldsCombo;
QComboBox *myTimeStampsCombo;
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_Mesh_i.hh"
#include "VISU_Gen_i.hh"
aBoxLayout->setSpacing( 6 );
aBoxLayout->setMargin( 11 );
- QTabWidget* aTabBox = new QTabWidget(this);
+ myTabBox = new QTabWidget(this);
QFrame* aTopBox = new QFrame(this);
aTopBox->setMargin( 11 );
connect( SelColor, SIGNAL( clicked() ), this, SLOT( setVColor() ) );
TopLayout->addWidget( SelColor, 5, 1);
- aTabBox->addTab(aTopBox, "Stream Lines");
+ myTabBox->addTab(aTopBox, "Stream Lines");
myScalarPane = new VisuGUI_ScalarBarPane(this, false);
myScalarPane->setMargin( 5 );
- aTabBox->addTab(myScalarPane, "Scalar Bar");
+ myInputPane = new VisuGUI_InputPane(theModule, this);
+ myTabBox->addTab(myScalarPane, "Scalar Bar");
+ myTabBox->addTab(myInputPane, "Input");
- aBoxLayout->addWidget(aTabBox);
+ aBoxLayout->addWidget(myTabBox);
QGroupBox* aGroupButtons = new QGroupBox( this, "GroupButtons" );
aGroupButtons->setColumnLayout(0, Qt::Vertical );
{
myScalarPane->initFromPrsObject(thePrs);
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
+
myPrs = thePrs;
static int aNbOfSteps = 30;
VISU_StreamLinesPL* aStreamLinesPL = thePrs->GetSpecificPL();
int VisuGUI_StreamLinesDlg::storeToPrsObject (VISU::StreamLines_i* thePrs)
{
bool isAccepted = myScalarPane->storeToPrsObject(thePrs);
+
+ if( isAccepted && !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+ isAccepted = myInputPane->storeToPrsObject( thePrs );
+ }
+
if (isAccepted) {
thePrs->ShowColored(myUseScalar->isChecked());
if (!thePrs->IsColored()) {
#include <qcombobox.h>
#include <qcheckbox.h>
#include <qstringlist.h>
+#include <qtabwidget.h>
class SalomeApp_Module;
+class VisuGUI_InputPane;
class QtxDblSpinBox;
namespace VISU{
QtxDblSpinBox* myPntPercent;
QComboBox* mySrcCombo;
+ QTabWidget* myTabBox;
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
QValueList<VISU::Prs3d_var> myPrsList;
QValueList<VISU::Prs3d_var> myEntityList;
#include "VisuGUI.h"
//#include "VisuGUI_Selection.h"
#include "VisuGUI_Tools.h"
+#include "VisuGUI_InputPane.h"
#include "VISU_Vectors_i.hh"
#include "LightApp_Application.h"
Constructor
*/
VisuGUI_VectorsDlg::VisuGUI_VectorsDlg (SalomeApp_Module* theModule)
- : QDialog(VISU::GetDesktop(theModule), "VisuGUI_VectorsDlg", true,
+ : QDialog(VISU::GetDesktop(theModule), "VisuGUI_VectorsDlg", false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
setCaption(tr("DLG_TITLE"));
TopLayout->setSpacing( 6 );
TopLayout->setMargin( 11 );
- QTabWidget* aTabBox = new QTabWidget(this);
+ myTabBox = new QTabWidget(this);
QVBox* aBox = new QVBox(this);
aBox->setMargin( 11 );
GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
// top layout
- aTabBox->addTab(aBox, "Vectors");
+ myTabBox->addTab(aBox, "Vectors");
myScalarPane = new VisuGUI_ScalarBarPane(this, false);
myScalarPane->setMargin( 5 );
- aTabBox->addTab(myScalarPane, "Scalar Bar");
+ myInputPane = new VisuGUI_InputPane(theModule, this);
+ myTabBox->addTab(myScalarPane, "Scalar Bar");
+ myTabBox->addTab(myInputPane, "Input");
- TopLayout->addWidget( aTabBox );
+ TopLayout->addWidget( myTabBox );
TopLayout->addWidget( GroupButtons );
// signals and slots connections
void VisuGUI_VectorsDlg::initFromPrsObject(VISU::Vectors_i* thePrs) {
myScalarPane->initFromPrsObject(thePrs);
+ if( thePrs->IsTimeStampFixed() )
+ myTabBox->removePage( myInputPane );
+ else
+ {
+ myInputPane->initFromPrsObject( thePrs );
+ myTabBox->showPage( myInputPane );
+ }
+ myTabBox->setCurrentPage( 0 );
setScaleFactor(thePrs->GetScale());
setLineWidth((int)thePrs->GetLineWidth());
setUseMagnColor(thePrs->IsColored());
int VisuGUI_VectorsDlg::storeToPrsObject(VISU::Vectors_i* thePrs) {
myScalarPane->storeToPrsObject(thePrs);
+ if( !thePrs->IsTimeStampFixed() )
+ {
+ if( !myInputPane->check() )
+ return 0;
+ myInputPane->storeToPrsObject( thePrs );
+ }
thePrs->SetScale(getScaleFactor());
thePrs->SetLineWidth(getLineWidth());
thePrs->ShowColored(getUseMagnColor());
#include <qlabel.h>
#include <qspinbox.h>
#include <qpushbutton.h>
+#include <qtabwidget.h>
#include "SALOMEconfig.h"
#include CORBA_CLIENT_HEADER(VISU_Gen)
class SalomeApp_Module;
+class VisuGUI_InputPane;
namespace VISU{
class Vectors_i;
QPushButton* buttonHelp;
QColor myColor;
+ QTabWidget* myTabBox;
+
VisuGUI_ScalarBarPane* myScalarPane;
+ VisuGUI_InputPane* myInputPane;
private slots:
void enableGlyphType();