Solmyr - H3M File Manager
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.
 
 
 
 
 

59 line
1.6 KiB

  1. /* Solmyr - H3M manager
  2. * Copyright (C) 2009 Xavier Gendre
  3. *
  4. * This file is part of Solmyr.
  5. *
  6. * Solmyr 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 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Solmyr 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
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Solmyr. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef H_XG_PIXMANAGER_1408090258
  20. #define H_XG_PIXMANAGER_1408090258
  21. #include <gdkmm/pixbuf.h>
  22. #include <glibmm/refptr.h>
  23. namespace Solmyr
  24. {
  25. class PixManager
  26. {
  27. public:
  28. PixManager();
  29. virtual ~PixManager() {}
  30. // Accessors
  31. Glib::RefPtr<Gdk::Pixbuf> version_pix(guint32);
  32. Glib::RefPtr<Gdk::Pixbuf> loss_pix(guint8);
  33. Glib::RefPtr<Gdk::Pixbuf> victory_pix(guint8);
  34. protected:
  35. // Unknown pixmap
  36. Glib::RefPtr<Gdk::Pixbuf> m_refpix_unknown;
  37. // Version pixmaps
  38. Glib::RefPtr<Gdk::Pixbuf> m_refpix_roe;
  39. Glib::RefPtr<Gdk::Pixbuf> m_refpix_ab;
  40. Glib::RefPtr<Gdk::Pixbuf> m_refpix_sod;
  41. Glib::RefPtr<Gdk::Pixbuf> m_refpix_wog;
  42. // Loss pixmaps
  43. Glib::RefPtr<Gdk::Pixbuf> m_pixloss[0x100];
  44. // Victory pixmaps
  45. Glib::RefPtr<Gdk::Pixbuf> m_pixvictory[0x100];
  46. };
  47. } // namespace Solmyr
  48. #endif // H_XG_PIXMANAGER_1408090258