Last change
on this file since 2d78e03 was 49da01a, checked in by dportnoy <dmp1488@…>, 11 years ago |
Add status messages for login and registration and remove the Message class (MessageProcessor includes all that functionality now)
|
-
Property mode
set to
100644
|
File size:
573 bytes
|
Line | |
---|
1 | #ifndef _RADIOBUTTONLIST_H
|
---|
2 | #define _RADIOBUTTONLIST_H
|
---|
3 |
|
---|
4 | #include "GuiComponent.h"
|
---|
5 |
|
---|
6 | #include <string>
|
---|
7 | #include <vector>
|
---|
8 |
|
---|
9 | using namespace std;
|
---|
10 |
|
---|
11 | class RadioButtonList :
|
---|
12 | public GuiComponent
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | string strLabel;
|
---|
16 | vector<string> vctRadioButtons;
|
---|
17 | int selectedButton;
|
---|
18 |
|
---|
19 | public:
|
---|
20 | RadioButtonList(int x, int y, string strLabel, ALLEGRO_FONT *font);
|
---|
21 | ~RadioButtonList(void);
|
---|
22 |
|
---|
23 | void draw(ALLEGRO_DISPLAY *display);
|
---|
24 | bool handleEvent(ALLEGRO_EVENT& e);
|
---|
25 |
|
---|
26 | void addRadioButton(string s);
|
---|
27 | int getSelectedButton();
|
---|
28 | void setSelectedButton(int b);
|
---|
29 | };
|
---|
30 |
|
---|
31 | #endif
|
---|
32 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.