SMESHGUI_FilterTable Class Reference

#include <SMESHGUI_FilterDlg.h>

Inheritance diagram for SMESHGUI_FilterTable:

Inheritance graph

Signals

void CopyFromClicked ()
void AddToClicked ()
void EntityTypeChanged (const int)
void NeedValidation ()
void CriterionChanged (const int theRow, const int theEntityType)
void CurrentChanged (int, int)

Public Member Functions

 SMESHGUI_FilterTable (SMESHGUI *, QWidget *parent, const int type)
 SMESHGUI_FilterTable (SMESHGUI *, QWidget *parent, const QValueList< int > &type)
virtual ~SMESHGUI_FilterTable ()
void Init (const int type)
void Init (const QValueList< int > &types)
QGroupBoxGetTableGrp ()
bool IsValid (const bool=true, const int theEntityType=-1) const
int GetType () const
void SetType (const int)
void RestorePreviousEntityType ()
int NumRows (const int theEntityType=-1) const
void Clear (const int theEntityType=-1)
void SetEditable (const bool)
void SetEnabled (const bool)
void SetLibsEnabled (const bool)
bool IsEditable () const
int GetCriterionType (const int theRow, const int theType=-1) const
void GetCriterion (const int theRow, SMESH::Filter::Criterion &theCriterion, const int theEntityType=-1) const
void SetCriterion (const int theRow, const SMESH::Filter::Criterion &theCriterion, const int theEntityType=-1)
void AddCriterion (const SMESH::Filter::Criterion &theCriterion, const int theEntityType=-1)
void Copy (const SMESHGUI_FilterTable *)
void SetValidity (const bool)
bool CurrentCell (int &theRow, int &theCol) const
void SetThreshold (const int theRow, const QString &theText, const int theEntityType=-1)
bool GetThreshold (const int theRow, QString &theText, const int theEntityType=-1)
void SetID (const int theRow, const QString &theText, const int theEntityType=-1)
bool GetID (const int theRow, QString &theText, const int theEntityType=-1)
void Update ()

Private Types

typedef QMap< int, Table * > TableMap

Private Slots

void onAddBtn ()
void onInsertBtn ()
void onRemoveBtn ()
void onClearBtn ()
void onCopyFromBtn ()
void onAddToBtn ()
void onCriterionChanged (int, int)
void onEntityType (int)
void onCurrentChanged (int, int)

Private Member Functions

void addRow (Table *, const int, const bool toTheEnd=true)
QTableItemgetCriterionItem (QTable *, const int)
QTableItemgetCompareItem (QTable *)
QTableItemgetUnaryItem (QTable *)
QTableItemgetBinaryItem (QTable *)
const QMap< int, QString > & getCriteria (const int theType) const
const QMap< int, QString > & getCompare () const
TablecreateTable (QWidget *, const int)
QWidget * createAdditionalFrame (QWidget *theParent)
int getFirstSelectedRow () const
void onCriterionChanged (const int, const int, const int)
void updateBtnState ()
void removeAdditionalWidget (QTable *theTable, const int theRow)
void updateAdditionalWidget ()
const QMap< int, QString > & getSupportedTypes () const

Private Attributes

SMESHGUImySMESHGUI
QGroupBoxmyTableGrp
QGroupBoxmySwitchTableGrp
TableMap myTables
QPushButton * myAddBtn
QPushButton * myInsertBtn
QPushButton * myRemoveBtn
QPushButton * myClearBtn
QPushButton * myCopyFromBtn
QPushButton * myAddToBtn
QButtonGroup * myEntityTypeGrp
int myEntityType
int myIsValid
bool myIsLocked
SMESHGUI_FilterLibraryDlgmyLibDlg
QWidgetStack * myWgStack
QMap< QTableItem *, AdditionalWidget * > myAddWidgets

Data Structures

class  AdditionalWidget
class  ComboItem
class  Table

Detailed Description

Class : SMESHGUI_FilterTable Description : Frame containig


Member Typedef Documentation

typedef QMap<int, Table*> SMESHGUI_FilterTable.TableMap [private]
 


Constructor & Destructor Documentation

SMESHGUI_FilterTable::SMESHGUI_FilterTable SMESHGUI ,
QWidget *  parent,
const int  type
 

SMESHGUI_FilterTable::SMESHGUI_FilterTable SMESHGUI ,
QWidget *  parent,
const QValueList< int > &  type
 

SMESHGUI_FilterTable::~SMESHGUI_FilterTable  )  [virtual]
 


Member Function Documentation

void SMESHGUI_FilterTable::Init const int  type  ) 
 

void SMESHGUI_FilterTable::Init const QValueList< int > &  types  ) 
 

QGroupBox * SMESHGUI_FilterTable::GetTableGrp  ) 
 

bool SMESHGUI_FilterTable::IsValid const   bool = true,
const int  theEntityType = -1
const
 

int SMESHGUI_FilterTable::GetType  )  const
 

void SMESHGUI_FilterTable::SetType const   int  ) 
 

void SMESHGUI_FilterTable::RestorePreviousEntityType  ) 
 

int SMESHGUI_FilterTable::NumRows const int  theEntityType = -1  )  const
 

void SMESHGUI_FilterTable::Clear const int  theEntityType = -1  ) 
 

void SMESHGUI_FilterTable::SetEditable const   bool  ) 
 

void SMESHGUI_FilterTable::SetEnabled const   bool  ) 
 

void SMESHGUI_FilterTable::SetLibsEnabled const   bool  ) 
 

bool SMESHGUI_FilterTable::IsEditable  )  const
 

int SMESHGUI_FilterTable::GetCriterionType const int  theRow,
const int  theType = -1
const
 

void SMESHGUI_FilterTable::GetCriterion const int  theRow,
SMESH::Filter::Criterion theCriterion,
const int  theEntityType = -1
const
 

void SMESHGUI_FilterTable::SetCriterion const int  theRow,
const SMESH::Filter::Criterion theCriterion,
const int  theEntityType = -1
 

void SMESHGUI_FilterTable::AddCriterion const SMESH::Filter::Criterion theCriterion,
const int  theEntityType = -1
 

void SMESHGUI_FilterTable::Copy const SMESHGUI_FilterTable  ) 
 

void SMESHGUI_FilterTable::SetValidity const   bool  ) 
 

bool SMESHGUI_FilterTable::CurrentCell int theRow,
int theCol
const
 

void SMESHGUI_FilterTable::SetThreshold const int  theRow,
const QString &  theText,
const int  theEntityType = -1
 

bool SMESHGUI_FilterTable::GetThreshold const int  theRow,
QString &  theText,
const int  theEntityType = -1
 

void SMESHGUI_FilterTable::SetID const int  theRow,
const QString &  theText,
const int  theEntityType = -1
 

bool SMESHGUI_FilterTable::GetID const int  theRow,
QString &  theText,
const int  theEntityType = -1
 

void SMESHGUI_FilterTable::Update  ) 
 

void SMESHGUI_FilterTable.CopyFromClicked  )  [signal]
 

void SMESHGUI_FilterTable.AddToClicked  )  [signal]
 

void SMESHGUI_FilterTable.EntityTypeChanged const   int  )  [signal]
 

void SMESHGUI_FilterTable.NeedValidation  )  [signal]
 

void SMESHGUI_FilterTable.CriterionChanged const int  theRow,
const int  theEntityType
[signal]
 

void SMESHGUI_FilterTable.CurrentChanged int  ,
int 
[signal]
 

void SMESHGUI_FilterTable::onAddBtn  )  [private, slot]
 

void SMESHGUI_FilterTable::onInsertBtn  )  [private, slot]
 

void SMESHGUI_FilterTable::onRemoveBtn  )  [private, slot]
 

void SMESHGUI_FilterTable::onClearBtn  )  [private, slot]
 

void SMESHGUI_FilterTable::onCopyFromBtn  )  [private, slot]
 

void SMESHGUI_FilterTable::onAddToBtn  )  [private, slot]
 

void SMESHGUI_FilterTable::onCriterionChanged int  ,
int 
[private, slot]
 

void SMESHGUI_FilterTable::onEntityType int   )  [private, slot]
 

void SMESHGUI_FilterTable::onCurrentChanged int  ,
int 
[private, slot]
 

void SMESHGUI_FilterTable::addRow Table ,
const   int,
const bool  toTheEnd = true
[private]
 

QTableItem * SMESHGUI_FilterTable::getCriterionItem QTable ,
const   int
[private]
 

QTableItem * SMESHGUI_FilterTable::getCompareItem QTable  )  [private]
 

QTableItem * SMESHGUI_FilterTable::getUnaryItem QTable  )  [private]
 

QTableItem * SMESHGUI_FilterTable::getBinaryItem QTable  )  [private]
 

const QMap< int, QString > & SMESHGUI_FilterTable::getCriteria const int  theType  )  const [private]
 

const QMap< int, QString > & SMESHGUI_FilterTable::getCompare  )  const [private]
 

SMESHGUI_FilterTable::Table * SMESHGUI_FilterTable::createTable QWidget *  ,
const   int
[private]
 

QWidget * SMESHGUI_FilterTable::createAdditionalFrame QWidget *  theParent  )  [private]
 

int SMESHGUI_FilterTable::getFirstSelectedRow  )  const [private]
 

void SMESHGUI_FilterTable::onCriterionChanged const   int,
const   int,
const   int
[private]
 

void SMESHGUI_FilterTable::updateBtnState  )  [private]
 

void SMESHGUI_FilterTable::removeAdditionalWidget QTable theTable,
const int  theRow
[private]
 

void SMESHGUI_FilterTable::updateAdditionalWidget  )  [private]
 

const QMap< int, QString > & SMESHGUI_FilterTable::getSupportedTypes  )  const [private]
 


Field Documentation

SMESHGUI* SMESHGUI_FilterTable.mySMESHGUI [private]
 

QGroupBox* SMESHGUI_FilterTable.myTableGrp [private]
 

QGroupBox* SMESHGUI_FilterTable.mySwitchTableGrp [private]
 

TableMap SMESHGUI_FilterTable.myTables [private]
 

QPushButton* SMESHGUI_FilterTable.myAddBtn [private]
 

QPushButton* SMESHGUI_FilterTable.myInsertBtn [private]
 

QPushButton* SMESHGUI_FilterTable.myRemoveBtn [private]
 

QPushButton* SMESHGUI_FilterTable.myClearBtn [private]
 

QPushButton* SMESHGUI_FilterTable.myCopyFromBtn [private]
 

QPushButton* SMESHGUI_FilterTable.myAddToBtn [private]
 

QButtonGroup* SMESHGUI_FilterTable.myEntityTypeGrp [private]
 

int SMESHGUI_FilterTable.myEntityType [private]
 

int SMESHGUI_FilterTable.myIsValid [private]
 

bool SMESHGUI_FilterTable.myIsLocked [private]
 

SMESHGUI_FilterLibraryDlg* SMESHGUI_FilterTable.myLibDlg [private]
 

QWidgetStack* SMESHGUI_FilterTable.myWgStack [private]
 

QMap<QTableItem*, AdditionalWidget*> SMESHGUI_FilterTable.myAddWidgets [private]