editor.hpp 684 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef SOURCE_EDITOR_HPP_INCLUDED
  2. #define SOURCE_EDITOR_HPP_INCLUDED
  3. #include <string>
  4. #include <gtkmm/grid.h>
  5. #include <gtkmm/entry.h>
  6. #include <gtkmm/label.h>
  7. #include <gtkmm/button.h>
  8. #include "light.hpp"
  9. namespace cx_light {
  10. class editor: public Gtk::Grid {
  11. public:
  12. editor(light*);
  13. ~editor() override;
  14. std::string get_title();
  15. std::string get_address();
  16. private:
  17. light *target;
  18. Gtk::Entry *title;
  19. Gtk::Entry *address;
  20. Gtk::Label *description;
  21. Gtk::Label *title_label;
  22. Gtk::Label *address_label;
  23. Gtk::Button *save;
  24. Gtk::Button *back;
  25. };
  26. }
  27. #endif