Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( int  index,
NoteBook_Table parentTable,
QWidget parent = 0 
)

Function : NoteBook_TableRow Purpose : Constructor

NoteBook_TableRow::~NoteBook_TableRow ( )
virtual

Function : ~NoteBook_TableRow Purpose : Destructor

Member Function Documentation

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.

bool NoteBook_TableRow::CheckName ( )

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

References GetName().

bool NoteBook_TableRow::CheckValue ( )

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

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

QTableWidgetItem * NoteBook_TableRow::GetHeaderItem ( )

Function : GetHeaderItem Purpose :

References myRowHeader.

int NoteBook_TableRow::GetIndex ( ) const
inline
QString NoteBook_TableRow::GetName ( ) const

Function : GetName Purpose : Return variable name

References myVariableName.

QTableWidgetItem * NoteBook_TableRow::GetNameItem ( )

Function : GetNameItem Purpose :

References myVariableName.

QString NoteBook_TableRow::GetValue ( ) const

Function : GetValue Purpose : Return variable value

References myVariableValue.

QTableWidgetItem * NoteBook_TableRow::GetVariableItem ( )

Function : GetVariableItem Purpose :

References myVariableValue.

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

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

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

bool NoteBook_TableRow::IsValidStringValue ( const QString  theValue)

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(), app, LightApp_Application::getPyInterp(), myParentTable, NoteBook_Table::myRows, LightApp_Application::pythonConsole(), and SUIT_Session::session().

void NoteBook_TableRow::SetName ( const QString  theName)

Function : SetName Purpose :

References myVariableName.

void NoteBook_TableRow::SetValue ( const QString  theValue)

Function : SetValue Purpose :

References myVariableValue.

Member Data Documentation

int NoteBook_TableRow::myIndex
private
NoteBook_Table* NoteBook_TableRow::myParentTable
private
QTableWidgetItem* NoteBook_TableRow::myRowHeader
private
QTableWidgetItem* NoteBook_TableRow::myVariableName
private
QTableWidgetItem* NoteBook_TableRow::myVariableValue
private

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