blob: 36f6a75a9c15c426ee6901b615695b349aed5c7a (
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
|
#ifndef MISCUI_H
#define MISCUI_H
#include <tqcombobox.h>
#include <tqcheckbox.h>
//-----------------------------------------------------------------------------
class MeetingCheckBox : public TQWidget
{
TQ_OBJECT
public:
enum Type { Ready, NotReady, Excluded };
MeetingCheckBox(Type, bool owner, bool server, TQWidget *parent);
void setType(Type);
Type type() const;
signals:
void changed(int);
private slots:
void changedSlot();
private:
TQCheckBox *_ready, *_excluded;
};
//-----------------------------------------------------------------------------
class PlayerComboBox : public TQComboBox
{
TQ_OBJECT
public:
enum Type { Human = 0, AI, None };
PlayerComboBox(Type, bool canBeNone, bool acceptAI, TQWidget *parent);
Type type() const { return (Type)currentItem(); }
signals:
void changed(int);
};
#endif // MISCUI_H
|