Version: 9.12.0
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 ()
 
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
 
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)
 

Public Attributes

QList< NoteBook_TableRow * > myRows
 

Private Member Functions

int getUniqueIndex () const
 

Private Attributes

bool isProcessItemChangedSignal
 
bool myIsModified
 
QList< int > myRemovedRows
 
VariableMap myVariableMapRef
 
VariableMap myVariableMap
 

Constructor & Destructor Documentation

◆ NoteBook_Table()

NoteBook_Table::NoteBook_Table ( QWidget parent = 0)

Function : NoteBook_Table Purpose : Constructor

References COLUMN_SIZE, and onItemChanged().

◆ ~NoteBook_Table()

NoteBook_Table::~NoteBook_Table ( )
virtual

Function : ~NoteBook_Table Purpose : Destructor

Member Function Documentation

◆ AddEmptyRow()

void NoteBook_Table::AddEmptyRow ( )

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

References AddRow(), and isProcessItemChangedSignal.

◆ AddRow()

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

◆ GetProcessItemChangedSignalFlag()

bool NoteBook_Table::GetProcessItemChangedSignalFlag ( ) const

Function : GetProcessItemChangedSignalFlag Purpose :

References isProcessItemChangedSignal.

◆ GetRemovedRows()

const QList<int>& NoteBook_Table::GetRemovedRows ( ) const
inline

◆ GetRowByItem()

NoteBook_TableRow * NoteBook_Table::GetRowByItem ( const QTableWidgetItem *  theItem) const

Function : GetRowByItem Purpose :

References myRows.

◆ GetRows()

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

Function : GetRows Purpose :

References myRows.

◆ getUniqueIndex()

int NoteBook_Table::getUniqueIndex ( ) const
private

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

References myRemovedRows, and myRows.

◆ GetVariableMap()

const VariableMap& NoteBook_Table::GetVariableMap ( ) const
inline

◆ GetVariableMapRef()

const VariableMap& NoteBook_Table::GetVariableMapRef ( ) const
inline

◆ Init()

void NoteBook_Table::Init ( )

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

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

◆ IsLastRow()

bool NoteBook_Table::IsLastRow ( const NoteBook_TableRow theRow) const

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

References myRows.

◆ IsModified()

bool NoteBook_Table::IsModified ( ) const
inline

◆ IsUniqueName()

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.

◆ IsValid()

bool NoteBook_Table::IsValid ( ) const

◆ onItemChanged

◆ RemoveSelected()

◆ RenumberRowItems()

void NoteBook_Table::RenumberRowItems ( )

Function : RenumberRowItems Purpose : renumber row items

References myRows.

◆ ResetMaps()

void NoteBook_Table::ResetMaps ( )

Function : ResetMaps Purpose : Reset variable maps

References myIsModified, myRemovedRows, myVariableMap, and myVariableMapRef.

◆ SetProcessItemChangedSignalFlag()

void NoteBook_Table::SetProcessItemChangedSignalFlag ( const bool  enable)

Function : SetProcessItemChangedSignalFlag Purpose :

References isProcessItemChangedSignal.

◆ Variable2String()

QString NoteBook_Table::Variable2String ( const std::string &  theVarName)
static

Function : Variable2String Purpose : Convert variable values to QString

References _PTR().

Member Data Documentation

◆ isProcessItemChangedSignal

bool NoteBook_Table::isProcessItemChangedSignal
private

◆ myIsModified

bool NoteBook_Table::myIsModified
private

◆ myRemovedRows

QList<int> NoteBook_Table::myRemovedRows
private

◆ myRows

QList<NoteBook_TableRow*> NoteBook_Table::myRows

◆ myVariableMap

VariableMap NoteBook_Table::myVariableMap
private

◆ myVariableMapRef

VariableMap NoteBook_Table::myVariableMapRef
private

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