Ticket #197: btnlisttest.2.h

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

Updated for the subclassed version of the horizontal list.

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 */