You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/kcontrol/keys/keyconfig.h

91 lines
1.9 KiB

//
// 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 QWidget
{
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, KConfig* 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