summaryrefslogtreecommitdiff
path: root/libopie2/examples/opieui/okeyconfigwidget/testwidget.h
blob: b95c225ab70c24a8e3d1a055933455c92075011f (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
#ifndef TEST_WIDGET_H
#define TEST_WIDGET_H

#include <qmainwindow.h>

#include <opie2/olistview.h>

namespace Opie{
namespace Ui{
    class OTabWidget;
    class OKeyConfigManager;
    class OListView;
    class OKeyConfigItem;
}
namespace Core {
    class OConfig;
}
}
class QKeyEvent;


class TestMainWindow : public Opie::Ui::OListView {
    Q_OBJECT
public:

    TestMainWindow(QWidget* parent, const char*, WFlags fl );
    ~TestMainWindow();

    Opie::Ui::OKeyConfigManager *manager();
protected:
    void keyPressEvent( QKeyEvent* );
private slots:
    void slotDelete( QWidget*, QKeyEvent* );
    void slotAction( QWidget*, QKeyEvent*, const Opie::Ui::OKeyConfigItem& );
private:
    Opie::Core::OConfig *m_config;
    Opie::Ui::OKeyConfigManager *m_manager;
};

#endif