1 |
// qsamplerOptionsForm.h |
// qsamplerOptionsForm.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2008, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2020, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
40 |
|
|
41 |
public: |
public: |
42 |
|
|
43 |
OptionsForm(QWidget *pParent = NULL); |
OptionsForm(QWidget *pParent = nullptr); |
44 |
~OptionsForm(); |
~OptionsForm(); |
45 |
|
|
46 |
void setup(Options* pOptions); |
void setup(Options* pOptions); |
49 |
|
|
50 |
void accept(); |
void accept(); |
51 |
void reject(); |
void reject(); |
52 |
|
|
53 |
void optionsChanged(); |
void optionsChanged(); |
54 |
void stabilizeForm(); |
|
55 |
void browseMessagesLogPath(); |
void browseMessagesLogPath(); |
56 |
void chooseDisplayFont(); |
void chooseDisplayFont(); |
57 |
void chooseMessagesFont(); |
void chooseMessagesFont(); |
58 |
void toggleDisplayEffect(bool bOn); |
void toggleDisplayEffect(bool bOn); |
59 |
|
|
60 |
|
void editCustomColorThemes(); |
61 |
|
|
62 |
|
void maxVoicesChanged(int iMaxVoices); |
63 |
|
void maxStreamsChanged(int iMaxStreams); |
64 |
|
|
65 |
|
protected: |
66 |
|
|
67 |
|
// Custom color/style themes settlers. |
68 |
|
void resetCustomColorThemes(const QString& sCustomColorTheme); |
69 |
|
void resetCustomStyleThemes(const QString& sCustomStyleTheme); |
70 |
|
|
71 |
|
void stabilizeForm(); |
72 |
|
|
73 |
private: |
private: |
74 |
|
|
75 |
Ui::qsamplerOptionsForm m_ui; |
Ui::qsamplerOptionsForm m_ui; |
76 |
|
|
77 |
Options* m_pOptions; |
Options* m_pOptions; |
78 |
|
|
79 |
int m_iDirtySetup; |
int m_iDirtySetup; |
80 |
int m_iDirtyCount; |
int m_iDirtyCount; |
81 |
|
|
82 |
|
bool bMaxVoicesModified; |
83 |
|
bool bMaxStreamsModified; |
84 |
}; |
}; |
85 |
|
|
86 |
} // namespace QSampler |
} // namespace QSampler |