Qmmp
Loading...
Searching...
No Matches
configdialog.h
1/***************************************************************************
2 * Copyright (C) 2007-2022 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 <QApplication>
26#include <QMouseEvent>
27#include "qmmpui_export.h"
28
29
30namespace Ui {
31 class ConfigDialog;
32}
33
34class QListWidgetItem;
35class QTreeWidgetItem;
36
40class QMMPUI_EXPORT ConfigDialog : public QDialog
41{
42 Q_OBJECT
43public:
48 ConfigDialog(QWidget *parent = nullptr);
52 virtual ~ConfigDialog();
59 void addPage(const QString &name, QWidget *widget, const QIcon &icon = QIcon());
60
61private 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 void on_cueFontButton_clicked();
70
71
72private:
73 void readSettings();
74 void findSkins(const QString &path);
75 void loadPluginsInfo();
76 void createMenus();
77 void loadLanguages();
78 int m_insert_row = 0;
79 Ui::ConfigDialog *m_ui;
80 QAction *m_preferencesAction;
81 QAction *m_informationAction;
82
83};
84
85#endif
Configuration dialog class.
Definition configdialog.h:41
ConfigDialog(QWidget *parent=nullptr)
virtual ~ConfigDialog()
void addPage(const QString &name, QWidget *widget, const QIcon &icon=QIcon())