Use the canonical file name also for the "already open" check
[GPXSee.git] / src / GUI / marginswidget.h
blobfa54c31801e6cc29ffe2a04a6f1c255d83e101c8
1 #ifndef MARGINSWIDGET_H
2 #define MARGINSWIDGET_H
4 #include <QWidget>
5 #include <QMargins>
7 class QSpinBox;
8 class QDoubleSpinBox;
10 class MarginsWidget : public QWidget
12 Q_OBJECT
14 public:
15 MarginsWidget(QWidget *parent = 0);
17 QMargins value() const;
18 void setValue(const QMargins &value);
19 void setUnits(const QString &units);
21 private:
22 QSpinBox *_top;
23 QSpinBox *_bottom;
24 QSpinBox *_left;
25 QSpinBox *_right;
28 class MarginsFWidget : public QWidget
30 Q_OBJECT
32 public:
33 MarginsFWidget(QWidget *parent = 0);
35 QMarginsF value() const;
36 void setValue(const QMarginsF &value);
37 void setUnits(const QString &units);
38 void setSingleStep(qreal step);
40 private:
41 QDoubleSpinBox *_top;
42 QDoubleSpinBox *_bottom;
43 QDoubleSpinBox *_left;
44 QDoubleSpinBox *_right;
47 #endif // MARGINSWIDGET_H