Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NoteBook_Table Class Reference

#include <SalomeApp_NoteBook.h>

Inheritance diagram for NoteBook_Table:
Inheritance graph

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_TableRowGetRowByItem (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 VariableMapGetVariableMap () const
 
const VariableMapGetVariableMapRef () const
 
void RenumberRowItems ()
 
void ResetMaps ()
 

Static Public Member Functions

static QString Variable2String (const std::string &theVarName, _PTR(Study) theStudy)
 

Public Attributes

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
 

Constructor & Destructor Documentation

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

Member Function Documentation

NoteBook_Table::_PTR ( Study  )
private
void NoteBook_Table::AddEmptyRow ( )

Function : AddEmptyRow Purpose : Add an empty row into the end of the table

References AddRow(), and isProcessItemChangedSignal.

void NoteBook_Table::AddRow ( const QString &  theName = QString::null,
const QString &  theValue = QString::null 
)
bool NoteBook_Table::GetProcessItemChangedSignalFlag ( ) const

Function : GetProcessItemChangedSignalFlag Purpose :

References isProcessItemChangedSignal.

const QList<int>& NoteBook_Table::GetRemovedRows ( ) const
inline
NoteBook_TableRow * NoteBook_Table::GetRowByItem ( const QTableWidgetItem *  theItem) const

Function : GetRowByItem Purpose :

References myRows.

QList< NoteBook_TableRow * > NoteBook_Table::GetRows ( ) const

Function : GetRows Purpose :

References myRows.

int NoteBook_Table::getUniqueIndex ( ) const
private

Function : getUniqueIndex Purpose : Get a unique index for the new row

References myRemovedRows, and myRows.

const VariableMap& NoteBook_Table::GetVariableMap ( ) const
inline
const VariableMap& NoteBook_Table::GetVariableMapRef ( ) const
inline
void NoteBook_Table::Init ( _PTR(Study)  theStudy)

Function : Init Purpose : Add variables in the table from theStudy

References AddEmptyRow(), AddRow(), isProcessItemChangedSignal, myRemovedRows, myRows, myVariableMap, myVariableMapRef, ResetMaps(), and Variable2String().

bool NoteBook_Table::IsLastRow ( const NoteBook_TableRow theRow) const

Function : IsLastRow Purpose : Return true if theRow is last row in the table

References myRows.

const bool NoteBook_Table::IsModified ( ) const
inline
bool NoteBook_Table::IsUniqueName ( const NoteBook_TableRow theRow) const

Function : IsUniqueName Purpose : Return true if theName is unique name of the Variable

References GetName(), NoteBook_TableRow::GetName(), and myRows.

bool NoteBook_Table::IsValid ( ) const
void NoteBook_Table::RenumberRowItems ( )

Function : RenumberRowItems 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::SetProcessItemChangedSignalFlag ( const bool  enable)

Function : SetProcessItemChangedSignalFlag Purpose :

References isProcessItemChangedSignal.

QString NoteBook_Table::Variable2String ( const std::string &  theVarName,
_PTR(Study)  theStudy 
)
static

Function : Variable2String Purpose : Convert variable values to QString

Member Data Documentation

bool NoteBook_Table::isProcessItemChangedSignal
private
bool NoteBook_Table::myIsModified
private
QList<int> NoteBook_Table::myRemovedRows
private
QList<NoteBook_TableRow*> NoteBook_Table::myRows
VariableMap NoteBook_Table::myVariableMap
private
VariableMap NoteBook_Table::myVariableMapRef
private

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