protected slots:
/// Called on text changed
virtual void onTextChanged(const QString&);
+ /// Called on value changed
void onValueChanged(const QString& theValue);
protected:
/// Removes extra trailing zero symbols
QString removeTrailingZeroes(const QString&) const;
+ /// Called on key press event
virtual void keyPressEvent(QKeyEvent* theEvent);
private:
signals:
/// The operation is started
void beforeStarted();
+ /// The operation is started
void started();
/// The operation is aborted
void beforeAborted();
+ /// The operation is aborted
void aborted();
/// The operation is committed
void beforeCommitted();
+ /// The operation is committed
void committed();
/// The operation is aborted or committed
CompositeFeaturePtr parentFeature() const;
/// Stores the previous to the operation current feature
- /// \set theFeature a feature
+ /// \param theFeature a feature
void setPreviousCurrentFeature(const FeaturePtr& theFeature);
/// Returns the previous to the operation current feature
/// Retrieve preferences of resource manage to default state
static void resetResourcePreferences(SUIT_PreferenceMgr* thePref);
+ /// Retrieve preferences of config prop to default state
static void resetConfigPropPreferences(SUIT_PreferenceMgr* thePref);
private:
/// Returns placeholder list
QString placeHolderText() const;
- // Returns true if the current value is modified by has not been applyed yet
+ /// Returns true if the current value is modified by has not been applyed yet
bool isModified() const;
- // Clears modified state
+ /// Clears modified state
void clearModified();
public slots:
QString mySelectedFilter;
/// A title of open file dialog box
- enum { WFS_OPEN, WFS_SAVE } myType;
+ enum {
+ WFS_OPEN, ///< open file
+ WFS_SAVE ///< save file
+ } myType; ///< type of dialog
/// Default path
QString myDefaultPath;
virtual void grantedOperationIds(ModuleBase_Operation* theOperation, QStringList& theIds) const;
/// Validates the current operation and send the state change to sketch manager
- /// \thePrevState the previous widget value state
+ /// \param thePreviousState the previous widget value state
virtual void widgetStateChanged(int thePreviousState);
public slots:
void connectToPropertyPanel(ModuleBase_ModelWidget* theWidget, const bool isToConnect);
/// Visualize the operation feature if the previous state is modified value in property panel
- /// \thePrevState the previous widget value state
+ /// \param thePreviousState the previous widget value state
void widgetStateChanged(int thePreviousState);
public slots:
void setConstraintWith(const ObjectPtr& theObject);
protected:
- ModuleBase_IWorkshop* myWorkshop;
+ ModuleBase_IWorkshop* myWorkshop; ///< workshop
private:
const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
/// Redefinition of virtual function
+ /// \param aSelection selection
+ /// \param aMode compute mode
Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
const Standard_Integer aMode);
/// \param isEnabled a boolean value
bool enableUpdateViewer(const bool isEnabled);
+ /// Returns myEnableUpdateViewer flag
bool isUpdateEnabled() const { return myEnableUpdateViewer; }
/// Updates the viewer
Q_OBJECT
public:
/// Constructor
+ /// \param theText a text
/// \param theParent a parent widget
XGUI_ActiveDocLbl(const QString& theText, QWidget* theParent );
+ /// Sets tree view
+ /// \param theView a view
void setTreeView(QTreeView* theView);
+ /// Returns tree view
QTreeView* treePalette() const { return myTreeView;}
#if (!defined HAVE_SALOME) && (defined WIN32)
#endif
public slots:
+ /// On unselect
void unselect();
protected:
+ /// On mouse release
virtual void mouseReleaseEvent( QMouseEvent* e);
+ /// Filter event
bool eventFilter(QObject* theObj, QEvent* theEvent);
private:
/// Constructor
/// \param theParent is a parent of the property panel
+ /// \param theMgr operation manager
XGUI_PropertyPanel(QWidget* theParent, XGUI_OperationMgr* theMgr);
virtual ~XGUI_PropertyPanel();