Qmmp
configdialog.h
1 /***************************************************************************
2  * Copyright (C) 2007-2017 by Ilya Kotov *
3  * forkotov02@ya.ru *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 #ifndef CONFIGDIALOG_H
21 #define CONFIGDIALOG_H
22 
23 #include <QDialog>
24 #include <QIcon>
25 #include <QStyledItemDelegate>
26 #include <QApplication>
27 #include <QMouseEvent>
28 
29 
30 namespace Ui {
31  class ConfigDialog;
32 }
33 
34 class QListWidgetItem;
35 class QTreeWidgetItem;
36 
40 class ConfigDialog : public QDialog
41 {
42  Q_OBJECT
43 public:
48  ConfigDialog(QWidget *parent = 0);
52  virtual ~ConfigDialog();
59  void addPage(const QString &name, QWidget *widget, const QIcon &icon = QIcon());
60 
61 private slots:
62  void on_contentsWidget_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous);
63  void on_preferencesButton_clicked();
64  void on_informationButton_clicked();
65  void addGroupString(const QString &str);
66  void saveSettings();
67  void on_treeWidget_itemChanged (QTreeWidgetItem *item, int column);
68  void on_treeWidget_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *);
69 
70 private:
71  void readSettings();
72  void findSkins(const QString &path);
73  void loadPluginsInfo();
74  void createMenus();
75  void loadLanguages();
76  int m_insert_row;
77  Ui::ConfigDialog *m_ui;
78  QAction *m_preferencesAction;
79  QAction *m_informationAction;
80 
81 };
82 
83 #endif
Definition: columneditor_p.h:26
Configuration dialog class.
Definition: configdialog.h:40