blob: b3689a489f78cfe326e83b179cffef14b21d887b (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/*
* sndctl - a plugin for the Video Disk Recorder
* file: menuitems.h
* description: header file for soundsetitem.c
*
* author: Thomas Hildebrandt <toxym@web.de>
*
* inspired by and reengineered from 'avolctl'
* thanks to Martin Prochnow <nordlichtl@martins-kabuff.de>
*/
#ifndef SNDCTL_MENUITEMS_H
#define SNDCTL_MENUITEMS_H
#include "mixer.h"
/*
* cursor position when editing a mixer control value
*/
enum CursorPos {op, val, limitL};
/*
* cSoundSetItem
* representation of an OSD menu entry for one sound set
*/
class cSoundSetItem:public cOsdItem {
private:
string id;
string soundCardId;
cSoundMan *soundman;
public:
cSoundSetItem( string, cSoundMan* );
string GetId( void );
};
/*
* cSoundSetChooserItem
* representation of a list of all soundsets
*/
class cSoundSetChooserItem:public cMenuEditItem {
private:
string *soundset;
cSoundMan *soundman;
protected:
virtual void Set( void );
public:
cSoundSetChooserItem( cSoundMan*, string*, char* );
virtual eOSState ProcessKey( eKeys );
};
/*
* cSoundSetControlItem
* representation of one mixer control value
*/
class cSoundSetControlItem:public cMenuEditStrItem {
private:
cControlId control;
bool isActive;
cSoundSet *soundset;
char *value;
public:
cSoundSetControlItem( cSoundSet*, cControlId Control, bool );
~cSoundSetControlItem();
virtual eOSState ProcessKey( eKeys );
};
#endif //SNDCTL_MENUITEMS_H
|