Qmmp
configdialog.h
1 /***************************************************************************
2  * Copyright (C) 2007-2018 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 #include "qmmpui_export.h"
29 
30 
31 namespace Ui {
32  class ConfigDialog;
33 }
34 
35 class QListWidgetItem;
36 class QTreeWidgetItem;
37 
41 class QMMPUI_EXPORT ConfigDialog : public QDialog
42 {
43  Q_OBJECT
44 public:
49  ConfigDialog(QWidget *parent = 0);
53  virtual ~ConfigDialog();
60  void addPage(const QString &name, QWidget *widget, const QIcon &icon = QIcon());
61 
62 private slots:
63  void on_contentsWidget_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous);
64  void on_preferencesButton_clicked();
65  void on_informationButton_clicked();
66  void addGroupString(const QString &str);
67  void saveSettings();
68  void on_treeWidget_itemChanged (QTreeWidgetItem *item, int column);
69  void on_treeWidget_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *);
70 
71 private:
72  void readSettings();
73  void findSkins(const QString &path);
74  void loadPluginsInfo();
75  void createMenus();
76  void loadLanguages();
77  int m_insert_row;
78  Ui::ConfigDialog *m_ui;
79  QAction *m_preferencesAction;
80  QAction *m_informationAction;
81 
82 };
83 
84 #endif
Definition: columneditor_p.h:26
Configuration dialog class.
Definition: configdialog.h:41