#include "HYDROGUI_Operation.h"
#include <HYDROData_Profile.h>
-
+#include <vector>
+#include <QMap>
+#include <NCollection_DataMap.hxx>
+class QColor;
class HYDROGUI_CurveCreatorProfile;
+class CurveCreator_Displayer;
class HYDROGUI_ProfileOp : public HYDROGUI_Operation
{
QStringList& theBrowseObjectsEntries );
private:
- void displayPreview();
+ void displayPreviews(const QMap<HYDROGUI_CurveCreatorProfile*, QColor>& CurveToColor,
+ int firstIndProf, int lastIndProf,
+ bool createNewDisplayer, bool SwitchToFirstProf);
+
void erasePreview();
+
+protected slots:
+ virtual void onAddProfiles();
+
+ virtual void onRemoveProfile(int index);
+
private:
- bool myIsEdit;
- Handle(HYDROData_Profile) myEditedObject;
- HYDROGUI_CurveCreatorProfile* myProfile;
+ bool myIsEdit;
+ //bool mySingleProfileMode;
+ HYDROData_SequenceOfObjects myEditedObjects;
+ std::vector<HYDROGUI_CurveCreatorProfile*> myProfiles;
+ CurveCreator_Displayer* myDisplayer;
+ NCollection_DataMap<HYDROGUI_CurveCreatorProfile*, Handle(HYDROData_Profile)> myCurveToProfile;
+
};
#endif