egami
C++ Image Processing program
|
Processing facility. More...
#include <processing_unit.hpp>
Public Member Functions | |
Processing_unit (const Processing &processing, const std::string &text, const Gtk::Image &icon, bool new_tab) | |
Constructs a Processing_unit based on a processing and an icon. | |
void | on_clicked () |
Function called when the button is clicked, calls the Processing on the current image. | |
Private Attributes | |
std::string | title |
Gtk::VBox | container |
Gtk::Label | label |
Gtk::Image | icon |
bool | new_tab |
Processing facility.
Definition at line 21 of file processing_unit.hpp.
Processing_unit::Processing_unit | ( | const Processing & | processing, |
const std::string & | text, | ||
const Gtk::Image & | icon, | ||
bool | new_tab | ||
) |
Constructs a Processing_unit based on a processing and an icon.
processing | the Processing to fire when the button is clicked |
text | the label to be displayed in the button |
icon | the image to be displayed in the button |
new_tab | is a new tab created when the button is clicked |
Definition at line 13 of file processing_unit.cpp.
void Processing_unit::on_clicked | ( | ) |
Function called when the button is clicked, calls the Processing on the current image.
If the current Display_unit is not an Image or is a non modifiable Image, an error dialog is displayed.
Definition at line 22 of file processing_unit.cpp.
Gtk::VBox Processing_unit::container [private] |
Definition at line 42 of file processing_unit.hpp.
Gtk::Image Processing_unit::icon [private] |
The image used as icon on the button
Definition at line 44 of file processing_unit.hpp.
Gtk::Label Processing_unit::label [private] |
Definition at line 43 of file processing_unit.hpp.
bool Processing_unit::new_tab [private] |
Definition at line 45 of file processing_unit.hpp.
std::string Processing_unit::title [private] |
Definition at line 41 of file processing_unit.hpp.