TDE System Settings – easy to use control center
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.
 
 
 
 
 
 

58 lines
1.6 KiB

  1. /**
  2. * This file is part of the System Settings package
  3. * Copyright (C) 2005 Benjamin C Meyer
  4. * <ben+systempreferences at meyerhome dot net>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public License
  17. * along with this library; see the file COPYING.LIB. If not, write to
  18. * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef MODULEICONITEM_H
  22. #define MODULEICONITEM_H
  23. #include <kiconview.h>
  24. #include <kcmoduleinfo.h>
  25. class ConfigModule;
  26. /**
  27. * Stores information about what modules goes with this item.
  28. * Also provides means of loading the enabled/disabled image (see kcmsearch).
  29. */
  30. class ModuleIconItem : public TQIconViewItem
  31. {
  32. public:
  33. ModuleIconItem( KIconView *parent, KCModuleInfo module );
  34. ModuleIconItem( KIconView *parent, const TQString &text,
  35. const TQString &imageName );
  36. /**
  37. * Update the icon to either be enabled or not.
  38. */
  39. void loadIcon( bool enabled = true );
  40. // The modules that go with this item
  41. TQValueList<KCModuleInfo> modules;
  42. private:
  43. int currentState;
  44. TQString imageName;
  45. };
  46. #endif // MODULEICONITEM_H