Qmmp
|
00001 /*************************************************************************** 00002 * Copyright (C) 2007-2012 by Ilya Kotov * 00003 * forkotov02@hotmail.ru * 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 2 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, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00019 ***************************************************************************/ 00020 #ifndef CONFIGDIALOG_H 00021 #define CONFIGDIALOG_H 00022 00023 #include <QDialog> 00024 #include <QIcon> 00025 #include <QStyledItemDelegate> 00026 #include <QApplication> 00027 #include <QMouseEvent> 00028 00029 00030 namespace Ui { 00031 class ConfigDialog; 00032 } 00033 00034 class QListWidgetItem; 00035 class QTreeWidgetItem; 00036 00040 class ConfigDialog : public QDialog 00041 { 00042 Q_OBJECT 00043 public: 00048 ConfigDialog(QWidget *parent = 0); 00052 virtual ~ConfigDialog(); 00059 void addPage(const QString &name, QWidget *widget, const QIcon &icon = QIcon()); 00060 00061 private slots: 00062 void on_contentsWidget_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous); 00063 void on_preferencesButton_clicked(); 00064 void on_informationButton_clicked(); 00065 void addTitleString(QAction *); 00066 void saveSettings(); 00067 void on_treeWidget_itemChanged (QTreeWidgetItem *item, int column); 00068 void on_treeWidget_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *); 00069 00070 private: 00071 void readSettings(); 00072 void findSkins(const QString &path); 00073 void loadPluginsInfo(); 00074 void createMenus(); 00075 void loadLanguages(); 00076 int m_insert_row; 00077 Ui::ConfigDialog *m_ui; 00078 00079 }; 00080 00081 #endif