|
egami
C++ Image Processing program
|
A page in the processing list zone. More...
#include <processing_page.hpp>

Public Member Functions | |
| Processing_page (const std::string &id) | |
| Constructs a Processing_page with a given id. | |
| void | insert (std::shared_ptr< Processing_unit > unit) |
| Inserts a Processing_unit in this page. | |
Static Public Member Functions | |
| static void | add_unit_to_page (const std::string &id, std::shared_ptr< Processing_unit > unit) |
| Adds a Processing_unit to a given Processing_page. | |
Private Types | |
| typedef std::map< std::string, Processing_page * > | Instances |
Private Attributes | |
| Gtk::VButtonBox | container |
| std::list< std::shared_ptr < Processing_unit > > | childs |
Static Private Attributes | |
| static Instances | instances |
A page in the processing list zone.
To be used as a member of Processing_catalogue. A list of all Processing_page objects is kept so that a new Processing_unit can add itself through the add_unit_to_page static member function.
Definition at line 25 of file processing_page.hpp.
typedef std::map<std::string, Processing_page*> Processing_page::Instances [private] |
Definition at line 26 of file processing_page.hpp.
| Processing_page::Processing_page | ( | const std::string & | id | ) | [explicit] |
Constructs a Processing_page with a given id.
| id | the Processing_page's id, displayed in the tab and used to refer to this Processing_page on a Processing_unit registration with add_unit_to_page. |
Definition at line 12 of file processing_page.cpp.
| void Processing_page::add_unit_to_page | ( | const std::string & | id, |
| std::shared_ptr< Processing_unit > | unit | ||
| ) | [static] |
Adds a Processing_unit to a given Processing_page.
| std::runtime_error | if the id is not in the instances map |
| id | the id of the target Processing_page |
| unit | the unit to be inserted |
Definition at line 21 of file processing_page.cpp.

| void Processing_page::insert | ( | std::shared_ptr< Processing_unit > | unit | ) |
Inserts a Processing_unit in this page.
| unit | the Processing_unit to be inserted |
Definition at line 28 of file processing_page.cpp.
std::list<std::shared_ptr<Processing_unit> > Processing_page::childs [private] |
List of shared_ptr to the childs, to keep them alive
Definition at line 54 of file processing_page.hpp.
Gtk::VButtonBox Processing_page::container [private] |
The Widget (Prossing_unit) container
Definition at line 53 of file processing_page.hpp.
Processing_page::Instances Processing_page::instances [static, private] |
All of the Processing_page objects, used by add_unit_to_page
Definition at line 56 of file processing_page.hpp.
1.7.4