#include <appwnd.h>
Public Member Functions | |
| ~AppWnd () | |
| bool | closeAll () |
| void | exit () |
| bool | isDocument (Fl_Window *wnd) |
| DrawContext | drawContext () const |
| void | selectTool (EDrawTool et) |
Static Public Member Functions | |
| static AppWnd * | ptr () |
| static void | destroy () |
| static std::string | newDocName () |
Protected Member Functions | |
| AppWnd () | |
| void | addDoc (Document *doc) |
| void | remDoc (Document *doc) |
Friends | |
| class | Document |
Definition at line 32 of file appwnd.h.
| AppWnd::~AppWnd | ( | ) |
| AppWnd::AppWnd | ( | ) | [protected] |
Singleton can not be allocated static. Use method AppWnd::ptr() method to obtain singleton address.
| static AppWnd* AppWnd::ptr | ( | ) | [static] |
Access point to singleton AppWnd.
Referenced by Document::Document(), and Document::~Document().
| static void AppWnd::destroy | ( | ) | [static] |
Destroy singleton AppWnd. It has no effect if object is not allocated.
| bool AppWnd::closeAll | ( | ) |
Try to close all documents attached to AppWnd singleton.
| void AppWnd::exit | ( | ) |
Try to close all documents. If success, close HelpBrowser singleton and AppWnd singleton.
| bool AppWnd::isDocument | ( | Fl_Window * | wnd | ) |
Search pointer to window in document list.
| wnd | Pointer to window. |
| DrawContext AppWnd::drawContext | ( | ) | const |
| void AppWnd::selectTool | ( | EDrawTool | et | ) |
Set current draw tool.
| et | Draw tool enumeration. |
| static std::string AppWnd::newDocName | ( | ) | [static] |
| void AppWnd::addDoc | ( | Document * | doc | ) | [protected] |
Add pointer to Document object to document list.
| doc | Pointer to document to add. |
| void AppWnd::remDoc | ( | Document * | doc | ) | [protected] |
Remove pointer to Document object from document list.
| doc | Pointer to document to remove. |
friend class Document [friend] |
1.5.2