- protected:
- //Widgets
- QWidget* createWidgetByType(const std::string& theType, QWidget* theParent = NULL);
- QWidget* createContainer(const std::string& theType, QWidget* theParent = NULL);
- QWidget* labelControl(QWidget* theParent);
- QWidget* doubleSpinBoxControl(QWidget* theParent);
- QWidget* pointSelectorControl(QWidget* theParent);
- QWidget* featureSelectorControl(QWidget* theParent);
- QWidget* featureOrAttributeSelectorControl(QWidget* theParent);
- QWidget* doubleValueEditor(QWidget* theParent);
- QWidget* shapeSelectorControl(QWidget* theParent);
- QWidget* booleanControl(QWidget* theParent);
- QWidget* point2dDistanceControl(QWidget* theParent);
- QWidget* fileSelectorControl(QWidget* theParent);
- QWidget* choiceControl(QWidget* theParent);
-
- QString qs(const std::string& theStdString) const;
+ /// Returns the value of the title key from XML definition of the attribute in the feature
+ /// \param theFeatureKind a value of a kind of a feature
+ /// \param theAttributeId a value of a kind of the attribute under the feature
+ /// \param theTitle the result title
+ void getAttributeTitle(const std::string& theFeatureKind,
+ const std::string& theAttributeId,
+ std::string& theTitle);
+
+protected:
+ /// check if ModuleBase_Widget has expandable widgets in getControls
+ bool hasExpandingControls(QWidget* theParent);
+
+ /// Create page by its type
+ /// \param theType a type
+ /// \param theParent a parent widget
+ ModuleBase_PageBase* createPageByType(const std::string& theType,
+ QWidget* theParent);
+
+ /// Create widget by its type
+ /// \param theType a type
+ /// \param theParent a parent widget
+ ModuleBase_ModelWidget* createWidgetByType(const std::string& theType,
+ QWidget* theParent = NULL);
+
+ /// Convert STD string to QT string
+ /// \param theStdString is STD string
+ static QString qs(const std::string& theStdString);
+
+ /// It updates internal config api to point in the structure to given id of widget
+ /// The method is recusive and it stops when the found flag is true
+ /// \param theWidgetId a widget id key value
+ /// \param theFound a flag about found windget and recursive search should be stopped
+ void moveToWidgetId(const std::string& theWidgetId, bool& theFound);