|
Snoke
|
#include <application.h>

Public Member Functions | |
| void | load (char *name) |
| void | back () |
| void | add (char *name, Screen *screen) |
| void | execute () |
Static Public Member Functions | |
| static Application & | instance () |
Private Member Functions | |
| void | focusFirst () |
| Application () | |
| Application (const Application &) | |
| Application & | operator= (Application &) |
Private Attributes | |
| std::map< char *, Screen * > | screens |
| std::list< Screen * > | history |
| Screen * | currentScreen |
| Widget * | currentWidget |
Singleton class manages stack of screens and navigation
| {map<Screen*>} | screens - container with screens |
| {std::list<Widget*>} | history - list of opened screens |
| {Screen*} | currentScreen - current showed screen |
| {std::list<Widget*>::iterator} | currentWidget - current focused widget |
Definition at line 16 of file application.h.
|
private |
Plug for defending from redefining
Definition at line 100 of file application.cpp.
|
private |
| void Application::add | ( | char * | name, |
| Screen * | screen | ||
| ) |
Adds screen to the list of known screens
| {char*} | name - name to identify screen |
| {Screen*} | screen - pointer to screen |
Definition at line 80 of file application.cpp.
| void Application::back | ( | ) |
Loads previously opened screen
| {char*} | name - screen name |
Definition at line 67 of file application.cpp.

| void Application::execute | ( | ) |
Runs the main event loop
Definition at line 15 of file application.cpp.

|
private |
Sets the start position of currentWidget and focuses it
Definition at line 6 of file application.cpp.


|
static |
| void Application::load | ( | char * | name | ) |
Loads screen
| {char*} | name - screen name |
Definition at line 55 of file application.cpp.

|
private |
|
private |
Definition at line 25 of file application.h.
|
private |
Definition at line 26 of file application.h.
|
private |
Definition at line 24 of file application.h.
|
private |
Definition at line 23 of file application.h.