22 #ifndef GtkCRNAltoImage_HEADER
23 #define GtkCRNAltoImage_HEADER
28 #ifndef CRN_USING_GTKMM3
62 Glib::RefPtr<Gtk::ActionGroup>
get_actions() {
return actions; }
68 void show_hide_pages();
69 void show_hide_spaces();
70 void show_hide_blocks();
71 void show_hide_lines();
72 void show_hide_words();
74 void on_rmb_clicked(guint mouse_button, guint32 time, std::vector<std::pair<crn::String, crn::String> > overlay_items_under_mouse,
int x,
int y);
86 Glib::RefPtr<Gtk::ActionGroup> actions;
88 sigc::connection rmb_connect, overlay_connect;
89 std::unique_ptr<Gtk::Menu> popup;
91 bool showpages, showspaces, showtextblocks, showtextlines, showwords;
93 std::unique_ptr<crn::xml::AltoWrapper::View> view;
94 sigc::signal<void, crn::xml::WordPath> word_resized;
95 sigc::signal<void, crn::xml::WordPath> word_deleted;
96 sigc::signal<void, crn::xml::WordPath> word_added;
97 bool can_edit_words, can_edit_lines, can_edit_blocks, can_edit_spaces, can_edit_pages;
void set_can_edit_lines(bool e)
sigc::signal< void, crn::xml::WordPath > signal_word_resized()
void set_can_edit_blocks(bool e)
void set_can_edit_spaces(bool e)
void set_view(const crn::xml::AltoWrapper::View &v, bool display_image)
Sets the alto view.
AltoImage(Image *image=nullptr)
void set_image(Image *image)
Sets the Image widget to wrap around.
A UTF32 character string class.
void set_can_edit_words(bool e)
A widget that holds an image.
MouseMode
State of the mouse activity.
Glib::RefPtr< Gtk::ActionGroup > get_actions()
Gets the action group associated to the alto wrapper.
sigc::signal< void, crn::xml::WordPath > signal_word_added()
void unset_view(bool clear_image)
Unsets the alto view.
sigc::signal< void, crn::xml::WordPath > signal_word_deleted()
void set_can_edit_pages(bool e)