summaryrefslogtreecommitdiffstats
path: root/kmix/dialogselectmaster.h
blob: ea26798a3200a93ab9b01f7276a1f74b2a12b9a6 (plain)
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
#ifndef DIALOGSELECTMASTER_H
#define DIALOGSELECTMASTER_H

class TQButtonGroup;
#include <tqradiobutton.h>
class TQScrollView;
#include <tqstringlist.h>
class TQVBox;
class TQVBoxLayout;

class KComboBox;
#include <kdialogbase.h>

class Mixer;

class DialogSelectMaster : public KDialogBase
{
    Q_OBJECT
  
 public:
    DialogSelectMaster(Mixer *mixer);
    ~DialogSelectMaster();
    void show(Mixer *curr_mixer);

 signals:
    void newMasterSelected(bool defaultMaster, int soundcard_id, const TQString &channel_id);

 public slots:
    void apply();

 private:
    void createWidgets(Mixer*);
    void createPage(Mixer*);
    TQVBoxLayout* _layout;
    KComboBox* m_cMixer;
    TQScrollView* m_scrollableChannelSelector;
    TQVBox *m_vboxChannels, *m_vboxForScrollView;
    TQButtonGroup *m_buttonGroupForScrollView;
    TQRadioButton *m_defaultMaster, *m_userMaster;
    TQStringList m_mixerPKs;

 private slots:
   void masterSelectionChanged(int _unused);
   void createPageByID(int mixerId);
};

#endif