#include <SalomeApp_NoteBookDlg.h>

Public Slots | |
| void | onItemChanged (QTableWidgetItem *theItem) |
Public Member Functions | |
| NoteBook_Table (QWidget *parent=0) | |
| virtual | ~NoteBook_Table () |
| void | Init (_PTR(Study) theStudy) |
| bool | IsValid () const |
| void | AddRow (const QString &theName=QString::null, const QString &theValue=QString::null) |
| void | AddEmptyRow () |
| NoteBook_TableRow * | GetRowByItem (const QTableWidgetItem *theItem) const |
| bool | IsLastRow (const NoteBook_TableRow *aRow) const |
| void | RemoveSelected () |
| void | SetProcessItemChangedSignalFlag (const bool enable) |
| bool | GetProcessItemChangedSignalFlag () const |
| bool | IsUniqueName (const NoteBook_TableRow *theRow) const |
| QList< NoteBook_TableRow * > | GetRows () const |
| const bool | IsModified () const |
| const QList< int > & | GetRemovedRows () const |
| const VariableMap & | GetVariableMap () const |
| const VariableMap & | GetVariableMapRef () const |
| void | RenamberRowItems () |
| void | ResetMaps () |
Static Public Member Functions | |
| static QString | Variable2String (const std::string &theVarName, _PTR(Study) theStudy) |
Data Fields | |
| QList< NoteBook_TableRow * > | myRows |
Private Member Functions | |
| int | getUniqueIndex () const |
| _PTR (Study) myStudy | |
Private Attributes | |
| bool | isProcessItemChangedSignal |
| bool | myIsModified |
| QList< int > | myRemovedRows |
| VariableMap | myVariableMapRef |
| VariableMap | myVariableMap |
| NoteBook_Table::NoteBook_Table | ( | QWidget * | parent = 0 | ) |
Function : NoteBook_Table Purpose : Constructor
References COLUMN_SIZE, and onItemChanged().
| NoteBook_Table::~NoteBook_Table | ( | ) | [virtual] |
Function : ~NoteBook_Table Purpose : Destructor
| void NoteBook_Table::Init | ( | _PTR(Study) | theStudy | ) |
Function : Init Purpose : Add variables in the table from theStudy
References AddEmptyRow(), AddRow(), isProcessItemChangedSignal, myRemovedRows, myRows, PyInterp.myStudy, myVariableMap, myVariableMapRef, ResetMaps(), and Variable2String().
| QString NoteBook_Table::Variable2String | ( | const std::string & | theVarName, |
| _PTR(Study) | theStudy | ||
| ) | [static] |
Function : Variable2String Purpose : Convert variable values to QString
| bool NoteBook_Table::IsValid | ( | ) | const |
Function : IsValid Purpose : Check validity of the table data
References SUIT_Session.activeApplication(), TestSalomeApp.command, PyConsole_Console.getInterp(), PyInterp_Interp.GetLockWrapper(), PyConsole_Console.isSuppressOutput(), IsUniqueName(), myRows, LightApp_Application.pythonConsole(), PyInterp_Interp.run(), SUIT_Session.session(), and PyConsole_Console.setIsSuppressOutput().
| void NoteBook_Table::AddRow | ( | const QString & | theName = QString::null, |
| const QString & | theValue = QString::null |
||
| ) |
Function : AddRow Purpose : Add a row into the table
References NoteBook_TableRow.AddToTable(), getUniqueIndex(), myRows, myVariableMap, NoteBook_TableRow.SetName(), and NoteBook_TableRow.SetValue().
| void NoteBook_Table::AddEmptyRow | ( | ) |
Function : AddEmptyRow Purpose : Add an empty row into the end of the table
References AddRow(), and isProcessItemChangedSignal.
| NoteBook_TableRow * NoteBook_Table::GetRowByItem | ( | const QTableWidgetItem * | theItem | ) | const |
Function : GetRowByItem Purpose :
References myRows.
| bool NoteBook_Table::IsLastRow | ( | const NoteBook_TableRow * | theRow | ) | const |
Function : IsLastRow Purpose : Return true if theRow is last row in the table
References myRows.
| void NoteBook_Table::RemoveSelected | ( | ) |
Function : RemoveSelected Purpose : Remove selected rows in the table
References NoteBook_TableRow.GetIndex(), NoteBook_TableRow.GetName(), GetRowByItem(), IsLastRow(), isProcessItemChangedSignal, myIsModified, myRemovedRows, myRows, PyInterp.myStudy, myVariableMap, RenamberRowItems(), NoteBook_TableRow.SetName(), and NoteBook_TableRow.SetValue().
| void NoteBook_Table::SetProcessItemChangedSignalFlag | ( | const bool | enable | ) |
Function : SetProcessItemChangedSignalFlag Purpose :
References isProcessItemChangedSignal.
| bool NoteBook_Table::GetProcessItemChangedSignalFlag | ( | ) | const |
Function : GetProcessItemChangedSignalFlag Purpose :
References isProcessItemChangedSignal.
| bool NoteBook_Table::IsUniqueName | ( | const NoteBook_TableRow * | theRow | ) | const |
Function : IsUniqueName Purpose : Return true if theName is unique name of the Variable
References NoteBook_TableRow.GetName(), and myRows.
| QList< NoteBook_TableRow * > NoteBook_Table::GetRows | ( | ) | const |
Function : GetRows Purpose :
References myRows.
| const bool NoteBook_Table.IsModified | ( | ) | const |
| const QList<int>& NoteBook_Table.GetRemovedRows | ( | ) | const |
| const VariableMap& NoteBook_Table.GetVariableMap | ( | ) | const |
| const VariableMap& NoteBook_Table.GetVariableMapRef | ( | ) | const |
| void NoteBook_Table::RenamberRowItems | ( | ) |
Function : RenamberRowItems Purpose : renumber row items
References myRows.
| void NoteBook_Table::ResetMaps | ( | ) |
Function : ResetMaps Purpose : Reset variable maps
References myIsModified, myRemovedRows, myVariableMap, and myVariableMapRef.
| void NoteBook_Table::onItemChanged | ( | QTableWidgetItem * | theItem | ) | [slot] |
Function : onItemChanged Purpose : [slot] called then table item changed
References AddEmptyRow(), NoteBook_TableRow.CheckName(), NoteBook_TableRow.CheckValue(), NoteBook_TableRow.GetIndex(), NoteBook_TableRow.GetName(), GetRowByItem(), NoteBook_TableRow.GetValue(), IsLastRow(), isProcessItemChangedSignal, IsUniqueName(), myIsModified, PyInterp.myStudy, myVariableMap, NoteBoox_Variable.Name, NAME_COLUMN, NoteBook_TableRow.SetName(), NoteBoox_Variable.Value, VALUE_COLUMN, and SUIT_MessageBox.warning().
| int NoteBook_Table::getUniqueIndex | ( | ) | const [private] |
Function : getUniqueIndex Purpose : Get a unique index for the new row
References myRemovedRows, and myRows.
| NoteBook_Table._PTR | ( | Study | ) | [private] |
bool NoteBook_Table.isProcessItemChangedSignal [private] |
bool NoteBook_Table.myIsModified [private] |
QList<int> NoteBook_Table.myRemovedRows [private] |
VariableMap NoteBook_Table.myVariableMapRef [private] |
VariableMap NoteBook_Table.myVariableMap [private] |