Version: 9.12.0
NoteBook_TableRow Class Reference

#include <SalomeApp_NoteBook.h>

Inheritance diagram for NoteBook_TableRow:
Inheritance graph

Public Member Functions

 NoteBook_TableRow (int, NoteBook_Table *parentTable, QWidget *parent=0)
 
virtual ~NoteBook_TableRow ()
 
int GetIndex () const
 
void AddToTable (QTableWidget *theTable)
 
void SetName (const QString theName)
 
void SetValue (const QString theValue)
 
QString GetValue () const
 
QString GetName () const
 
bool CheckName ()
 
bool CheckValue ()
 
QTableWidgetItem * GetVariableItem ()
 
QTableWidgetItem * GetNameItem ()
 
QTableWidgetItem * GetHeaderItem ()
 
bool IsValidStringValue (const QString theName)
 

Static Public Member Functions

static bool IsRealValue (const QString theValue, double *theResult=0)
 
static bool IsIntegerValue (const QString theValue, int *theResult=0)
 
static bool IsBooleanValue (const QString theValue, bool *theResult=0)
 

Private Attributes

int myIndex
 
NoteBook_TablemyParentTable
 
QTableWidgetItem * myRowHeader
 
QTableWidgetItem * myVariableName
 
QTableWidgetItem * myVariableValue
 

Constructor & Destructor Documentation

◆ NoteBook_TableRow()

NoteBook_TableRow::NoteBook_TableRow ( int  index,
NoteBook_Table parentTable,
QWidget parent = 0 
)

Function : NoteBook_TableRow Purpose : Constructor

◆ ~NoteBook_TableRow()

NoteBook_TableRow::~NoteBook_TableRow ( )
virtual

Function : ~NoteBook_TableRow Purpose : Destructor

Member Function Documentation

◆ AddToTable()

void NoteBook_TableRow::AddToTable ( QTableWidget theTable)

Function : AddToTable Purpose : Add this row to the table theTable

References myRowHeader, myVariableName, myVariableValue, NAME_COLUMN, and VALUE_COLUMN.

◆ CheckName()

bool NoteBook_TableRow::CheckName ( )

Function : CheckName Purpose : Return true if variable name correct, otherwise return false

References GetName().

◆ CheckValue()

bool NoteBook_TableRow::CheckValue ( )

Function : CheckValue Purpose : Return true if variable value correct, otherwise return false

References GetValue(), IsBooleanValue(), IsIntegerValue(), IsRealValue(), and IsValidStringValue().

◆ GetHeaderItem()

QTableWidgetItem * NoteBook_TableRow::GetHeaderItem ( )

Function : GetHeaderItem Purpose :

References myRowHeader.

◆ GetIndex()

int NoteBook_TableRow::GetIndex ( ) const
inline

◆ GetName()

QString NoteBook_TableRow::GetName ( ) const

Function : GetName Purpose : Return variable name

References myVariableName.

◆ GetNameItem()

QTableWidgetItem * NoteBook_TableRow::GetNameItem ( )

Function : GetNameItem Purpose :

References myVariableName.

◆ GetValue()

QString NoteBook_TableRow::GetValue ( ) const

Function : GetValue Purpose : Return variable value

References myVariableValue.

◆ GetVariableItem()

QTableWidgetItem * NoteBook_TableRow::GetVariableItem ( )

Function : GetVariableItem Purpose :

References myVariableValue.

◆ IsBooleanValue()

bool NoteBook_TableRow::IsBooleanValue ( const QString  theValue,
bool *  theResult = 0 
)
static

Function : IsBooleanValue Purpose : Return true if theValue String is boolean value, otherwise return false

◆ IsIntegerValue()

bool NoteBook_TableRow::IsIntegerValue ( const QString  theValue,
int *  theResult = 0 
)
static

Function : IsIntegerValue Purpose : Return true if theValue string is integer value, otherwise return false

◆ IsRealValue()

bool NoteBook_TableRow::IsRealValue ( const QString  theValue,
double *  theResult = 0 
)
static

Function : IsRealValue Purpose : Return true if theValue string is real value, otherwise return false

◆ IsValidStringValue()

bool NoteBook_TableRow::IsValidStringValue ( const QString  theName)

Function : IsValidStringValue Purpose : Return true if theValue string is valid, otherwise return false The string are always valid for the moment The whole notebook is verified on apply

References SUIT_Session::activeApplication(), LightApp_Application::getPyInterp(), myParentTable, NoteBook_Table::myRows, LightApp_Application::pythonConsole(), and SUIT_Session::session().

◆ SetName()

void NoteBook_TableRow::SetName ( const QString  theName)

Function : SetName Purpose :

References myVariableName.

◆ SetValue()

void NoteBook_TableRow::SetValue ( const QString  theValue)

Function : SetValue Purpose :

References myVariableValue.

Member Data Documentation

◆ myIndex

int NoteBook_TableRow::myIndex
private

◆ myParentTable

NoteBook_Table* NoteBook_TableRow::myParentTable
private

◆ myRowHeader

QTableWidgetItem* NoteBook_TableRow::myRowHeader
private

◆ myVariableName

QTableWidgetItem* NoteBook_TableRow::myVariableName
private

◆ myVariableValue

QTableWidgetItem* NoteBook_TableRow::myVariableValue
private

The documentation for this class was generated from the following files: