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

The header of a Display_page. More...

#include <display_page.hpp>

Collaboration diagram for Display_page_header:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Display_page_header (const std::string &text)
 Constructs a Display_page_header with a given label.
void assign (Display_catalogue *father, unsigned id)
 Sets the informations about the position of the tab and the associated page in a Display_catalogue.

Private Member Functions

void on_close ()
 The function called when the cross is clicked, remove the tab and the associated page from the father Display_catalogue.

Private Attributes

Gtk::Label title
Gtk::Image close_img
Gtk::Button close
Display_cataloguefather
unsigned id

Friends

class Display_catalogue

Detailed Description

The header of a Display_page.

A label and an image button (a cross) to be used as tab in a Display_catalogue. Keeps also the id of the associated pair in the Display_catalogue in order to remove the page when the cross button is clicked.

Definition at line 77 of file display_page.hpp.


Constructor & Destructor Documentation

Display_page_header::Display_page_header ( const std::string &  text)

Constructs a Display_page_header with a given label.

Parameters:
textthe text to be displayed in the tab

Definition at line 101 of file display_page.cpp.

Here is the call graph for this function:


Member Function Documentation

void Display_page_header::assign ( Display_catalogue father,
unsigned  id 
)

Sets the informations about the position of the tab and the associated page in a Display_catalogue.

Parameters:
fatherthe Display_catalogue containing the tab (and the associated page)
idthe id of the tab (and the associated page) in the Display_catalogue

Definition at line 109 of file display_page.cpp.

void Display_page_header::on_close ( ) [private]

The function called when the cross is clicked, remove the tab and the associated page from the father Display_catalogue.

Warning:
The call to this function destroy the *this object. The object must not be used after a call to this function.

Definition at line 114 of file display_page.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class Display_catalogue [friend]

Definition at line 109 of file display_page.hpp.


Member Data Documentation

Gtk::Button Display_page_header::close [private]

The button containing the cross image

Definition at line 97 of file display_page.hpp.

Gtk::Image Display_page_header::close_img [private]

The cross image

Definition at line 96 of file display_page.hpp.

The Display_catalogue containing this tab

Definition at line 99 of file display_page.hpp.

unsigned Display_page_header::id [private]

The id of this tab in the father Display_catalogue

Definition at line 100 of file display_page.hpp.

Gtk::Label Display_page_header::title [private]

The displayed text

Definition at line 95 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