00001 /*############################################################################### 00002 ## ETiles project 00003 ## 00004 ## Copyright (C) 2010 Carlos Villegas Núñez carlos.villegasnunez@alum.uca.es 00005 ## 00006 ## This program is free software; you can redistribute it and/or modify 00007 ## it under the terms of the GNU General Public License as published by 00008 ## the Free Software Foundation; either version 3 of the License, or 00009 ## (at your option) any later version. 00010 ## 00011 ## This program is distributed in the hope that it will be useful, 00012 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 ## GNU General Public License for more details. 00015 ## 00016 ## You should have received a copy of the GNU General Public License 00017 ## along with this program; if not, write to the Free Software 00018 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 ###############################################################################*/ 00020 00021 #ifndef PROPMAPA_H 00022 #define PROPMAPA_H 00023 00024 #include <QDialog> 00025 #include <QColorDialog> 00026 #include <QPalette> 00027 00028 #include "ventanaprincipal.h" 00029 00030 namespace Ui { 00031 class propmapa; 00032 } 00033 00034 class propmapa : public QDialog { 00035 Q_OBJECT 00036 public: 00043 propmapa(QWidget *parent = 0, QColor crejilla=0, QColor cmapa=0, QColor csel=0); 00045 ~propmapa(); 00046 00047 protected: 00051 void changeEvent(QEvent *e); 00052 00053 private: 00054 Ui::propmapa *ui; 00055 QColorDialog diar,diaf,dias; 00056 QColor cr,cf,cs; 00057 00058 private slots: 00060 void on_buttonBox_rejected(); 00062 void on_buttonBox_accepted(); 00064 void on_elegirf_clicked(); 00066 void on_elegirs_clicked(); 00068 void on_elegirr_clicked(); 00069 }; 00070 00071 #endif // PROPMAPA_H