Version: 6.3.1
Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Types | Private Slots | Private Member Functions | Private Attributes

VisuGUI_SelectionPanel Class Reference

#include <VisuGUI_SelectionPanel.h>

Inheritance diagram for VisuGUI_SelectionPanel:
Inheritance graph

Public Types

enum  {
  OKBtn = 0x0001, ApplyBtn = 0x0002, CloseBtn = 0x0004, HelpBtn = 0x0008,
  AllBtn = OKBtn | ApplyBtn | CloseBtn | HelpBtn
}

Signals

void selectionModeChanged (int)

Public Member Functions

 VisuGUI_SelectionPanel (VisuGUI *theModule, QWidget *theParent=0)
virtual ~VisuGUI_SelectionPanel ()
void setSelectionMode (int theId)
virtual bool isValid (QString &theMessage)
 Verifies validity of input data.
virtual void clear ()
 Virtual methods should be redefined in derived classes and clears all GUI controls.

Protected Slots

virtual void onModuleActivated ()
virtual void onModuleDeactivated ()
virtual void onOK ()
 Virtual slot called when “OK” button pressed emits corresponding signal.

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *theEvent)
virtual void showEvent (QShowEvent *theEvent)
virtual void closeEvent (QCloseEvent *theEvent)
QWidgetmainFrame ()
 Gets frame inserted in scroll view. All controls of derived panels should use it as parent.

Protected Attributes

QScrollArea * myView
QWidgetmyMainFrame
QPushButton * myOK
QPushButton * myApply
QPushButton * myClose
QPushButton * myHelp
VisuGUImyModule

Private Types

enum  MeshType { StdMesh = 0, ElnoMesh }
enum  TableId {
  CellStdCell = 0, CellStdPoint, PointStd, CellElno,
  PointElno
}
enum  ColumnId {
  Cell = 0, Point, X, Y,
  Z, I, J, K,
  Scalar, Vector
}

Private Slots

virtual void onApply ()
 Virtual slot called when “Apply” button pressed emits corresponding signal.
virtual void onClose ()
 Virtual slot called when “Close” button pressed emits corresponding signal.
virtual void onHelp ()
 Virtual slot called when “Help” button pressed emits corresponding signal.
void onPreferences ()
void onSelectionModeChanged (int theId)
void onSelectionEvent ()
void onPointIdEdit ()
void onCellIdEdit ()
void onDoubleClicked (const QModelIndex &theIndex)
void onIdChanged (int theFirstId, int theSecondId)

Private Member Functions

VisuGUI_SelectionPrefDlgpreferencesDlg ()
void clearFields ()
int column (int theTableId, int theColumnId)
QVariant data (int theTableId, int theRow, int theColumnId)
void setData (int theTableId, int theRow, int theColumnId, const QVariant &theValue)
void setRowSpan (int theTableId, int theRow, int theColumnId, int theRowSpan)

Private Attributes

QLabel * myMeshName
QLabel * myFieldName
QTabWidget * myTabWidget
QWidgetmyPointsPane
QWidgetmyCellsPane
QLineEditmyIDValLbl
QStackedWidget * myPointStackedWg
QLineEditmyCellIDValLbl
QStackedWidget * myCellStackedWg
QMap< int, QTableWidget * > myTables
QWidgetmyActorsPane
QLabel * myXPosLbl
QLabel * myYPosLbl
QLabel * myZPosLbl
QLabel * myDXLbl
QLabel * myDYLbl
QLabel * myDZLbl
VisuGUI_GaussPointsSelectionPanemyGaussPointsPane
VisuGUI_FindPanemyFindPane
VisuGUI_SelectionPrefDlgmyPreferencesDlg
bool myFl
QMap< int, QList< int > > myColumnData

Member Enumeration Documentation

Enumerator:
StdMesh 
ElnoMesh 
Enumerator:
CellStdCell 
CellStdPoint 
PointStd 
CellElno 
PointElno 
Enumerator:
Cell 
Point 
X 
Y 
Z 
I 
J 
K 
Scalar 
Vector 
anonymous enum [inherited]
Enumerator:
OKBtn 
ApplyBtn 
CloseBtn 
HelpBtn 
AllBtn 

Constructor & Destructor Documentation

VisuGUI_SelectionPanel::VisuGUI_SelectionPanel ( VisuGUI theModule,
QWidget theParent = 0 
)
VisuGUI_SelectionPanel::~VisuGUI_SelectionPanel ( ) [virtual]

References myPreferencesDlg.


Member Function Documentation

void VisuGUI_SelectionPanel::setSelectionMode ( int  theId)

References myTabWidget.

void VisuGUI_SelectionPanel::onModuleActivated ( ) [protected, virtual, slot]

Reimplemented from VisuGUI_Panel.

References VisuGUI_Panel.myModule, and onSelectionEvent().

void VisuGUI_SelectionPanel::onModuleDeactivated ( ) [protected, virtual, slot]

Reimplemented from VisuGUI_Panel.

References VisuGUI_Panel.myModule, and onSelectionEvent().

void VisuGUI_SelectionPanel::keyPressEvent ( QKeyEvent *  theEvent) [protected, virtual]

References onHelp().

void VisuGUI_SelectionPanel::showEvent ( QShowEvent *  theEvent) [protected, virtual]
void VisuGUI_SelectionPanel::closeEvent ( QCloseEvent *  theEvent) [protected, virtual]
void VisuGUI_SelectionPanel::onApply ( ) [private, virtual, slot]
See also:
onOK

Reimplemented from VisuGUI_Panel.

void VisuGUI_SelectionPanel::onClose ( ) [private, virtual, slot]
See also:
onOK

Reimplemented from VisuGUI_Panel.

void VisuGUI_SelectionPanel::onHelp ( ) [private, virtual, slot]
See also:
onOK

Reimplemented from VisuGUI_Panel.

References VisuGUI_Panel.myModule.

void VisuGUI_SelectionPanel::onPreferences ( ) [private, slot]

References preferencesDlg().

void VisuGUI_SelectionPanel::onSelectionModeChanged ( int  theId) [private, slot]
void VisuGUI_SelectionPanel::onSelectionEvent ( ) [private, slot]
void VisuGUI_SelectionPanel::onPointIdEdit ( ) [private, slot]
void VisuGUI_SelectionPanel::onCellIdEdit ( ) [private, slot]
void VisuGUI_SelectionPanel::onDoubleClicked ( const QModelIndex &  theIndex) [private, slot]
void VisuGUI_SelectionPanel::onIdChanged ( int  theFirstId,
int  theSecondId 
) [private, slot]
void VisuGUI_SelectionPanel.selectionModeChanged ( int  ) [signal]
VisuGUI_SelectionPrefDlg * VisuGUI_SelectionPanel::preferencesDlg ( ) [private]
void VisuGUI_SelectionPanel::clearFields ( ) [private]
int VisuGUI_SelectionPanel::column ( int  theTableId,
int  theColumnId 
) [private]

References myColumnData.

QVariant VisuGUI_SelectionPanel::data ( int  theTableId,
int  theRow,
int  theColumnId 
) [private]
void VisuGUI_SelectionPanel::setData ( int  theTableId,
int  theRow,
int  theColumnId,
const QVariant &  theValue 
) [private]
void VisuGUI_SelectionPanel::setRowSpan ( int  theTableId,
int  theRow,
int  theColumnId,
int  theRowSpan 
) [private]
bool VisuGUI_Panel::isValid ( QString &  theMessage) [virtual, inherited]

This virtual method should be redefined in derived classes. Usually operator corresponding to the sub-panel calls this method to check validity of input data when Apply/OK button is pressed.

Parameters:
theErrMsgError message.

If data is invalid when panel can return message using this parameter given clear explanation what is wrong

Returns:
TRUE if data is valid, FALSE otherwise
void VisuGUI_Panel::clear ( ) [virtual, inherited]
void VisuGUI_Panel::onOK ( ) [protected, virtual, slot, inherited]

This slot moves focus in OK button before emitting signal. Mainly it provides application with correct moving data from currently edited controls to internal structure. For example QTable moves data from cell editor to table item when focus is out.

References VisuGUI_Panel.myOK.

QWidget * VisuGUI_Panel::mainFrame ( ) [protected, inherited]
Returns:
QFrame* object

References VisuGUI_Panel.myMainFrame.


Field Documentation

QTabWidget* VisuGUI_SelectionPanel.myTabWidget [private]
QStackedWidget* VisuGUI_SelectionPanel.myPointStackedWg [private]
QStackedWidget* VisuGUI_SelectionPanel.myCellStackedWg [private]
QMap<int, QTableWidget*> VisuGUI_SelectionPanel.myTables [private]
QLabel* VisuGUI_SelectionPanel.myDXLbl [private]
QLabel* VisuGUI_SelectionPanel.myDYLbl [private]
QLabel* VisuGUI_SelectionPanel.myDZLbl [private]
QMap< int, QList<int> > VisuGUI_SelectionPanel.myColumnData [private]
QScrollArea* VisuGUI_Panel.myView [protected, inherited]
QWidget* VisuGUI_Panel.myMainFrame [protected, inherited]
QPushButton* VisuGUI_Panel.myOK [protected, inherited]
QPushButton* VisuGUI_Panel.myApply [protected, inherited]
QPushButton* VisuGUI_Panel.myClose [protected, inherited]
QPushButton* VisuGUI_Panel.myHelp [protected, inherited]
VisuGUI* VisuGUI_Panel.myModule [protected, inherited]
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