blob: 7c5f5b0ddbcd556e242c53c14d100b04fc918bfa (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#ifndef _KACTIONSHORTCUTLIST_H
#define _KACTIONSHORTCUTLIST_H
#include <kshortcutlist.h>
#include <kaction.h>
//---------------------------------------------------------------------
// class KActionShortcutList
//---------------------------------------------------------------------
class KAccelShortcutListPrivate;
class TDEUI_EXPORT KActionShortcutList : public KShortcutList
{
public:
KActionShortcutList( KActionCollection* );
virtual ~KActionShortcutList();
virtual uint count() const;
virtual TQString name( uint index ) const;
virtual TQString label( uint index ) const;
virtual TQString whatsThis( uint index ) const;
virtual const KShortcut& shortcut( uint index ) const;
virtual const KShortcut& shortcutDefault( uint index ) const;
virtual bool isConfigurable( uint index ) const;
virtual bool setShortcut( uint index, const KShortcut& shortcut );
virtual const TDEInstance* instance() const;
virtual TQVariant getOther( Other, uint index ) const;
virtual bool setOther( Other, uint index, TQVariant );
virtual bool save() const;
const KAction *action( uint ) const;
protected:
KActionCollection& m_actions;
protected:
virtual void virtual_hook( int id, void* data );
private:
KAccelShortcutListPrivate* d;
};
//---------------------------------------------------------------------
// class KActionPtrShortcutList
//---------------------------------------------------------------------
class KAccelShortcutListPrivate;
class TDEUI_EXPORT KActionPtrShortcutList : public KShortcutList
{
public:
KActionPtrShortcutList( KActionPtrList& );
virtual ~KActionPtrShortcutList();
virtual uint count() const;
virtual TQString name( uint index ) const;
virtual TQString label( uint index ) const;
virtual TQString whatsThis( uint index ) const;
virtual const KShortcut& shortcut( uint index ) const;
virtual const KShortcut& shortcutDefault( uint index ) const;
virtual bool isConfigurable( uint index ) const;
virtual bool setShortcut( uint index, const KShortcut& shortcut);
virtual TQVariant getOther( Other, uint index ) const;
virtual bool setOther( Other, uint index, TQVariant );
virtual bool save() const;
protected:
KActionPtrList& m_actions;
protected:
virtual void virtual_hook( int id, void* data );
private:
KAccelShortcutListPrivate* d;
};
#endif // !_KACTIONSHORTCUTLIST_H
|