QtiPlot 0.9.8.2
|
00001 /*************************************************************************** 00002 File : ColorMapDialog.h 00003 Project : QtiPlot 00004 -------------------------------------------------------------------- 00005 Copyright : (C) 2007 by Ion Vasilief 00006 Email (use @ for *) : ion_vasilief*yahoo.fr 00007 Description : A QwtLinearColorMap Editor Dialog 00008 ***************************************************************************/ 00009 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 * This program is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU General Public License * 00023 * along with this program; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 00025 * Boston, MA 02110-1301 USA * 00026 * * 00027 ***************************************************************************/ 00028 #ifndef COLORMAPDIALOG_H 00029 #define COLORMAPDIALOG_H 00030 00031 #include <QDialog> 00032 00033 class QPushButton; 00034 class ColorMapEditor; 00035 class Matrix; 00036 00037 class ColorMapDialog: public QDialog 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 ColorMapDialog(QWidget* parent=0, Qt::WFlags fl = 0); 00043 void setMatrix(Matrix *m); 00044 00045 protected slots: 00046 void apply(); 00047 00048 private: 00049 QPushButton *applyBtn, *closeBtn; 00050 ColorMapEditor *editor; 00051 Matrix *d_matrix; 00052 }; 00053 00054 #endif