QtiPlot  0.9.8.2
ColorMapDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : ColorMapDialog.h
3  Project : QtiPlot
4 --------------------------------------------------------------------
5  Copyright : (C) 2007 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : A QwtLinearColorMap Editor Dialog
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  * This program is distributed in the hope that it will be useful, *
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
20  * GNU General Public License for more details. *
21  * *
22  * You should have received a copy of the GNU General Public License *
23  * along with this program; if not, write to the Free Software *
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
25  * Boston, MA 02110-1301 USA *
26  * *
27  ***************************************************************************/
28 #ifndef COLORMAPDIALOG_H
29 #define COLORMAPDIALOG_H
30 
31 #include <QDialog>
32 
33 class QPushButton;
34 class ColorMapEditor;
35 class Matrix;
36 
37 class ColorMapDialog: public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42  ColorMapDialog(QWidget* parent=0, Qt::WFlags fl = 0);
43  void setMatrix(Matrix *m);
44 
45 protected slots:
46  void apply();
47 
48 private:
49  QPushButton *applyBtn, *closeBtn;
52 };
53 
54 #endif