24 #ifndef SALOMEAPP_NOTEBOOK_H
25 #define SALOMEAPP_NOTEBOOK_H
29 #include "SALOMEDSClient_ClientFactory.hxx"
30 #include CORBA_SERVER_HEADER(SALOMEDS)
33 #include <QTableWidget>
38 class QTableWidgetItem;
65 void SetName(
const QString theName);
66 void SetValue(
const QString theValue);
68 QString GetValue()
const;
69 QString GetName()
const;
74 QTableWidgetItem* GetVariableItem();
75 QTableWidgetItem* GetNameItem();
76 QTableWidgetItem* GetHeaderItem();
78 static bool IsRealValue(
const QString theValue,
double* theResult = 0);
79 static bool IsIntegerValue(
const QString theValue,
int* theResult = 0);
80 static bool IsBooleanValue(
const QString theValue,
bool* theResult = 0);
81 bool IsValidStringValue(
const QString theName);
99 static QString Variable2String(
const std::string& theVarName);
101 bool IsValid()
const;
103 void AddRow(
const QString& theName = QString::null,
const QString& theValue = QString::null );
108 void RemoveSelected();
110 void SetProcessItemChangedSignalFlag(
const bool enable);
111 bool GetProcessItemChangedSignalFlag()
const;
120 void RenumberRowItems();
127 void onItemChanged(QTableWidgetItem* theItem);
130 int getUniqueIndex()
const;
162 void onUpdateStudy();
163 void onVarUpdate( QString theVarName );
#define SALOMEAPPIMPL_EXPORT
Definition: SalomeApp.h:55
QMap< int, NoteBoox_Variable > VariableMap
Definition: SalomeApp_NoteBook.h:53
Definition: SalomeApp_NoteBook.h:56
QTableWidgetItem * myVariableValue
Definition: SalomeApp_NoteBook.h:88
NoteBook_Table * myParentTable
Definition: SalomeApp_NoteBook.h:85
QTableWidgetItem * myRowHeader
Definition: SalomeApp_NoteBook.h:86
QTableWidgetItem * myVariableName
Definition: SalomeApp_NoteBook.h:87
int myIndex
Definition: SalomeApp_NoteBook.h:84
int GetIndex() const
Definition: SalomeApp_NoteBook.h:61
Definition: SalomeApp_NoteBook.h:92
const QList< int > & GetRemovedRows() const
Definition: SalomeApp_NoteBook.h:117
bool isProcessItemChangedSignal
Definition: SalomeApp_NoteBook.h:133
bool myIsModified
Definition: SalomeApp_NoteBook.h:135
bool IsModified() const
Definition: SalomeApp_NoteBook.h:116
const VariableMap & GetVariableMapRef() const
Definition: SalomeApp_NoteBook.h:119
QList< NoteBook_TableRow * > myRows
Definition: SalomeApp_NoteBook.h:124
VariableMap myVariableMapRef
Definition: SalomeApp_NoteBook.h:137
VariableMap myVariableMap
Definition: SalomeApp_NoteBook.h:138
const VariableMap & GetVariableMap() const
Definition: SalomeApp_NoteBook.h:118
QList< int > myRemovedRows
Definition: SalomeApp_NoteBook.h:136
Definition: SalomeApp_NoteBook.h:142
QString myDumpedStudyScript
Definition: SalomeApp_NoteBook.h:170
QString getDumpedStudyScript()
Definition: SalomeApp_NoteBook.h:153
QString myDumpedStudyName
Definition: SalomeApp_NoteBook.h:171
bool isDumpedStudySaved()
Definition: SalomeApp_NoteBook.h:156
QPushButton * myRemoveButton
Definition: SalomeApp_NoteBook.h:167
void setIsDumpedStudySaved(bool isSaved)
Definition: SalomeApp_NoteBook.h:157
QString getDumpedStudyName()
Definition: SalomeApp_NoteBook.h:150
NoteBook_Table * myTable
Definition: SalomeApp_NoteBook.h:166
void setDumpedStudyName(QString theName)
Definition: SalomeApp_NoteBook.h:151
void setDumpedStudyScript(QString theScript)
Definition: SalomeApp_NoteBook.h:154
QPushButton * myUpdateStudyBtn
Definition: SalomeApp_NoteBook.h:168
bool myIsDumpedStudySaved
Definition: SalomeApp_NoteBook.h:172
Definition: SalomeApp_NoteBook.h:42
QString Name
Definition: SalomeApp_NoteBook.h:49
NoteBoox_Variable(const QString &theName, const QString &theValue)
Definition: SalomeApp_NoteBook.h:44
QString Value
Definition: SalomeApp_NoteBook.h:50
NoteBoox_Variable()
Definition: SalomeApp_NoteBook.h:43