blob: 554afd322b09f2f843d59d3e783d3868a7ba071f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#ifndef QMPSETTINGSWINDOW_H
#define QMPSETTINGSWINDOW_H
#include <map>
#include <QDialog>
#include <QCloseEvent>
#include <QSettings>
#include <QListWidget>
#include <QComboBox>
#include <QFormLayout>
#include "qmpplugin.hpp"
namespace Ui {
class qmpSettingsWindow;
}
class qmpSettingsWindow:public QDialog
{
Q_OBJECT
public:
explicit qmpSettingsWindow(QWidget *parent=0);
~qmpSettingsWindow();
void closeEvent(QCloseEvent *event);
void settingsInit();
QListWidget* getSFWidget();
void updatePluginList(qmpPluginManager *pmgr);
int getOptionInt(std::string key);
signals:
void dialogClosing();
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void on_cbBufSize_currentTextChanged(const QString &s);
void on_cbBufCnt_currentTextChanged(const QString &s);
void on_pbAdd_clicked();
void on_pbRemove_clicked();
void on_pbUp_clicked();
void on_pbDown_clicked();
void on_cbAutoBS_stateChanged();
private:
Ui::qmpSettingsWindow *ui;
void settingsUpdate();
std::map<std::string,QWidget*> customOptWidgets;
std::map<std::string,QFormLayout*> customOptPages;
static QSettings *settings;
static QComboBox* outwidget;
public:
static QSettings* getSettingsIntf(){return settings;}
static QComboBox* getDefaultOutWidget();
};
#endif // QMPSETTINGSWINDOW_H
|