diff options
Diffstat (limited to 'src/ui/preferencesdlg.h')
| -rw-r--r-- | src/ui/preferencesdlg.h | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/src/ui/preferencesdlg.h b/src/ui/preferencesdlg.h index 09d740f..93ac377 100644 --- a/src/ui/preferencesdlg.h +++ b/src/ui/preferencesdlg.h @@ -1,17 +1,30 @@ #pragma once #include <kdialogbase.h> +#include <tqvaluelist.h> +#include <tqstring.h> class TQCheckBox; class TQComboBox; +class TQLabel; class TQSpinBox; +class TQWidgetStack; + +#ifdef WITH_ALSA +class AlsaModel; +#endif class PreferencesDlg : public KDialogBase { TQ_OBJECT public: - PreferencesDlg( TQWidget *parent = 0 ); + explicit PreferencesDlg( TQWidget *parent = 0 ); + +#ifdef WITH_ALSA + PreferencesDlg( AlsaModel *model, TQWidget *parent = 0 ); +#endif + void load(); signals: @@ -23,22 +36,42 @@ protected slots: private slots: void onPopupModeChanged( int idx ); + void onBackendComboChanged( int idx ); + void onNoTabsToggled( bool checked ); private: + void buildGeneralPage(); + void buildBackendPage(); void save(); - TQCheckBox *m_dockInTray; - TQComboBox *m_popupMode; + // General — shared + TQComboBox *m_backend; + TQCheckBox *m_dockInTray; + TQComboBox *m_popupMode; + TQSpinBox *m_scrollStep; + TQCheckBox *m_confirmQuit; + TQCheckBox *m_middleClickMute; + TQCheckBox *m_startOnLogin; + + // Backend settings stack + TQWidgetStack *m_backendStack; + + // Pulse widgets — always built, may be on the inactive stack page TQCheckBox *m_popupShowOutput; TQCheckBox *m_popupShowMic; TQCheckBox *m_popupShowApps; TQCheckBox *m_showRecTray; - TQCheckBox *m_confirmQuit; - TQSpinBox *m_scrollStep; - TQCheckBox *m_noTabs; + TQLabel *m_showTabsLabel; TQCheckBox *m_showOutput; TQCheckBox *m_showInput; TQCheckBox *m_showPlayback; TQCheckBox *m_showRecording; + +#ifdef WITH_ALSA + AlsaModel *m_alsaModel; + TQComboBox *m_trayDevice; + TQValueList<int> m_trayCardIndices; + TQValueList<TQString> m_trayDeviceNames; +#endif }; |
