QSapecNG
 All Classes Functions Enumerations Properties
configdialog.h
00001 /*
00002     QSapecNG - Qt based SapecNG GUI front-end
00003     Copyright (C) 2009, Michele Caini
00004 
00005     This program is free software: you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation, either version 3 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 #ifndef CONFIGDIALOG_H
00021 #define CONFIGDIALOG_H
00022 
00023 
00024 #include <QtGui/QDialog>
00025 
00026 #include "gui/configdialog/configpage.h"
00027 
00028 
00029 class QListWidget;
00030 class QListWidgetItem;
00031 class QStackedWidget;
00032 
00033 
00034 namespace qsapecng
00035 {
00036 
00037 
00038 class ConfigDialog: public QDialog
00039 {
00040 
00041   Q_OBJECT
00042 
00043 public:
00044   ConfigDialog(QWidget* parent = 0);
00045 
00046 public slots:
00047   void changePage(QListWidgetItem* current, QListWidgetItem* previous);
00048 
00049 private slots:
00050   void apply();
00051   void checkPage();
00052   void checkBeforeClose();
00053 
00054 private:
00055   void createIcons();
00056   void createPages();
00057 
00058   QListWidget* contents_;
00059   QStackedWidget* pages_;
00060 
00061   ConfigPage* generalPage_;
00062   ConfigPage* fontPage_;
00063 
00064 };
00065 
00066 
00067 }
00068 
00069 
00070 #endif // CONFIGDIALOG_H
 All Classes Functions Enumerations Properties