#include <ax/ax_view.h>
Public Member Functions | |
| AxViewManager () | |
| ~AxViewManager () | |
| void | Init () |
| Initialise member variables. | |
| void | AddView (AxView *view) |
| Add a view. | |
| AxViewArray & | GetViews () |
| Get view array. | |
| AxView * | FindView (wxClassInfo *info) const |
| Find view. | |
| AxView * | FindOrCreateView (wxClassInfo *info) |
| Find or create view, and add to view list if necessary. | |
| virtual bool | ActivateView (AxView *view, AxDocument *doc) |
| Activate the specified view. | |
| virtual bool | DeactivateView (AxView *view) |
| Deactive the specified view. | |
| virtual bool | MakeModal (bool showModal) |
| Begin/end modal. | |
| AxView * | GetActiveView () const |
| Get active view. | |
| void | ClearViews () |
| Clear all views. | |
| void | Clear () |
| Clear everything. | |
| void | SetMenuCtrl (wxWindow *ctrl) |
| Set the window to be used as the main menu control. | |
| wxWindow * | GetMenuCtrl () const |
| Get the window used as the main menu control. | |
| void | SetContainerCtrl (AxContainerCtrl *ctrl) |
| Set the window to be used as the main container control. | |
| AxContainerCtrl * | GetContainerCtrl () const |
| Get the window used as the main container control. | |
| void | SetViewPagerCtrl (AxPagerCtrl *ctrl) |
| Set the window to be used as the main view pager control. | |
| AxPagerCtrl * | GetViewPagerCtrl () const |
| Get the window used as the main view pager container control. | |
| void | SetTitleCtrl (wxTextCtrl *ctrl) |
| Set the window to be used as the main title control. | |
| wxTextCtrl * | GetTitleCtrl () const |
| Get the window used as the main title control. | |
| void | SetDescriptionCtrl (wxTextCtrl *ctrl) |
| Set the window to be used as the short description control. | |
| wxTextCtrl * | GetDescriptionCtrl () const |
| Get the window used as the main description control. | |
| AxMenuController * | GetMenuController () |
| Get the controller object. | |
| void | SetMenuController (AxMenuController *controller) |
| Set the controller object. | |
| void | SetShortcutManager (wxShortcutManager *manager) |
| Set shortcut manager. | |
| wxShortcutManager * | GetShortcutManager () const |
| Get shortcut manager. | |
| bool | ShowInitialMenu (AxMenu *menu) |
| Show initial top-level menu. | |
| bool | ShowMenu (AxMenu *menu, AxMenuItem *parentItem=NULL, AxMenu *childMenu=NULL) |
| Show this menu, optionally passing the item it's spawned from. | |
| virtual bool | ShowHomeView () |
| Show the home view. | |
| wxString | GetHomeDescription () const |
| Set the home description text. | |
| void | SetHomeDescription (const wxString &descr) |
| Gets the home description text. | |
| bool | IsModal () const |
| Returns true if the menu is modal. | |
| void | SetVisualSettings (const AxVisualSettings &settings) |
| Get visual settings. | |
| AxVisualSettings & | GetVisualSettings () |
| const AxVisualSettings & | GetVisualSettings () const |
| AxSpeech & | GetSpeech () |
| Returns the speech object. | |
| const AxSpeech & | GetSpeech () const |
| virtual bool | UpdateAppearance (wxWindow *window=NULL, int hints=AxVisualSettingAll) |
| Updates the appearance of windows when settings changed. | |
| virtual bool | StopSpeech () |
| Stops speaking. | |
| virtual bool | CanStopSpeech () |
| Returns true if we can stop speaking. | |
| virtual bool | IdleProcessing () |
| Do idle processing. | |
Static Public Member Functions | |
| static AxViewManager * | Get () |
| Get current instance of the view manager. | |
Protected Attributes | |
| AxViewArray | m_views |
| AxView * | m_activeView |
| wxWindow * | m_menuCtrl |
| AxContainerCtrl * | m_containerCtrl |
| AxPagerCtrl * | m_viewPagerCtrl |
| wxTextCtrl * | m_titleCtrl |
| wxTextCtrl * | m_descriptionCtrl |
| AxMenuController * | m_menuController |
| wxString | m_homeDescription |
| int | m_modalCount |
| AxVisualSettings | m_visualSettings |
| AxSpeech | m_speech |
| wxShortcutManager * | m_shortcutManager |
Static Protected Attributes | |
| static AxViewManager * | sm_viewManager = NULL |
AxViewManager also contains speech objects and visual settings, so every AxTk application must store an instance of this class, usually in the application class.
| AxViewManager::AxViewManager | ( | ) | [inline] |
| AxViewManager::~AxViewManager | ( | ) |
| bool AxViewManager::ActivateView | ( | AxView * | view, | |
| AxDocument * | doc | |||
| ) | [virtual] |
Activate the specified view.
| void AxViewManager::AddView | ( | AxView * | view | ) | [inline] |
Add a view.
| bool AxViewManager::CanStopSpeech | ( | ) | [virtual] |
Returns true if we can stop speaking.
| void AxViewManager::Clear | ( | ) |
Clear everything.
| void AxViewManager::ClearViews | ( | ) |
Clear all views.
| bool AxViewManager::DeactivateView | ( | AxView * | view | ) | [virtual] |
Deactive the specified view.
| AxView * AxViewManager::FindOrCreateView | ( | wxClassInfo * | info | ) |
Find or create view, and add to view list if necessary.
| AxView * AxViewManager::FindView | ( | wxClassInfo * | info | ) | const |
Find view.
| static AxViewManager* AxViewManager::Get | ( | ) | [inline, static] |
Get current instance of the view manager.
| AxView* AxViewManager::GetActiveView | ( | ) | const [inline] |
Get active view.
| AxContainerCtrl* AxViewManager::GetContainerCtrl | ( | ) | const [inline] |
Get the window used as the main container control.
| wxTextCtrl* AxViewManager::GetDescriptionCtrl | ( | ) | const [inline] |
Get the window used as the main description control.
| wxString AxViewManager::GetHomeDescription | ( | ) | const [inline] |
Set the home description text.
| AxMenuController* AxViewManager::GetMenuController | ( | ) | [inline] |
Get the controller object.
| wxWindow* AxViewManager::GetMenuCtrl | ( | ) | const [inline] |
Get the window used as the main menu control.
| wxShortcutManager* AxViewManager::GetShortcutManager | ( | ) | const [inline] |
Get shortcut manager.
| const AxSpeech& AxViewManager::GetSpeech | ( | ) | const [inline] |
| AxSpeech& AxViewManager::GetSpeech | ( | ) | [inline] |
Returns the speech object.
| wxTextCtrl* AxViewManager::GetTitleCtrl | ( | ) | const [inline] |
Get the window used as the main title control.
| AxPagerCtrl* AxViewManager::GetViewPagerCtrl | ( | ) | const [inline] |
Get the window used as the main view pager container control.
| AxViewArray& AxViewManager::GetViews | ( | ) | [inline] |
Get view array.
| const AxVisualSettings& AxViewManager::GetVisualSettings | ( | ) | const [inline] |
| AxVisualSettings& AxViewManager::GetVisualSettings | ( | ) | [inline] |
| bool AxViewManager::IdleProcessing | ( | ) | [virtual] |
Do idle processing.
This is actually implemented in the menu controller in order to strictly control the order of idle processing (speech idle processing must come last).
| void AxViewManager::Init | ( | ) |
Initialise member variables.
| bool AxViewManager::IsModal | ( | ) | const [inline] |
Returns true if the menu is modal.
| bool AxViewManager::MakeModal | ( | bool | showModal | ) | [virtual] |
Begin/end modal.
| void AxViewManager::SetContainerCtrl | ( | AxContainerCtrl * | ctrl | ) | [inline] |
Set the window to be used as the main container control.
| void AxViewManager::SetDescriptionCtrl | ( | wxTextCtrl * | ctrl | ) | [inline] |
Set the window to be used as the short description control.
| void AxViewManager::SetHomeDescription | ( | const wxString & | descr | ) | [inline] |
Gets the home description text.
| void AxViewManager::SetMenuController | ( | AxMenuController * | controller | ) |
Set the controller object.
| void AxViewManager::SetMenuCtrl | ( | wxWindow * | ctrl | ) | [inline] |
Set the window to be used as the main menu control.
| void AxViewManager::SetShortcutManager | ( | wxShortcutManager * | manager | ) | [inline] |
Set shortcut manager.
| void AxViewManager::SetTitleCtrl | ( | wxTextCtrl * | ctrl | ) | [inline] |
Set the window to be used as the main title control.
| void AxViewManager::SetViewPagerCtrl | ( | AxPagerCtrl * | ctrl | ) | [inline] |
Set the window to be used as the main view pager control.
| void AxViewManager::SetVisualSettings | ( | const AxVisualSettings & | settings | ) | [inline] |
Get visual settings.
| bool AxViewManager::ShowHomeView | ( | ) | [virtual] |
Show the home view.
| bool AxViewManager::ShowInitialMenu | ( | AxMenu * | menu | ) |
Show initial top-level menu.
| bool AxViewManager::ShowMenu | ( | AxMenu * | menu, | |
| AxMenuItem * | parentItem = NULL, |
|||
| AxMenu * | childMenu = NULL | |||
| ) |
Show this menu, optionally passing the item it's spawned from.
If childMenu is specified, link menu but then show the child menu immediately (i.e., a child of the menu we're showing). For example, this might be necessary when showing a file selector with a default selection that is a descendant of the file selection menu.
| bool AxViewManager::StopSpeech | ( | ) | [virtual] |
Stops speaking.
| bool AxViewManager::UpdateAppearance | ( | wxWindow * | window = NULL, |
|
| int | hints = AxVisualSettingAll | |||
| ) | [virtual] |
Updates the appearance of windows when settings changed.
AxView* AxViewManager::m_activeView [protected] |
AxContainerCtrl* AxViewManager::m_containerCtrl [protected] |
wxTextCtrl* AxViewManager::m_descriptionCtrl [protected] |
wxString AxViewManager::m_homeDescription [protected] |
AxMenuController* AxViewManager::m_menuController [protected] |
wxWindow* AxViewManager::m_menuCtrl [protected] |
int AxViewManager::m_modalCount [protected] |
wxShortcutManager* AxViewManager::m_shortcutManager [protected] |
AxSpeech AxViewManager::m_speech [protected] |
wxTextCtrl* AxViewManager::m_titleCtrl [protected] |
AxPagerCtrl* AxViewManager::m_viewPagerCtrl [protected] |
AxViewArray AxViewManager::m_views [protected] |
AxVisualSettings AxViewManager::m_visualSettings [protected] |
AxViewManager * AxViewManager::sm_viewManager = NULL [static, protected] |
1.5.8