22 #ifndef GtkCRNAltoDisplay_HEADER
23 #define GtkCRNAltoDisplay_HEADER
28 #ifndef CRN_USING_GTKMM3
36 class Alto:
public Gtk::HBox
54 Glib::RefPtr<Gtk::ActionGroup>
get_actions() {
return actions; }
62 void on_view_changed();
64 void show_hide_pages();
65 void show_hide_spaces();
66 void show_hide_blocks();
67 void show_hide_lines();
68 void show_hide_words();
70 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);
71 static void add_to_group(std::set<crn::xml::Id> *group,
const crn::xml::Id &
id) { group->insert(
id); }
72 static void clear_group(std::set<crn::xml::Id> *group) { group->clear(); }
84 Glib::RefPtr<Gtk::ActionGroup> actions;
85 std::unique_ptr<Gtk::Menu> popup;
91 crn::xml::SAltoWrapper alto;
93 bool showpages, showspaces, showtextblocks, showtextlines, showwords;
95 std::set<crn::xml::Id> pagegroup, spacegroup, textblockgroup, textlinegroup, wordgroup;
Displays a crn::Document.
void set_wrapper(const crn::xml::SAltoWrapper &w)
GtkCRN::Document & get_document()
A UTF32 character string class.
Glib::RefPtr< Gtk::ActionGroup > get_actions()
Gets the action group associated to the display.
MouseMode
State of the mouse activity.
A character string class.