1
/***************************************************************************
2
kbconfigdlg.h - description
5
copyright : (C) 2001 by Leonid Zeitlin
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
21
#include <kdialogbase.h>
32
/**Configuration dialog for KKBSwitch
33
*@author Leonid Zeitlin
36
class KBConfigDlg : public KDialogBase {
39
KBConfigDlg(KBConfig *kbconf, QWidget *parent=0, const char *name=0);
41
private: // Private attributes
45
QCheckBox *chkToggleMode;
46
//QCheckBox *chkPerwindowGroup;
47
QCheckBox *chkAutostart;
48
QPushButton *btnChangeIcon;
49
QPushButton *btnSetDefaultIcon;
50
QPushButton *btnSetDefaultGroup;
51
QComboBox *cbxIconType;
52
QComboBox *cbxGroupScope;
53
KKeyChooser *keyChooser;
54
QCheckBox *chkUseShortcuts;
55
QStringList m_iconpaths;
56
int m_default_groupno;
58
/** Display the current KBSwitch configuration in the dialog */
61
void redrawIcons(KBConfig::IconStyle icon_style);
62
void setupGeneralPage();
63
void setupShortcutsPage();
64
void checkIconDefault(int index);
65
private slots: // Private slots
66
/** Fire up "Pick Icon" dialog */
68
void slotSetDefaultGroup();
69
/** No descriptions */
70
void slotLayoutSelected();
71
/** No descriptions */
72
void slotListBoxExecuted(QListBoxItem *item);
73
void slotIconTypeSelected(int index);
74
void slotUseShortcutsToggled(bool on);
75
void slotSetDefaultIcon();
76
protected: // Protected methods
77
/** No descriptions */
78
virtual void slotApply();
79
/** No descriptions */
80
virtual void slotOk();
81
virtual void slotCancel();