Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show tool tip of shape multi selector. Remove an article.
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_ToolBox.h
diff --git
a/src/ModuleBase/ModuleBase_ToolBox.h
b/src/ModuleBase/ModuleBase_ToolBox.h
index 4462f80edcb6b9759626e392f0e7d497619ec0cc..1c2c1ef7d37df2cf6cc859207c2311589ccfe076 100644
(file)
--- a/
src/ModuleBase/ModuleBase_ToolBox.h
+++ b/
src/ModuleBase/ModuleBase_ToolBox.h
@@
-15,23
+15,43
@@
class QFrame;
class QHBoxLayout;
class QStackedWidget;
class QHBoxLayout;
class QStackedWidget;
+/**
+ * \class ModuleBase_ToolBox
+ * \ingroup GUI
+ * \brief An extension of QFrame object
+ */
class MODULEBASE_EXPORT ModuleBase_ToolBox : public QFrame
{
Q_OBJECT
public:
class MODULEBASE_EXPORT ModuleBase_ToolBox : public QFrame
{
Q_OBJECT
public:
+ /// Constructor
+ /// \param theParent a parent widget
ModuleBase_ToolBox( QWidget* theParent );
virtual ~ModuleBase_ToolBox();
ModuleBase_ToolBox( QWidget* theParent );
virtual ~ModuleBase_ToolBox();
+ /// Add a new item to the tool box
+ /// \param thePage a widget of the new item
+ /// \param theName a name of the item
+ /// \param theIcon an icon of the item
void addItem( QWidget* thePage, const QString& theName, const QPixmap& theIcon );
void addItem( QWidget* thePage, const QString& theName, const QPixmap& theIcon );
+
+ /// \return number of items
int count() const;
int count() const;
+
+ /// \return index of current widget
int currentIndex() const;
int currentIndex() const;
- void setCurrentIndex( const int );
+
+ /// Set current item
+ /// \param theIdx an index
+ void setCurrentIndex( const int theIdx);
signals:
signals:
+ /// A signal which is emited on current item changed
void currentChanged( int );
private slots:
void currentChanged( int );
private slots:
+ /// A slot called on button press
void onButton( int );
private:
void onButton( int );
private: