-// Copyright (C) 2013-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2024 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#define CURVECREATOR_NEWSECTION_H
#include "CurveCreator.hxx"
+#include "CurveCreator_ICurve.hxx"
#include <QDockWidget>
-class CurveCreator_Curve;
+//class CurveCreator_Curve;
class QLineEdit;
class QComboBox;
{
Q_OBJECT
public:
- explicit CurveCreator_NewSectionDlg(QWidget *parent = 0);
+ explicit CurveCreator_NewSectionDlg(QWidget *parent = 0, bool enableClosed = true );
QString getName() const;
bool isClosed() const;
- CurveCreator::Type getSectionType() const;
+ CurveCreator::SectionType getSectionType() const;
- void setSectionParameters( const QString& theName, bool isClosed, CurveCreator::Type theType );
+ void setSectionParameters( const QString& theName, bool isClosed, CurveCreator::SectionType theType );
void setSectionName(const QString& theName );
void clear();
void setEditMode( bool isEdit );
+ bool isEnableClosed() const { return myIsEnableClosed; }
signals:
void addSection();
QComboBox* myLineType;
QCheckBox* myIsClosed;
bool myIsEdit;
+ bool myIsEnableClosed;
QPushButton* myAddBtn;
QPushButton* myCancelBtn;
};