Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef LINEDIALOG_H
00030 #define LINEDIALOG_H
00031
00032 #include <qdialog.h>
00033
00034 class QCheckBox;
00035 class QComboBox;
00036 class QPushButton;
00037 class QTabWidget;
00038 class QWidget;
00039 class QSpinBox;
00040 class DoubleSpinBox;
00041 class ColorButton;
00042 class ArrowMarker;
00043 class DoubleSpinBox;
00044 class PenStyleBox;
00045
00047 class LineDialog : public QDialog
00048 {
00049 Q_OBJECT
00050
00051 public:
00052 LineDialog(ArrowMarker *line, QWidget* parent = 0, Qt::WFlags fl = 0);
00053
00054 enum Unit{ScaleCoordinates, Pixels};
00055
00056 void initGeometryTab();
00057 void enableHeadTab();
00058 void setCoordinates(int unit);
00059
00060 public slots:
00061 void enableButtonDefault(QWidget *w);
00062 void setDefaultValues();
00063 void displayCoordinates(int unit);
00064 void accept();
00065 void apply();
00066
00067 private:
00068 ArrowMarker *lm;
00069
00070 ColorButton* colorBox;
00071 PenStyleBox* styleBox;
00072 DoubleSpinBox* widthBox;
00073 QComboBox* unitBox;
00074 QPushButton* btnOk;
00075 QPushButton* btnApply;
00076 QPushButton* buttonDefault;
00077 QCheckBox* endBox;
00078 QCheckBox* startBox, *filledBox;
00079 QTabWidget* tw;
00080 QWidget *options, *geometry, *head;
00081 DoubleSpinBox *xStartBox, *yStartBox, *xEndBox, *yEndBox;
00082 QSpinBox *xStartPixelBox, *yStartPixelBox, *xEndPixelBox, *yEndPixelBox;
00083 QSpinBox *boxHeadAngle, *boxHeadLength;
00084 QComboBox* attachToBox;
00085 };
00086
00087 #endif // LINEDIALOG_H