~ubuntu-branches/ubuntu/lucid/kkbswitch/lucid

« back to all changes in this revision

Viewing changes to kkbswitch/kbconfigdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Lior Kaplan
  • Date: 2005-09-07 02:01:14 UTC
  • Revision ID: james.westby@ubuntu.com-20050907020114-2wyo9eu21uihq86n
Tags: upstream-1.4.3
ImportĀ upstreamĀ versionĀ 1.4.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          kbconfigdlg.h  -  description
 
3
                             -------------------
 
4
    begin                : Sun Jul 8 2001
 
5
    copyright            : (C) 2001 by Leonid Zeitlin
 
6
    email                : lz@europe.com
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef KBCONFIGDLG_H
 
19
#define KBCONFIGDLG_H
 
20
 
 
21
#include <kdialogbase.h>
 
22
#include "kbconfig.h"
 
23
 
 
24
class QWidget;
 
25
class QCheckBox;
 
26
class QPushButton;
 
27
class QComboBox;
 
28
class QStringList;
 
29
class KKeyChooser;
 
30
 
 
31
 
 
32
/**Configuration dialog for KKBSwitch
 
33
  *@author Leonid Zeitlin
 
34
  */
 
35
 
 
36
class KBConfigDlg : public KDialogBase  {
 
37
   Q_OBJECT
 
38
public: 
 
39
        KBConfigDlg(KBConfig *kbconf, QWidget *parent=0, const char *name=0);
 
40
        ~KBConfigDlg();
 
41
private: // Private attributes
 
42
  /**  */
 
43
  KListBox *lbGroups;
 
44
  /**  */
 
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;
 
57
  KBConfig *m_kbconf;
 
58
  /** Display the current KBSwitch configuration in the dialog */
 
59
  void showConfig();
 
60
  void saveConfig();
 
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 */
 
67
  void slotPickIcon();
 
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();
 
82
};
 
83
 
 
84
#endif