egami
C++ Image Processing program
|
The header of a Display_page. More...
#include <display_page.hpp>
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_catalogue * | father |
unsigned | id |
Friends | |
class | Display_catalogue |
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.
Display_page_header::Display_page_header | ( | const std::string & | text | ) |
Constructs a Display_page_header with a given label.
text | the text to be displayed in the tab |
Definition at line 101 of file display_page.cpp.
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.
father | the Display_catalogue containing the tab (and the associated page) |
id | the 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.
Definition at line 114 of file display_page.cpp.
friend class Display_catalogue [friend] |
Definition at line 109 of file display_page.hpp.
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.
Display_catalogue* Display_page_header::father [private] |
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.