Ticket #197: btnlisttest.h

File btnlisttest.h, 610 bytes (added by mfgalizi@…, 19 years ago)

Screen to show lists.

Line 
1#ifndef BTNLISTTEST_H
2#define BTNLISTTEST_H
3
4#include <qobject.h>
5
6#include "mythscreentype.h"
7
8class MythListButton;
9
10class TestWindow : public MythScreenType
11{
12
13 public:
14
15    static const int pad = 60;
16    static const int listHeight = 200;
17
18    TestWindow(MythScreenStack *parent);
19    virtual ~TestWindow(void);
20    virtual bool keyPressEvent(QKeyEvent *e);
21
22 protected:
23
24    void setupHList(void);
25    void setupVList(void);
26    void toggleActive(void);
27
28 private:
29
30    int listWidth;
31    MythListButton *vbuttons;
32    MythListButton *hbuttons;
33    MythListButton *focused;
34};
35
36#endif /* BTNLISTTEST_H */