libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
GtkCRN::AltoImage Class Reference

Displays an alto page. More...

#include <GtkCRNAltoImage.h>

+ Inheritance diagram for GtkCRN::AltoImage:
+ Collaboration diagram for GtkCRN::AltoImage:

Public Member Functions

 AltoImage (Image *image=nullptr)
 
virtual ~AltoImage ()
 
void set_image (Image *image)
 Sets the Image widget to wrap around. More...
 
void set_view (const crn::xml::AltoWrapper::View &v, bool display_image)
 Sets the alto view. More...
 
void unset_view (bool clear_image)
 Unsets the alto view. More...
 
void set_can_edit_pages (bool e)
 
void set_can_edit_spaces (bool e)
 
void set_can_edit_blocks (bool e)
 
void set_can_edit_lines (bool e)
 
void set_can_edit_words (bool e)
 
Glib::RefPtr< Gtk::ActionGroup > get_actions ()
 Gets the action group associated to the alto wrapper. More...
 
sigc::signal< void,
crn::xml::WordPath
signal_word_resized ()
 
sigc::signal< void,
crn::xml::WordPath
signal_word_deleted ()
 
sigc::signal< void,
crn::xml::WordPath
signal_word_added ()
 

Detailed Description

Displays an alto page.

Definition at line 34 of file GtkCRNAltoImage.h.

Constructor & Destructor Documentation

AltoImage::AltoImage ( Image image = nullptr)

Definition at line 35 of file GtkCRNAltoImage.cpp.

AltoImage::~AltoImage ( )
virtual

Definition at line 55 of file GtkCRNAltoImage.cpp.

Member Function Documentation

Glib::RefPtr<Gtk::ActionGroup> GtkCRN::AltoImage::get_actions ( )
inline

Gets the action group associated to the alto wrapper.

Gets the action group associated to the alto wrapper. Valid names are:

  • alto-pages
  • alto-spaces
  • alto-textblocks
  • alto-textlines
  • alto-words
  • alto-edit

Definition at line 62 of file GtkCRNAltoImage.h.

void GtkCRN::AltoImage::set_can_edit_blocks ( bool  e)
inline

Definition at line 48 of file GtkCRNAltoImage.h.

void GtkCRN::AltoImage::set_can_edit_lines ( bool  e)
inline

Definition at line 49 of file GtkCRNAltoImage.h.

void GtkCRN::AltoImage::set_can_edit_pages ( bool  e)
inline

Definition at line 46 of file GtkCRNAltoImage.h.

void GtkCRN::AltoImage::set_can_edit_spaces ( bool  e)
inline

Definition at line 47 of file GtkCRNAltoImage.h.

void GtkCRN::AltoImage::set_can_edit_words ( bool  e)
inline

Definition at line 50 of file GtkCRNAltoImage.h.

void AltoImage::set_image ( Image image)

Sets the Image widget to wrap around.

Sets the Image widget to wrap around. The previously wrapped image is unconfigured

Parameters
[in]imagethe width to wrap or nullptr

Definition at line 63 of file GtkCRNAltoImage.cpp.

void AltoImage::set_view ( const crn::xml::AltoWrapper::View v,
bool  display_image 
)

Sets the alto view.

Sets the alto view

Parameters
[in]vthe view
[in]display_imageshall the AltoImage set the wrapped Image or was it done before (e.g. by GtkCRN::Document)

Definition at line 138 of file GtkCRNAltoImage.cpp.

sigc::signal<void, crn::xml::WordPath> GtkCRN::AltoImage::signal_word_added ( )
inline

Definition at line 66 of file GtkCRNAltoImage.h.

sigc::signal<void, crn::xml::WordPath> GtkCRN::AltoImage::signal_word_deleted ( )
inline

Definition at line 65 of file GtkCRNAltoImage.h.

sigc::signal<void, crn::xml::WordPath> GtkCRN::AltoImage::signal_word_resized ( )
inline

Definition at line 64 of file GtkCRNAltoImage.h.

void AltoImage::unset_view ( bool  clear_image)

Unsets the alto view.

Unsets the alto view

Parameters
[in]clear_imageshall the AltoImage set the wrapped Image or was it done before (e.g. by GtkCRN::Document)

Definition at line 151 of file GtkCRNAltoImage.cpp.


The documentation for this class was generated from the following files: