egami
C++ Image Processing program
Public Member Functions | Private Member Functions | Private Attributes | Friends
Display_page Class Reference

A page in the display zone. More...

#include <display_page.hpp>

List of all members.

Public Member Functions

 Display_page ()
template<class T >
 Display_page (std::shared_ptr< T > p)
 Constructs a page from a Display_unit (which must be a Gtk::Widget).
void undo ()
void redo ()
bool save ()
void save_as (const std::string &)
bool on_button_press_event (GdkEventButton *)
std::tuple< int, int, int, int > selection () const

Private Member Functions

void detach_child ()
void attach_child ()

Private Attributes

std::shared_ptr< Display_unitdisplay_unit
Gtk::ScrolledWindow c1
Gtk::ScrolledWindow c2
int s_y1
int s_x1
int s_y2
int s_x2

Friends

class Processing_unit
class Display_catalogue
void swap (Display_page &lhs, Display_page &rhs) noexcept

Detailed Description

A page in the display zone.

To be used as member of Display_catalogue. The right pane contains the Widget given on construction. The left pane contains the parent of the right pane (if it exists), that is the widget from which the given Display_unit has been computed.

Definition at line 35 of file display_page.hpp.


Constructor & Destructor Documentation

Display_page::Display_page ( )

Definition at line 17 of file display_page.cpp.

template<class T >
Display_page::Display_page ( std::shared_ptr< T >  p)

Constructs a page from a Display_unit (which must be a Gtk::Widget).

Read the Display_unit documentation for explanation on why Gtk::Widget can't be used as base class. Which is also the explanation on the usage of a function template here.

Definition at line 114 of file display_page.hpp.

Here is the call graph for this function:


Member Function Documentation

void Display_page::attach_child ( ) [private]

Definition at line 34 of file display_page.cpp.

Here is the caller graph for this function:

void Display_page::detach_child ( ) [private]

Definition at line 19 of file display_page.cpp.

Here is the caller graph for this function:

bool Display_page::on_button_press_event ( GdkEventButton *  event)

Definition at line 79 of file display_page.cpp.

void Display_page::redo ( )

Definition at line 49 of file display_page.cpp.

Here is the call graph for this function:

bool Display_page::save ( )

Definition at line 57 of file display_page.cpp.

void Display_page::save_as ( const std::string &  fp)

Definition at line 61 of file display_page.cpp.

std::tuple< int, int, int, int > Display_page::selection ( ) const

Definition at line 94 of file display_page.cpp.

Here is the caller graph for this function:

void Display_page::undo ( )

Definition at line 65 of file display_page.cpp.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Display_catalogue [friend]

Definition at line 68 of file display_page.hpp.

friend class Processing_unit [friend]

Definition at line 67 of file display_page.hpp.

void swap ( Display_page lhs,
Display_page rhs 
) [friend]

Definition at line 73 of file display_page.cpp.


Member Data Documentation

Gtk::ScrolledWindow Display_page::c1 [private]

Definition at line 61 of file display_page.hpp.

Gtk::ScrolledWindow Display_page::c2 [private]

Definition at line 61 of file display_page.hpp.

std::shared_ptr<Display_unit> Display_page::display_unit [private]

The associated Display_unit.

Definition at line 60 of file display_page.hpp.

int Display_page::s_x1 [private]

Definition at line 62 of file display_page.hpp.

int Display_page::s_x2 [private]

Definition at line 62 of file display_page.hpp.

int Display_page::s_y1 [private]

Definition at line 62 of file display_page.hpp.

int Display_page::s_y2 [private]

Definition at line 62 of file display_page.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends