CurvesDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : CurvesDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief, Tilman Hoener zu Siederdissen
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr, thzs*gmx.net
00007     Description          : Add/remove curves 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 CURVESDIALOG_H
00030 #define CURVESDIALOG_H
00031 
00032 #include <QDialog>
00033 
00034 class QComboBox;
00035 class QListWidget;
00036 class QPushButton;
00037 class QCheckBox;
00038 class Graph;
00039 
00041 class CurvesDialog : public QDialog
00042 {
00043     Q_OBJECT
00044 
00045 public:
00046     CurvesDialog( QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WFlags fl = 0 );
00047 
00048     void setGraph(Graph *graph);
00049 
00050 private slots:
00051     void addCurves();
00052     void removeCurves();
00053     int curveStyle();
00054     void showCurveRangeDialog();
00055     void showPlotAssociations();
00056     void showFunctionDialog();
00057     void showCurveBtn(int);
00058     void enableAddBtn();
00059     void enableRemoveBtn();
00060     void showCurveRange(bool);
00061     void updateCurveRange();
00062 
00063 private:
00064     void init();
00065     bool addCurve(const QString& name);
00066     QSize sizeHint() const;
00067     void contextMenuEvent(QContextMenuEvent *);
00068 
00069     int defaultCurveLineWidth, defaultSymbolSize;
00070     Graph *d_graph;
00071 
00072     QPushButton* btnAdd;
00073     QPushButton* btnRemove;
00074     QPushButton* btnOK;
00075     QPushButton* btnCancel;
00076     QPushButton* btnAssociations;
00077     QPushButton* btnEditFunction;
00078     QPushButton* btnRange;
00079     QListWidget* available;
00080     QListWidget* contents;
00081     QComboBox* boxStyle;
00082     QComboBox* boxMatrixStyle;
00083     QCheckBox* boxShowRange;
00084 };
00085 
00086 #endif // CurvesDialog_H

Generated on Mon Oct 15 06:11:41 2007 for QtiPlot by  doxygen 1.5.3