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, 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     void showCurrentFolder(bool);
00063 
00064 private:
00065     void closeEvent(QCloseEvent*);
00066 
00067     void init();
00068     bool addCurve(const QString& name);
00069     QSize sizeHint() const;
00070     void contextMenuEvent(QContextMenuEvent *);
00071 
00072     int defaultCurveLineWidth, defaultSymbolSize;
00073     Graph *d_graph;
00074 
00075     QPushButton* btnAdd;
00076     QPushButton* btnRemove;
00077     QPushButton* btnOK;
00078     QPushButton* btnCancel;
00079     QPushButton* btnAssociations;
00080     QPushButton* btnEditFunction;
00081     QPushButton* btnRange;
00082     QListWidget* available;
00083     QListWidget* contents;
00084     QComboBox* boxStyle;
00085     QComboBox* boxMatrixStyle;
00086     QCheckBox* boxShowRange;
00087     QCheckBox* boxShowCurrentFolder;
00088 };
00089 
00090 #endif // CurvesDialog_H

Generated on Thu Feb 7 13:59:26 2008 for QtiPlot by  doxygen 1.5.4