LineDialog.h
Go to the documentation of this file.
/***************************************************************************
File : LineDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Line options dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef LINEDIALOG_H
#define LINEDIALOG_H
#include <qdialog.h>
class QCheckBox;
class QComboBox;
class QPushButton;
class QTabWidget;
class QWidget;
class QSpinBox;
class DoubleSpinBox;
class ColorButton;
class ArrowMarker;
class DoubleSpinBox;
class PenStyleBox;
class LineDialog : public QDialog
{
Q_OBJECT
public:
LineDialog(ArrowMarker *line, QWidget* parent = 0, Qt::WFlags fl = 0);
enum Unit{ScaleCoordinates, Pixels};
void initGeometryTab();
void enableHeadTab();
void setCoordinates(int unit);
public slots:
void enableButtonDefault(QWidget *w);
void setDefaultValues();
void displayCoordinates(int unit);
void accept();
void apply();
private:
ArrowMarker *lm;
ColorButton* colorBox;
PenStyleBox* styleBox;
DoubleSpinBox* widthBox;
QComboBox* unitBox;
QPushButton* btnOk;
QPushButton* btnApply;
QPushButton* buttonDefault;
QCheckBox* endBox;
QCheckBox* startBox, *filledBox;
QTabWidget* tw;
QWidget *options, *geometry, *head;
DoubleSpinBox *xStartBox, *yStartBox, *xEndBox, *yEndBox;
QSpinBox *xStartPixelBox, *yStartPixelBox, *xEndPixelBox, *yEndPixelBox;
QSpinBox *boxHeadAngle, *boxHeadLength;
QComboBox* attachToBox;
};
#endif // LINEDIALOG_H
LineDialog::head
QWidget * head
Definition: LineDialog.h:80
LineDialog
Line options dialog.
Definition: LineDialog.h:47
LineDialog::boxHeadAngle
QSpinBox * boxHeadAngle
Definition: LineDialog.h:83
LineDialog::colorBox
ColorButton * colorBox
Definition: LineDialog.h:70
LineDialog::yStartPixelBox
QSpinBox * yStartPixelBox
Definition: LineDialog.h:82
LineDialog::setDefaultValues
void setDefaultValues()
Definition: LineDialog.cpp:352
LineDialog::unitBox
QComboBox * unitBox
Definition: LineDialog.h:73
LineDialog::attachToBox
QComboBox * attachToBox
Definition: LineDialog.h:84
LineDialog::filledBox
QCheckBox * filledBox
Definition: LineDialog.h:78
LineDialog::initGeometryTab
void initGeometryTab()
Definition: LineDialog.cpp:168
ColorButton
A customized QtColorPicker used for color selection.
Definition: ColorButton.h:39
LineDialog::xStartPixelBox
QSpinBox * xStartPixelBox
Definition: LineDialog.h:82
ArrowMarker
Draws lines and arrows on a QwtPlot.
Definition: ArrowMarker.h:43
LineDialog::Pixels
Definition: LineDialog.h:54
LineDialog::yEndBox
DoubleSpinBox * yEndBox
Definition: LineDialog.h:81
LineDialog::widthBox
DoubleSpinBox * widthBox
Definition: LineDialog.h:72
LineDialog::LineDialog
LineDialog(ArrowMarker *line, QWidget *parent=0, Qt::WFlags fl=0)
Definition: LineDialog.cpp:50
LineDialog::xEndPixelBox
QSpinBox * xEndPixelBox
Definition: LineDialog.h:82
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
LineDialog::tw
QTabWidget * tw
Definition: LineDialog.h:79
LineDialog::buttonDefault
QPushButton * buttonDefault
Definition: LineDialog.h:76
LineDialog::apply
void apply()
Definition: LineDialog.cpp:309
LineDialog::endBox
QCheckBox * endBox
Definition: LineDialog.h:77
LineDialog::xEndBox
DoubleSpinBox * xEndBox
Definition: LineDialog.h:81
LineDialog::styleBox
PenStyleBox * styleBox
Definition: LineDialog.h:71
LineDialog::Unit
Unit
Definition: LineDialog.h:54
LineDialog::geometry
QWidget * geometry
Definition: LineDialog.h:80
LineDialog::lm
ArrowMarker * lm
Definition: LineDialog.h:68
LineDialog::btnApply
QPushButton * btnApply
Definition: LineDialog.h:75
LineDialog::accept
void accept()
Definition: LineDialog.cpp:338
LineDialog::yEndPixelBox
QSpinBox * yEndPixelBox
Definition: LineDialog.h:82
LineDialog::displayCoordinates
void displayCoordinates(int unit)
Definition: LineDialog.cpp:258
LineDialog::enableButtonDefault
void enableButtonDefault(QWidget *w)
Definition: LineDialog.cpp:362
LineDialog::options
QWidget * options
Definition: LineDialog.h:80
LineDialog::startBox
QCheckBox * startBox
Definition: LineDialog.h:78
LineDialog::btnOk
QPushButton * btnOk
Definition: LineDialog.h:74
LineDialog::setCoordinates
void setCoordinates(int unit)
Definition: LineDialog.cpp:298
LineDialog::ScaleCoordinates
Definition: LineDialog.h:54
LineDialog::enableHeadTab
void enableHeadTab()
Definition: LineDialog.cpp:344
PenStyleBox
A modified QComboBox allowing to choose a Qt::PenStyle.
Definition: PenStyleBox.h:38
LineDialog::xStartBox
DoubleSpinBox * xStartBox
Definition: LineDialog.h:81
LineDialog::yStartBox
DoubleSpinBox * yStartBox
Definition: LineDialog.h:81
LineDialog::boxHeadLength
QSpinBox * boxHeadLength
Definition: LineDialog.h:83