blob: 5595e76e2cd41618fbb948c1f71a15c474b3e8ca (
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
80
81
82
83
84
85
86
87
88
89
90
|
//
// KDE Shortcut config module
//
// Copyright (c) Mark Donohoe 1998
// Copyright (c) Matthias Ettrich 1998
// Converted to generic key configuration module, Duncan Haldane 1998.
#ifndef __KEYCONFIG_H__
#define __KEYCONFIG_H__
#include <tqpushbutton.h>
#include <tqlistbox.h>
#include <kaccel.h>
#include <kkeydialog.h>
//#include <kcmodule.h>
#include <tqdict.h>
class TQCheckBox;
class KeyChooserSpec;
class KKeyModule : public TQWidget
{
Q_OBJECT
public:
KAccelActions actions;
//KAccelActions dict;
KeyChooserSpec *kc;
KKeyModule( TQWidget *parent, bool isGlobal, bool bSeriesOnly, bool bSeriesNone, const char *name = 0 );
KKeyModule( TQWidget *parent, bool isGlobal, const char *name = 0 );
~KKeyModule ();
protected:
void init( bool isGlobal, bool bSeriesOnly, bool bSeriesNone );
public:
virtual void load();
//virtual void save();
virtual void defaults();
static void init();
bool writeSettings( const TQString& sGroup, TDEConfig* pConfig );
bool writeSettingsGlobal( const TQString& sGroup );
public slots:
//void slotPreviewScheme( int );
//void slotAdd();
//void slotSave();
//void slotRemove();
void slotKeyChange();
void slotPreferMeta();
//void updateKeys( const KAccelActions* map_P );
//void readSchemeNames();
signals:
void keyChange();
//void keysChanged( const KAccelActions* map_P );
protected:
TQListBox *sList;
TQStringList *sFileList;
TQPushButton *addBt;
TQPushButton *removeBt;
TQCheckBox *preferMetaBt;
int nSysSchemes;
bool bSeriesOnly;
void readScheme( int index=0 );
TQString KeyType;
TQString KeyScheme;
TQString KeySet;
};
class KeyChooserSpec : public KKeyChooser
{
Q_OBJECT
public:
KeyChooserSpec( KAccelActions& actions, TQWidget* parent,
bool bGlobal );
//void updateKeys( const KAccelActions* map_P );
protected:
bool m_bGlobal;
};
#endif
|