26#ifndef EntityGUI_FieldDlg_H
27#define EntityGUI_FieldDlg_H
31#include <TopAbs_ShapeEnum.hxx>
32#include <TColStd_DataMapOfIntegerInteger.hxx>
33#include <TColStd_IndexedMapOfInteger.hxx>
34#include <TopTools_IndexedMapOfShape.hxx>
39#include <QTableWidget>
45class SalomeApp_IntSpinBox;
63 GEOM::GEOM_Field_ptr theField,
int stepID=0,
65 bool modal=
false, Qt::WindowFlags fl=0);
71 virtual bool isValid (QString&);
158 StepTable(
int stepID,
int dataType,
int nbRows,
int nbColumns,
159 QString shapeName, QStringList headers,
160 GEOM::GEOM_FieldStep_ptr stepVar,
QWidget* = 0 );
172 QString
text(
int,
int );
177 void setDim(
int nbRows, QString shapeName,
bool setDefault=
true );
186 void setValues(GEOM::GEOM_FieldStep_var& step);
Definition: EntityGUI_FieldDlg.cxx:93
Definition: EntityGUI_FieldDlg.cxx:251
Definition: EntityGUI_FieldDlg.cxx:187
Definition: EntityGUI_FieldDlg.cxx:140
Definition: EntityGUI_FieldDlg.h:146
QStringList getHeaders()
Definition: EntityGUI_FieldDlg.cxx:666
QSize minimumSizeHint() const
Definition: EntityGUI_FieldDlg.cxx:456
GEOM::GEOM_FieldStep_var getStep()
Definition: EntityGUI_FieldDlg.h:185
int myStamp
Definition: EntityGUI_FieldDlg.h:151
void setValues(GEOM::GEOM_FieldStep_var &step)
Definition: EntityGUI_FieldDlg.cxx:690
bool myIsChanged
Definition: EntityGUI_FieldDlg.h:153
void selectRows(const QList< int > &rows)
Definition: EntityGUI_FieldDlg.cxx:548
GEOM::GEOM_FieldStep_var myStep
Definition: EntityGUI_FieldDlg.h:152
virtual ~StepTable()
Definition: EntityGUI_FieldDlg.cxx:448
void setNbComps(int nbComps)
Definition: EntityGUI_FieldDlg.cxx:604
int getStepID()
Definition: EntityGUI_FieldDlg.h:182
void insertRows(int, int=1)
Definition: EntityGUI_FieldDlg.cxx:512
QTableWidgetItem * newDefaultItem()
Definition: EntityGUI_FieldDlg.cxx:650
void setIsChanged()
Definition: EntityGUI_FieldDlg.h:189
int myStepID
Definition: EntityGUI_FieldDlg.h:150
QString text(int, int)
Definition: EntityGUI_FieldDlg.cxx:521
StepTable(int stepID, int dataType, int nbRows, int nbColumns, QString shapeName, QStringList headers, GEOM::GEOM_FieldStep_ptr stepVar, QWidget *=0)
Definition: EntityGUI_FieldDlg.cxx:356
void setDataType(int dataType)
Definition: EntityGUI_FieldDlg.cxx:633
void setDim(int nbRows, QString shapeName, bool setDefault=true)
Definition: EntityGUI_FieldDlg.cxx:567
bool isEditable(int, int) const
Definition: EntityGUI_FieldDlg.cxx:490
void setHeaders(const QStringList &headers)
Definition: EntityGUI_FieldDlg.cxx:680
void setEditable(bool, int, int)
Definition: EntityGUI_FieldDlg.cxx:469
QList< int > selectedRows()
Definition: EntityGUI_FieldDlg.cxx:528
int myDataType
Definition: EntityGUI_FieldDlg.h:149
void setReadOnly(bool)
Definition: EntityGUI_FieldDlg.cxx:496
void setStamp(int stamp)
Definition: EntityGUI_FieldDlg.h:180
bool isReadOnly() const
Definition: EntityGUI_FieldDlg.cxx:503
int getStamp()
Definition: EntityGUI_FieldDlg.h:181
void headerDblClicked(int)
Definition: EntityGUI_FieldDlg.cxx:771
Definition: EntityGUI_FieldDlg.h:52
EntityGUI_FieldDlg(GeometryGUI *theGeometryGUI, GEOM::GEOM_Field_ptr theField, int stepID=0, QWidget *parent=0, bool modal=false, Qt::WindowFlags fl=0)
Definition: EntityGUI_FieldDlg.cxx:788
int getNbComps() const
Definition: EntityGUI_FieldDlg.cxx:1558
int myDmMode
Definition: EntityGUI_FieldDlg.h:119
void activateSelection()
Definition: EntityGUI_FieldDlg.cxx:1629
QComboBox * myDimCombo
Definition: EntityGUI_FieldDlg.h:127
virtual bool execute()
Definition: EntityGUI_FieldDlg.cxx:1860
void onStampChange()
Definition: EntityGUI_FieldDlg.cxx:1363
void updateDims(int curDim=-1)
Definition: EntityGUI_FieldDlg.cxx:1597
QPushButton * myPrevStepBtn
Definition: EntityGUI_FieldDlg.h:128
void onAddStep()
Definition: EntityGUI_FieldDlg.cxx:1320
void enterEvent(QEvent *)
Definition: EntityGUI_FieldDlg.cxx:1057
SalomeApp_IntSpinBox * myNbCompsSpin
Definition: EntityGUI_FieldDlg.h:132
QVector< int > myShapeIDs
Definition: EntityGUI_FieldDlg.h:111
int getDataType() const
Definition: EntityGUI_FieldDlg.cxx:1538
GEOM::GEOM_Field_var myField
Definition: EntityGUI_FieldDlg.h:109
~EntityGUI_FieldDlg()
Definition: EntityGUI_FieldDlg.cxx:934
bool ClickOnApply()
Definition: EntityGUI_FieldDlg.cxx:1079
TopTools_IndexedMapOfShape myShapeMap
Definition: EntityGUI_FieldDlg.h:112
QWidget * mySwitchTableWdg
Definition: EntityGUI_FieldDlg.h:133
virtual GEOM::GEOM_IOperations_ptr createOperation()
Definition: EntityGUI_FieldDlg.cxx:1821
void onPrevStep()
Definition: EntityGUI_FieldDlg.cxx:1275
QPushButton * myShapeSelBtn
Definition: EntityGUI_FieldDlg.h:124
int myCurStepID
Definition: EntityGUI_FieldDlg.h:114
QMap< int, StepTable * > myStepTables
Definition: EntityGUI_FieldDlg.h:116
virtual QList< GEOM::GeomObjPtr > getSourceObjects()
Definition: EntityGUI_FieldDlg.cxx:1992
void SetEditCurrentArgument()
Definition: EntityGUI_FieldDlg.cxx:1142
GEOM::GEOM_Object_var myShape
Definition: EntityGUI_FieldDlg.h:110
int getCurStepID() const
Definition: EntityGUI_FieldDlg.cxx:1547
void onNbCompsChange()
Definition: EntityGUI_FieldDlg.cxx:1250
QPushButton * myRmStepBtn
Definition: EntityGUI_FieldDlg.h:130
int getDim() const
Definition: EntityGUI_FieldDlg.cxx:1528
void SelectionIntoArgument()
Definition: EntityGUI_FieldDlg.cxx:1152
bool myIsHiddenMain
Definition: EntityGUI_FieldDlg.h:120
QComboBox * myStepsCombo
Definition: EntityGUI_FieldDlg.h:134
void onNextStep()
Definition: EntityGUI_FieldDlg.cxx:1289
int getSelectedSubshapes(TColStd_IndexedMapOfInteger &map)
Definition: EntityGUI_FieldDlg.cxx:1445
QComboBox * myTypeCombo
Definition: EntityGUI_FieldDlg.h:126
SalomeApp_IntSpinBox * myStampSpin
Definition: EntityGUI_FieldDlg.h:136
void highlightSubShapes()
Definition: EntityGUI_FieldDlg.cxx:1722
QLineEdit * myShapeName
Definition: EntityGUI_FieldDlg.h:125
QList< int > myHiddenFieldStepIds
Definition: EntityGUI_FieldDlg.h:122
virtual bool isValid(QString &)
Definition: EntityGUI_FieldDlg.cxx:1836
void updateShapeIDs()
Definition: EntityGUI_FieldDlg.cxx:1567
TopAbs_ShapeEnum getShapeType(int *dim=0) const
Definition: EntityGUI_FieldDlg.cxx:1511
void onDimChange()
Definition: EntityGUI_FieldDlg.cxx:1229
bool myIsCreation
Definition: EntityGUI_FieldDlg.h:108
void ActivateThisDialog()
Definition: EntityGUI_FieldDlg.cxx:1128
void Init()
Definition: EntityGUI_FieldDlg.cxx:959
void ClickOnOk()
Definition: EntityGUI_FieldDlg.cxx:1067
void showCurStep()
Definition: EntityGUI_FieldDlg.cxx:1373
QSet< int > myRemovedSteps
Definition: EntityGUI_FieldDlg.h:117
StepTable * myCurStepTable
Definition: EntityGUI_FieldDlg.h:115
QPushButton * myNextStepBtn
Definition: EntityGUI_FieldDlg.h:129
void onTypeChange()
Definition: EntityGUI_FieldDlg.cxx:1263
QLineEdit * myStepEdit
Definition: EntityGUI_FieldDlg.h:135
void onRmStep()
Definition: EntityGUI_FieldDlg.cxx:1345
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74