summaryrefslogtreecommitdiff
path: root/libopie2/opieui/okeyconfigwidget_p.h
blob: e7eaba607144a7168cf2c33d1c05d9d4ca46add7 (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
/*
 * Only Internal implemented in the same .cpp file anyway
 */
#include <opie2/olistview.h>


namespace Opie {
namespace Ui {
namespace Private {
    static QString keyToString( const OKeyPair& );
    static void fixupKeys( int&, int&, QKeyEvent* );
    class OKeyListViewItem : public Opie::Ui::OListViewItem {
    public:
        OKeyListViewItem( const OKeyConfigItem& item, OKeyConfigManager*, Opie::Ui::OListViewItem* parent);
        ~OKeyListViewItem();

        void setDefault();

        OKeyConfigItem& item();
        OKeyConfigItem origItem()const;
        void setItem( const OKeyConfigItem& item );
        void updateText();

        OKeyConfigManager *manager();
    private:
        OKeyConfigItem m_item;
        OKeyConfigItem m_origItem;
        OKeyConfigManager* m_manager;

    };
}
}
}