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

Processing facility. More...

#include <processing_unit.hpp>

Inheritance diagram for Processing_unit:
Inheritance graph
[legend]
Collaboration diagram for Processing_unit:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Processing facility.

Definition at line 21 of file processing_unit.hpp.


Constructor & Destructor Documentation

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.

Parameters:
processingthe Processing to fire when the button is clicked
textthe label to be displayed in the button
iconthe image to be displayed in the button
new_tabis a new tab created when the button is clicked

Definition at line 13 of file processing_unit.cpp.


Member Function Documentation

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.

Todo:
clean up

Definition at line 22 of file processing_unit.cpp.

Here is the call graph for this function:


Member Data Documentation

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.


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