egami
C++ Image Processing program
|
Manages the display zone. More...
#include <catalogue.hpp>
Public Member Functions | |
Display_catalogue () | |
void | open_image (const std::string &filepath) |
Opens a image in a new tab. | |
void | undo_current () |
void | redo_current () |
bool | save () |
void | save_as (const std::string &) |
Static Public Member Functions | |
static std::shared_ptr < Display_page > | current_page () |
Returns a shared_ptr to the current page. | |
static std::vector < std::shared_ptr < Display_unit > > | all_units () |
static void | add_page (const std::string &title, Display_unit *unit) |
Static Private Attributes | |
static Display_catalogue * | instance |
Manages the display zone.
Definition at line 76 of file catalogue.hpp.
Display_catalogue::Display_catalogue | ( | ) |
Definition at line 15 of file catalogue.cpp.
void Display_catalogue::add_page | ( | const std::string & | title, |
Display_unit * | unit | ||
) | [static] |
Definition at line 52 of file catalogue.cpp.
std::vector< std::shared_ptr< Display_unit > > Display_catalogue::all_units | ( | ) | [static] |
std::shared_ptr< Display_page > Display_catalogue::current_page | ( | ) | [static] |
Returns a shared_ptr to the current page.
Definition at line 65 of file catalogue.cpp.
void Display_catalogue::open_image | ( | const std::string & | filepath | ) |
Opens a image in a new tab.
filepath | the path of the file to be opened |
Definition at line 19 of file catalogue.cpp.
void Display_catalogue::redo_current | ( | ) |
Definition at line 42 of file catalogue.cpp.
bool Display_catalogue::save | ( | ) |
Definition at line 82 of file catalogue.cpp.
void Display_catalogue::save_as | ( | const std::string & | fp | ) |
Definition at line 89 of file catalogue.cpp.
void Display_catalogue::undo_current | ( | ) |
Definition at line 32 of file catalogue.cpp.
Display_catalogue * Display_catalogue::instance [static, private] |
Definition at line 101 of file catalogue.hpp.