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

VisuGUI_FeatureEdgesPanel Class Reference

#include <VisuGUI_FeatureEdgesPanel.h>

Inheritance diagram for VisuGUI_FeatureEdgesPanel:
Inheritance graph

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)
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 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_ActorgetSelectedActor () const

Private Attributes

QGroupBoxmyGrp
SalomeApp_DoubleSpinBox * myAngleSpinBox
QCheckBox * myFeatureEdgesCB
QCheckBox * myBoundaryEdgesCB
QCheckBox * myManifoldEdgesCB
QCheckBox * myNonManifoldEdgesCB
QCheckBox * myColoringCB
VISU_ActormyActor

Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
OKBtn 
ApplyBtn 
CloseBtn 
HelpBtn 
AllBtn 

Constructor & Destructor Documentation

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

Member Function Documentation

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]
void VisuGUI_FeatureEdgesPanel::onClose ( ) [private, virtual, slot]
See also:
onOK

Reimplemented from VisuGUI_Panel.

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

Reimplemented from VisuGUI_Panel.

References VisuGUI_Panel.myModule.

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.

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

SalomeApp_DoubleSpinBox* VisuGUI_FeatureEdgesPanel.myAngleSpinBox [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