| 1 |
#ifndef CONFIGDIALOG_IMPL_H |
| 2 |
#define CONFIGDIALOG_IMPL_H |
| 3 |
|
| 4 |
#include "configdialog.h" |
| 5 |
#include "avm_locker.h" |
| 6 |
|
| 7 |
class QListBoxItem; |
| 8 |
class PlayerControl; |
| 9 |
class QListBoxItem; |
| 10 |
|
| 11 |
class ConfigDialog_impl : public ConfigDialog |
| 12 |
{ |
| 13 |
Q_OBJECT; |
| 14 |
|
| 15 |
public: |
| 16 |
ConfigDialog_impl(PlayerControl*); |
| 17 |
public slots: |
| 18 |
virtual void accept(); |
| 19 |
virtual void reject(); |
| 20 |
virtual void apply(); |
| 21 |
|
| 22 |
void onAsyncValChanged(int); |
| 23 |
void onSubAsyncValChanged(int); |
| 24 |
void onAudioResamplingToggled(); |
| 25 |
void onNoDefaultTheme(); |
| 26 |
void onAudioStreamChanged(int); |
| 27 |
void onBGColor(); |
| 28 |
void onFGColor(); |
| 29 |
void onFont(); |
| 30 |
void onFontChanged(); |
| 31 |
void onProxyToggled(); |
| 32 |
void onSelectionChanged(QListBoxItem*); |
| 33 |
void onListPressed(QListBoxItem*); |
| 34 |
void onListClicked(QListBoxItem*); |
| 35 |
void onMouseButtonPressed(int, QListBoxItem*, const QPoint&); |
| 36 |
private: |
| 37 |
|
| 38 |
PlayerControl* m_pControl; |
| 39 |
QFont m_defFont; |
| 40 |
|
| 41 |
QListBoxItem* itemLast; |
| 42 |
avm::PthreadMutex m_Mutex; |
| 43 |
|
| 44 |
|
| 45 |
int m_iAsyncOriginal; |
| 46 |
int m_iSubAsyncOriginal; |
| 47 |
int m_iAudioStreamOriginal; |
| 48 |
|
| 49 |
bool m_bFontChanged; |
| 50 |
bool m_bAudioChanged; |
| 51 |
bool m_bVideoChanged; |
| 52 |
}; |
| 53 |
|
| 54 |
#endif |