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;
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);
98 void Init(
_PTR(Study) theStudy);
99 static QString Variable2String(
const std::string& theVarName,
100 _PTR(Study) theStudy);
102 bool IsValid()
const;
104 void AddRow(
const QString& theName = QString::null,
const QString& theValue = QString::null );
109 void RemoveSelected();
111 void SetProcessItemChangedSignalFlag(
const bool enable);
112 bool GetProcessItemChangedSignalFlag()
const;
121 void RenumberRowItems();
128 void onItemChanged(QTableWidgetItem* theItem);
131 int getUniqueIndex()
const;
151 void Init(
_PTR(Study) theStudy);
165 void onUpdateStudy();
166 void onVarUpdate( QString theVarName );
174 QString myDumpedStudyScript;
175 QString myDumpedStudyName;
176 bool myIsDumpedStudySaved;
179 #endif //SALOMEAPP_NOTEBOOK_H