Base class for VISU interactive dockable panels. More...
#include <VisuGUI_Panel.h>

Data Structures | |
| class | MainFrame |
Public Types | |
| enum | { OKBtn = 0x0001, ApplyBtn = 0x0002, CloseBtn = 0x0004, HelpBtn = 0x0008, AllBtn = OKBtn | ApplyBtn | CloseBtn | HelpBtn } |
Public Member Functions | |
| VisuGUI_Panel (const QString &theName, VisuGUI *theModule, QWidget *theParent=0, const int theBtns=AllBtn) | |
| Constructor creates panels look and feel. | |
| virtual | ~VisuGUI_Panel () |
| Destructor. | |
| 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 | onOK () |
| Virtual slot called when “OK” button pressed emits corresponding signal. | |
| 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. | |
| virtual void | onModuleActivated () |
| virtual void | onModuleDeactivated () |
Protected Member Functions | |
| 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 |
Set of classes is derived from this class and are intended for representing widgets (GUI controls) for different operations. VisuGUI_Panel consists of main frame inserted in scroll view and four push buttons. So all widgets of derived sub-panels should be inherited from mainframe() instead of “this” pointer.
| VisuGUI_Panel::~VisuGUI_Panel | ( | ) | [virtual] |
| bool VisuGUI_Panel::isValid | ( | QString & | theMessage | ) | [virtual] |
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] |
| void VisuGUI_Panel::onOK | ( | ) | [protected, virtual, slot] |
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 myOK.
| void VisuGUI_Panel::onApply | ( | ) | [protected, virtual, slot] |
Reimplemented in VisuGUI_ClippingPanel, VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
References myApply.
| void VisuGUI_Panel::onClose | ( | ) | [protected, virtual, slot] |
Reimplemented in VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
References myClose.
| void VisuGUI_Panel::onHelp | ( | ) | [protected, virtual, slot] |
Reimplemented in VisuGUI_ClippingPanel, VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
References myHelp.
| void VisuGUI_Panel::onModuleActivated | ( | ) | [protected, virtual, slot] |
Reimplemented in VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
| void VisuGUI_Panel::onModuleDeactivated | ( | ) | [protected, virtual, slot] |
Reimplemented in VisuGUI_FeatureEdgesPanel, and VisuGUI_SelectionPanel.
| QWidget * VisuGUI_Panel::mainFrame | ( | ) | [protected] |
References myMainFrame.
QScrollArea* VisuGUI_Panel.myView [protected] |
QWidget* VisuGUI_Panel.myMainFrame [protected] |
QPushButton* VisuGUI_Panel.myOK [protected] |
QPushButton* VisuGUI_Panel.myApply [protected] |
QPushButton* VisuGUI_Panel.myClose [protected] |
QPushButton* VisuGUI_Panel.myHelp [protected] |
VisuGUI* VisuGUI_Panel.myModule [protected] |