--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/widgets/circularsectioneditor.h Thu Jun 21 18:46:03 2018 +0300 @@ -0,0 +1,26 @@ +#pragma once +#include <QWidget> +#include "../basics.h" + +class CircularSectionEditor : public QWidget +{ + Q_OBJECT + +public: + explicit CircularSectionEditor(QWidget *parent = 0); + ~CircularSectionEditor(); + + CircularSection section(); + void setSection(const CircularSection& newSection); + +signals: + void sectionChanged(CircularSection); + +private: + class Ui_CircularSectionEditor& ui; + int previousDivisions; + + Q_SLOT void updateFractionLabel(); + Q_SLOT void segmentsChanged(); + Q_SLOT void divisionsChanged(); +};