#include <VisuGUI_FeatureEdgesPanel.h>

Public Types | |
| enum | { OKBtn = 0x0001, ApplyBtn = 0x0002, CloseBtn = 0x0004, HelpBtn = 0x0008, AllBtn = OKBtn | ApplyBtn | CloseBtn | HelpBtn } |
Public Member Functions | |
| VisuGUI_FeatureEdgesPanel (VisuGUI *theModule, QWidget *theParent=0) | |
| virtual | ~VisuGUI_FeatureEdgesPanel () |
| 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) |
| QWidget * | mainFrame () |
| Gets frame inserted in scroll view. All controls of derived panels should use it as parent. | |
Protected Attributes | |
| QScrollArea * | myView |
| QWidget * | myMainFrame |
| QPushButton * | myOK |
| QPushButton * | myApply |
| QPushButton * | myClose |
| QPushButton * | myHelp |
| VisuGUI * | myModule |
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 | onSelectionEvent () |
Private Member Functions | |
| VISU_Actor * | getSelectedActor () const |
Private Attributes | |
| QGroupBox * | myGrp |
| SalomeApp_DoubleSpinBox * | myAngleSpinBox |
| QCheckBox * | myFeatureEdgesCB |
| QCheckBox * | myBoundaryEdgesCB |
| QCheckBox * | myManifoldEdgesCB |
| QCheckBox * | myNonManifoldEdgesCB |
| QCheckBox * | myColoringCB |
| VISU_Actor * | myActor |
| VisuGUI_FeatureEdgesPanel::~VisuGUI_FeatureEdgesPanel | ( | ) | [virtual] |
| void VisuGUI_FeatureEdgesPanel::keyPressEvent | ( | QKeyEvent * | theEvent | ) | [protected, virtual] |
References onHelp().
| void VisuGUI_FeatureEdgesPanel::showEvent | ( | QShowEvent * | theEvent | ) | [protected, virtual] |
References onSelectionEvent().
| void VisuGUI_FeatureEdgesPanel::onModuleActivated | ( | ) | [protected, virtual, slot] |
Reimplemented from VisuGUI_Panel.
References VisuGUI_Panel.myModule, and onSelectionEvent().
| void VisuGUI_FeatureEdgesPanel::onModuleDeactivated | ( | ) | [protected, virtual, slot] |
Reimplemented from VisuGUI_Panel.
References VisuGUI_Panel.myModule, and onSelectionEvent().
| void VisuGUI_FeatureEdgesPanel::onApply | ( | ) | [private, virtual, slot] |
Reimplemented from VisuGUI_Panel.
References myActor, myAngleSpinBox, myBoundaryEdgesCB, myFeatureEdgesCB, myManifoldEdgesCB, myNonManifoldEdgesCB, VISU_Actor.SetFeatureEdgesAngle(), and VISU_Actor.SetFeatureEdgesFlags().
| void VisuGUI_FeatureEdgesPanel::onClose | ( | ) | [private, virtual, slot] |
Reimplemented from VisuGUI_Panel.
| void VisuGUI_FeatureEdgesPanel::onHelp | ( | ) | [private, virtual, slot] |
| void VisuGUI_FeatureEdgesPanel::onSelectionEvent | ( | ) | [private, slot] |
| VISU_Actor * VisuGUI_FeatureEdgesPanel::getSelectedActor | ( | ) | const [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.
| theErrMsg | Error message. |
If data is invalid when panel can return message using this parameter given clear explanation what is wrong
| 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] |
References VisuGUI_Panel.myMainFrame.
QGroupBox* VisuGUI_FeatureEdgesPanel.myGrp [private] |
SalomeApp_DoubleSpinBox* VisuGUI_FeatureEdgesPanel.myAngleSpinBox [private] |
QCheckBox* VisuGUI_FeatureEdgesPanel.myFeatureEdgesCB [private] |
QCheckBox* VisuGUI_FeatureEdgesPanel.myBoundaryEdgesCB [private] |
QCheckBox* VisuGUI_FeatureEdgesPanel.myManifoldEdgesCB [private] |
QCheckBox* VisuGUI_FeatureEdgesPanel.myNonManifoldEdgesCB [private] |
QCheckBox* VisuGUI_FeatureEdgesPanel.myColoringCB [private] |
VISU_Actor* VisuGUI_FeatureEdgesPanel.myActor [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] |