KKBSwitch – keyboard layout indicator
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.

kbconfigdlg.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #ifndef KBCONFIGDLG_H
  17. #define KBCONFIGDLG_H
  18. #include <kdialogbase.h>
  19. #include "kbconfig.h"
  20. class TQWidget;
  21. class TQCheckBox;
  22. class TQPushButton;
  23. class TQComboBox;
  24. class TQStringList;
  25. class KKeyChooser;
  26. /**Configuration dialog for KKBSwitch
  27. *@author Leonid Zeitlin
  28. */
  29. class KBConfigDlg : public KDialogBase {
  30. Q_OBJECT
  31. public:
  32. KBConfigDlg(KBConfig *kbconf, TQWidget *parent=0, const char *name=0);
  33. ~KBConfigDlg();
  34. private: // Private attributes
  35. /** */
  36. TDEListBox *lbGroups;
  37. /** */
  38. TQCheckBox *chkToggleMode;
  39. //TQCheckBox *chkPerwindowGroup;
  40. TQCheckBox *chkAutostart;
  41. TQPushButton *btnChangeIcon;
  42. TQPushButton *btnSetDefaultIcon;
  43. TQPushButton *btnSetDefaultGroup;
  44. TQComboBox *cbxIconType;
  45. TQComboBox *cbxGroupScope;
  46. KKeyChooser *keyChooser;
  47. TQCheckBox *chkUseShortcuts;
  48. TQStringList m_iconpaths;
  49. int m_default_groupno;
  50. KBConfig *m_kbconf;
  51. /** Display the current KBSwitch configuration in the dialog */
  52. void showConfig();
  53. void saveConfig();
  54. void redrawIcons(KBConfig::IconStyle icon_style);
  55. void setupGeneralPage();
  56. void setupShortcutsPage();
  57. void checkIconDefault(int index);
  58. private slots: // Private slots
  59. /** Fire up "Pick Icon" dialog */
  60. void slotPickIcon();
  61. void slotSetDefaultGroup();
  62. /** No descriptions */
  63. void slotLayoutSelected();
  64. /** No descriptions */
  65. void slotListBoxExecuted(TQListBoxItem *item);
  66. void slotIconTypeSelected(int index);
  67. void slotUseShortcutsToggled(bool on);
  68. void slotSetDefaultIcon();
  69. protected: // Protected methods
  70. /** No descriptions */
  71. virtual void slotApply();
  72. /** No descriptions */
  73. virtual void slotOk();
  74. virtual void slotCancel();
  75. };
  76. #endif