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.

kbpickicondlg.h 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /***************************************************************************
  2. kbpickicondlg.h - description
  3. -------------------
  4. begin : Sat Jul 21 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 KBPICKICONDLG_H
  17. #define KBPICKICONDLG_H
  18. #include <kdialogbase.h>
  19. class TQWidget;
  20. class TQStringList;
  21. class TQPixmap;
  22. class TDEListBox;
  23. /**A dialog to pick an icon for a keyboard layout
  24. *@author Leonid Zeitlin
  25. */
  26. class KBPickIconDlg : public KDialogBase {
  27. Q_OBJECT
  28. public:
  29. KBPickIconDlg(const TQString &currentPath, const TQPixmap &currentPixmap,
  30. TQWidget *parent=0, const char *name=0);
  31. ~KBPickIconDlg();
  32. /** Get the path name of the selected icon. Returns empty string if no icon selected */
  33. TQString getIconPath();
  34. /** No descriptions */
  35. const TQPixmap* getIcon();
  36. private: // Private attributes
  37. /** */
  38. //TQStringList m_pathnames;
  39. //TQString m_iconpath;
  40. //TDEIconView *m_iconview;
  41. TDEListBox *lbIcons;
  42. //TQLabel *lblIcon;
  43. //TQRadioButton *rbFlags;
  44. //TQRadioButton *rbBrowse;
  45. void loadCountryFlags();
  46. void loadGkbCountryFlags();
  47. void showCurrentPath(const TQString &currentPath, const TQPixmap &currentPixmap);
  48. private slots: // Private slots
  49. /** Browse for an arbitrary icon file */
  50. void slotBrowseForIcon();
  51. /** Respond to user selecting a flag in the icon view */
  52. //void slotFlagSelected(TQIconViewItem *item);
  53. };
  54. #endif