24 #ifndef CRN_USING_GTKMM3
25 using namespace GtkCRN;
34 toolbar.set_orientation(Gtk::ORIENTATION_VERTICAL);
35 toolbar.set_toolbar_style(Gtk::TOOLBAR_ICONS);
36 toolbar.append(*Gtk::manage(imgwrapper.
get_actions()->get_action(
"alto-pages")->create_tool_item()));
37 toolbar.append(*Gtk::manage(imgwrapper.
get_actions()->get_action(
"alto-spaces")->create_tool_item()));
38 toolbar.append(*Gtk::manage(imgwrapper.
get_actions()->get_action(
"alto-textblocks")->create_tool_item()));
39 toolbar.append(*Gtk::manage(imgwrapper.
get_actions()->get_action(
"alto-textlines")->create_tool_item()));
40 toolbar.append(*Gtk::manage(imgwrapper.
get_actions()->get_action(
"alto-words")->create_tool_item()));
41 toolbar.append(*Gtk::manage(imgwrapper.
get_actions()->get_action(
"alto-edit")->create_tool_item()));
57 toolbar.set_visible(show);
60 void AltoDocument::on_view_selection_changed(
const crn::String last_selected_view_id,
const std::vector<crn::String> selected_views_ids)
62 if (last_selected_view_id.
IsNotEmpty() && alto)
64 imgwrapper.
set_view(alto->GetView(last_selected_view_id),
false);
GtkCRN::Image & get_image()
Gets the image widget.
void set_view(const crn::xml::AltoWrapper::View &v, bool display_image)
Sets the alto view.
void set_image(Image *image)
Sets the Image widget to wrap around.
A UTF32 character string class.
void set_alto(const crn::xml::SAltoWrapper &aw)
void set_document(const crn::SDocument &doc)
Sets the document to display.
void set_show_toolbar(bool show)
sigc::signal< void, const crn::String, const std::vector< crn::String > > signal_view_selection_changed()
Signal when the selection has changed. Connect to void on_view_selection_changed(const crn::String la...
Gtk::Box & get_left_panel()
Return the VBox on the left of the image.
Glib::RefPtr< Gtk::ActionGroup > get_actions()
Gets the action group associated to the alto wrapper.
void unset_view(bool clear_image)
Unsets the alto view.
bool IsNotEmpty() const noexcept
Checks if the string is not empty.