blob: 5ffdfbb4f6e381737907707e2efb7d545ef6161e (
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
|
#ifndef USERCONTROLLERMENU_H
#define USERCONTROLLERMENU_H
#include <tqstring.h>
#include <tqptrlist.h>
class UserControlMenu {
public:
/**
Basic constructor, everything defaults to a Seperator. All data
is public so there is no problems changing it in the future.
Data is copied internally and deleted when finished.
*/
UserControlMenu(const TQString& _title = 0,
const TQString& _action = 0,
int _accel = 0,
int _type = 0,
bool _op_only = FALSE);
~UserControlMenu();
static TQPtrList<UserControlMenu> UserMenu;
static TQPtrList<UserControlMenu> *parseTDEConfig();
static void writeTDEConfig();
/**
* title in the popup menu
*/
TQString title;
/**
* Action to preform, must be of the format "blah lbah %s blah"
* where %s will be expanded into the selected nick.
*/
TQString action;
/**
* Accelerator key, currently does nothing.
*/
int accel;
/**
* is this function only available to ops?
*/
bool op_only;
/**
* What type of menu item is this? a Seperator of Text?
*/
enum itype { Seperator, Text } type;
};
#endif
|