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.
 
 
 
 
 

67 lines
1.8 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_FILTERBOX_1008091405
  20. #define H_XG_FILTERBOX_1008091405
  21. #include "filter.hpp"
  22. #include <gtkmm/box.h>
  23. #include <gtkmm/comboboxtext.h>
  24. namespace Solmyr
  25. {
  26. class FilterBox : public Gtk::VBox
  27. {
  28. public:
  29. FilterBox();
  30. virtual ~FilterBox() {}
  31. // Signal accessors
  32. typedef sigc::signal<void, Solmyr::Filter> sigt_refresh;
  33. sigt_refresh signal_refresh()
  34. {return m_signal_refresh;}
  35. protected:
  36. // Signals
  37. sigt_refresh m_signal_refresh;
  38. // Signal handlers
  39. virtual void on_refresh_clicked();
  40. // Child widgets
  41. Gtk::ComboBoxText m_cbt_version,
  42. m_cbt_size,
  43. m_cbt_difficulty,
  44. m_cbt_underground,
  45. m_cbt_victory,
  46. m_cbt_loss,
  47. m_cbt_allies,
  48. m_cbt_player_sg,
  49. m_cbt_player_nb,
  50. m_cbt_human_sg,
  51. m_cbt_human_nb;
  52. };
  53. } // namespace Solmyr
  54. #endif // H_XG_FILTERBOX_1008091405