20 #ifndef ParametersPlugin_WidgetParamsMgr_H_
21 #define ParametersPlugin_WidgetParamsMgr_H_
23 #include <ModuleBase_ModelDialogWidget.h>
24 #include <QModelIndex>
25 #include <QAbstractItemDelegate>
26 #include <QTreeWidget>
28 class QTreeWidgetItem;
50 virtual void closeEditor(
QWidget* theEditor, QAbstractItemDelegate::EndEditHint theHint);
89 virtual void showEvent(QShowEvent* theEvent);
91 virtual void hideEvent(QHideEvent* theEvent);
96 void onDoubleClick(
const QModelIndex& theIndex);
101 void onCloseEditor(
QWidget* theEditor, QAbstractItemDelegate::EndEditHint theHint);
125 void onSelectionChanged();
128 void onShowPreview();
132 FeaturePtr createParameter()
const;
135 QTreeWidgetItem* createNewItem(QTreeWidgetItem* theParent)
const;
138 QTreeWidgetItem* selectedItem()
const;
141 void selectItemScroll(QTreeWidgetItem* theItem);
144 void updateItem(QTreeWidgetItem* theItem,
const QList<QStringList>& theFeaturesList);
146 void updateFeaturesPart();
148 void updateParametersPart();
154 bool hasName(
const QString& theName,
int theIndex)
const;
157 void enableButtons(
bool theEnable);
159 QList<QStringList> featuresItems(
const QList<FeaturePtr>& theFeatures,
160 QList<FeaturePtr>& theFeatureList)
const;
161 QList<QStringList> parametersItems(
const QList<FeaturePtr>& theFeatures)
const;
163 void updateParametersFeatures();
168 QTreeWidgetItem* myFeatures;
169 QTreeWidgetItem* myParameters;
172 QList<FeaturePtr> myParametersList;
176 QPushButton* myAddBtn;
177 QPushButton* myInsertBtn;
178 QPushButton* myRemoveBtn;
179 QPushButton* myImportBtn;
180 QToolButton* myUpBtn;
181 QToolButton* myDownBtn;
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48
Definition: ParametersPlugin_WidgetParamsMgr.cpp:78