- int addPage(QWidget * theWidget, const QString & theName);
- int count() const;
- int currentIndex() const;
- QWidget * currentWidget() const;
- int indexOf(QWidget * theWidget) const;
- int insertPage(int index, QWidget * theWidget, const QString & theName);
- bool isPageEnabled(int index) const;
- QString pageText(int index) const;
- QString pageToolTip(int index) const;
- void removePage(int index);
- void setPageEnabled(int index, bool enabled);
- void setPageName(int index, const QString & text);
- void setPageToolTip(int index, const QString & toolTip);
-
- public slots:
- void setCurrentIndex(int index);
-
-signals:
- void currentPageChanged(int);
+ /// Defines if it is supported to set the value in this widget
+ /// It returns false because this is an info widget
+ virtual bool canSetValue() const { return false; };
+
+ /// Add a page to the widget
+ /// \param theWidget a page widget
+ /// \param theName a name of page
+ /// \param theCaseId an Id of the page
+ /// \param theIcon an icon of the page
+ virtual int addPage( ModuleBase_PageBase* theWidget,
+ const QString& theName,
+ const QString& theCaseId,
+ const QPixmap& theIcon );