Version: 6.3.1
Public Slots | Public Member Functions | Static Public Member Functions | Data Fields | Private Member Functions | Private Attributes

NoteBook_Table Class Reference

#include <SalomeApp_NoteBookDlg.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 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

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

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
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 ( )
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]
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]

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS