LineDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : LineDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr
00007     Description          : Line options dialog
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *  This program is free software; you can redistribute it and/or modify   *
00014  *  it under the terms of the GNU General Public License as published by   *
00015  *  the Free Software Foundation; either version 2 of the License, or      *
00016  *  (at your option) any later version.                                    *
00017  *                                                                         *
00018  *  This program is distributed in the hope that it will be useful,        *
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00021  *  GNU General Public License for more details.                           *
00022  *                                                                         *
00023  *   You should have received a copy of the GNU General Public License     *
00024  *   along with this program; if not, write to the Free Software           *
00025  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00026  *   Boston, MA  02110-1301  USA                                           *
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 
00046 class LineDialog : public QDialog
00047 {
00048     Q_OBJECT
00049 
00050 public:
00051     LineDialog(ArrowMarker *line, QWidget* parent = 0, Qt::WFlags fl = 0);
00052 
00053     enum Unit{ScaleCoordinates, Pixels};
00054 
00055     void initGeometryTab();
00056     void enableHeadTab();
00057     void setCoordinates(int unit);
00058 
00059 public slots:
00060     void enableButtonDefault(QWidget *w);
00061     void setDefaultValues();
00062     void displayCoordinates(int unit);
00063     void setLineStyle(Qt::PenStyle style);
00064     void accept();
00065     void apply();
00066 
00067 private:
00068     ArrowMarker *lm;
00069 
00070     ColorButton* colorBox;
00071     QComboBox* 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 };
00085 
00086 #endif // LINEDIALOG_H

Generated on Sun Jun 15 21:32:17 2008 for QtiPlot by  doxygen 1.5.6