-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
class ParametersPlugin_ItemDelegate;
class QPushButton;
class QToolButton;
-
+class ModuleBase_IWorkshop;
/*!
* \ingroup GUI
Q_OBJECT
public:
/// Constructs a model widget
- ParametersPlugin_WidgetParamsMgr(QWidget* theParent, const Config_WidgetAPI* theData);
+ ParametersPlugin_WidgetParamsMgr(QWidget* theParent, const Config_WidgetAPI* theData,
+ ModuleBase_IWorkshop* theWorkshop);
/// Destructs the model widget
virtual ~ParametersPlugin_WidgetParamsMgr() {}
/// Slot for reaction on remove parameter
void onRemove();
+ /// Slot for reaction on import parameter
+ void onImport();
+
/// Slot for reaction on shift up
void onUp();
bool isValid();
/// Returns true if parameter with the given name already exists
- bool hasName(const QString& theName) const;
+ bool hasName(const QString& theName, int theIndex) const;
/// Enable or disable buttons for parameters managemnt
void enableButtons(bool theEnable);
void updateParametersFeatures();
+ ModuleBase_IWorkshop* myWorkshop;
+
ParametersPlugin_TreeWidget* myTable;
QTreeWidgetItem* myFeatures;
QTreeWidgetItem* myParameters;
QPushButton* myAddBtn;
QPushButton* myInsertBtn;
QPushButton* myRemoveBtn;
+ QPushButton* myImportBtn;
QToolButton* myUpBtn;
QToolButton* myDownBtn;