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.

kbgroup.h 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /***************************************************************************
  2. kbgroup.h - description
  3. -------------------
  4. begin : Wed Jul 4 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 KBGROUP_H
  17. #define KBGROUP_H
  18. #include <ntqpixmap.h>
  19. #include <ntqstring.h>
  20. /**A helper class the holds keyboard group's name and pixmap
  21. *@author Leonid Zeitlin
  22. */
  23. class KBGroup {
  24. public:
  25. KBGroup(const TQString& name);
  26. ~KBGroup();
  27. /** */
  28. const TQPixmap& getPixmap() { return m_pixmap; }
  29. /** No descriptions */
  30. const TQString& getName() { return m_name; }
  31. /** No descriptions */
  32. void setPixmap(const TQPixmap& pixmap) { m_pixmap = pixmap; }
  33. const TQString& getIconPath() { return m_iconpath; }
  34. void setIconPath(const TQString &iconpath) { m_iconpath = iconpath; }
  35. private: // Private attributes
  36. /** */
  37. TQString m_name;
  38. /** */
  39. TQPixmap m_pixmap;
  40. TQString m_iconpath;
  41. };
  42. #endif