#include <gui.hpp>
Inheritance diagram for CGBenchGUI:


Definition at line 72 of file gui.hpp.
Public Member Functions | |
| CGBenchGUI () | |
| virtual | ~CGBenchGUI () |
| void | SetGBenchGUIApp (IGBenchGUIApp *app) |
| virtual void | SetRegistryPath (const string &path) |
| virtual void | RestoreWindowLayout () |
| reads window layout from the file and applies it to Window Manager | |
| void | ShowOpenDlg (vector< string > &filenames) |
| void | ActivateClient (IWMClient *client) |
IWorkbenchAdvisor implementation | |
| virtual void | SetWorkbench (IWorkbench *workbench) |
| connect / disconnect advisor to Workbench | |
| virtual string | GetAppTitle () |
| get application title | |
| virtual void | PostCreateWindow () |
| virtual void | PostViewManagerInitialized () |
| virtual void | PostInit () |
| called after Workbench initialization has been completed | |
| virtual void | PreShutDown () |
| called by Workbench before starting ShutDown | |
| virtual void | PreDestroyWindow () |
| virtual bool | CanShutDown () |
IMenuContributor implementation | |
we implement this interface in order to be able to add commands to the menu | |
| virtual wxMenu * | GetMenu () |
| returns a menu (must be deleted by the caller) | |
IToolBarContext implementation | |
| virtual void | GetCompatibleToolBars (vector< string > &names) |
| returns the names of toolbars compatible with this class (toolbars that are relevant and useful in the context of this class) | |
Command handlers | |
| void | OnOpenView (wxCommandEvent &event) |
| void | OnFileOpen (wxCommandEvent &event) |
| void | OnRunTool (wxCommandEvent &event) |
| void | OnNewWorkspace (wxCommandEvent &event) |
| void | OnCloseWorkspace (wxCommandEvent &event) |
| void | OnHasWorskpaceUpdate (wxUpdateUIEvent &event) |
| void | OnShowProjectTreeView (wxCommandEvent &event) |
| void | OnShowSelectionInspector (wxCommandEvent &event) |
| void | OnShowDiagnosticsConsole (wxCommandEvent &event) |
| void | OnShowEventView (wxCommandEvent &event) |
| void | OnShowTaskView (wxCommandEvent &event) |
| void | OnShowSearchView (wxCommandEvent &event) |
| void | OnEnableCmdUpdate (wxUpdateUIEvent &event) |
| void | OnDisableCmdUpdate (wxUpdateUIEvent &event) |
| default "disabler" for unhandled commands | |
| void | OnBroadcastOptions (wxCommandEvent &event) |
| void | OnToolsOptions (wxCommandEvent &event) |
| void | OnToolsPackages (wxCommandEvent &event) |
| void | OnCloseAllProjectViews (wxCommandEvent &event) |
| void | OnSaveLayout (wxCommandEvent &event) |
| void | OnSaveLayoutUpdate (wxUpdateUIEvent &event) |
| void | OnRestoreLayout (wxCommandEvent &event) |
| void | OnRestoreLayoutUpdate (wxUpdateUIEvent &event) |
| void | OnResetLayout (wxCommandEvent &event) |
| void | OnResetLayoutUpdate (wxUpdateUIEvent &event) |
| void | OnSendFeedback (wxCommandEvent &event) |
| void | OnHelpAbout (wxCommandEvent &event) |
| void | OnTestPrjSrv (wxCommandEvent &event) |
IWindowManagerAdvisor implementation | |
| virtual void | OnCloseClientsRequest (const TClients &clients) |
| virtual void | OnClientAboutToClose (IWMClient &client) |
| called before removing the client | |
| virtual void | OnClientClosed (IWMClient &client) |
| called after the client has been removed | |
| virtual void | OnActiveClientChanged (IWMClient *new_active) |
| called when Active Client is changed (i.e. focus goes into another client) | |
| virtual string | GetFloatingFrameTitle () |
| returns the title for the floating frames created by the Window Manager | |
Protected Member Functions | |
| void | x_RegisterUserTypes () |
| void | x_RegisterCommands () |
| void | x_SaveDefaultWindowLayout () |
| void | x_SetupStatusBar () |
| void | x_ClearStatusBar () |
| void | x_CreateViewToolBar () |
| void | x_CreateFloatingToolBars () |
| void | x_RegisterAccelerators () |
| void | x_PushEvtHandler (wxEvtHandler *new_handler) |
| wxEvtHandler * | x_PopEvtHandler () |
| CRef< objects::CUser_object > | x_LoadWindowLayout (const string &abstract_path) |
| void | x_AddSystemView (const string &view_ui_name) |
| void | x_ShowSingletonView (const string &view_ui_name) |
| void | x_CloseAllViews () |
| bool | x_CloseWorkspace () |
| wxWindow * | x_GetMainWindow () |
| bool | x_HasWorkspace () |
Protected Attributes | |
| string | m_RegPath |
| IWorkbench * | m_Workbench |
| IMenuService * | m_MenuService |
| IGBenchGUIApp * | m_GBenchGUIApp |
| CAppTaskServiceSlot * | m_AppSrvSlot |
| CRef< objects::CUser_object > | m_Layout |
Private Member Functions | |
| DECLARE_EVENT_TABLE () | |
|
|
|
|
|
|
|
|
Definition at line 1069 of file gui.cpp. References IWindowManagerService::ActivateClient(), IWorkbench::GetWindowManagerService(), and m_Workbench. Referenced by COpenViewEventRecord::Do(). |
|
|
Implements IWorkbenchAdvisor. Definition at line 504 of file gui.cpp. References x_CloseWorkspace(). |
|
|
|
|
|
get application title
Implements IWorkbenchAdvisor. Definition at line 286 of file gui.cpp. Referenced by GetFloatingFrameTitle(). |
|
|
returns the names of toolbars compatible with this class (toolbars that are relevant and useful in the context of this class)
Implements IToolBarContext. Definition at line 768 of file gui.cpp. References CProjectViewToolBatFactory::sm_SelTBName. |
|
|
returns the title for the floating frames created by the Window Manager
Implements IWindowManagerAdvisor. Definition at line 1043 of file gui.cpp. References GetAppTitle(). |
|
|
returns a menu (must be deleted by the caller)
Implements IMenuContributor. Definition at line 761 of file gui.cpp. References CUICommandRegistry::CreateMenu(), and CUICommandRegistry::GetInstance(). |
|
|
called when Active Client is changed (i.e. focus goes into another client)
Implements IWindowManagerAdvisor. Definition at line 1049 of file gui.cpp. References IServiceLocator::GetServiceByType(), and m_Workbench. |
|
|
|
called before removing the client
Implements IWindowManagerAdvisor. |
|
|
called after the client has been removed
Implements IWindowManagerAdvisor. |
|
|
Definition at line 977 of file gui.cpp. References IServiceLocator::GetServiceByType(), m_Workbench, and CProjectService::RemoveAllProjectViews(). |
|
|
close clients unconditionally Definition at line 1005 of file gui.cpp. References _ASSERT, IServiceLocator::GetServiceByType(), IWorkbench::GetViewManagerService(), m_Workbench, IViewManagerService::RemoveFromWorkbench(), and CProjectService::RemoveProjectView(). Referenced by x_CloseAllViews(). |
|
|
Definition at line 837 of file gui.cpp. References CAppTaskService::AddTask(), IWorkbench::GetAppTaskService(), CProjectTask::Init_CloseWorkspace(), and m_Workbench. |
|
|
default "disabler" for unhandled commands
|
|
|
|
|
|
Definition at line 798 of file gui.cpp. References CAppTaskService::AddTask(), IWorkbench::GetAppTaskService(), and m_Workbench. |
|
|
Definition at line 852 of file gui.cpp. References x_HasWorkspace(). |
|
|
|
|
|
Definition at line 829 of file gui.cpp. References CAppTaskService::AddTask(), IWorkbench::GetAppTaskService(), CProjectTask::Init_NewWorkspace(), and m_Workbench. |
|
|
Definition at line 822 of file gui.cpp. References CAppTaskService::AddTask(), IWorkbench::GetAppTaskService(), and m_Workbench. |
|
|
Definition at line 1107 of file gui.cpp. References IWindowManagerService::ApplyLayout(), IWorkbench::GetWindowManagerService(), kDefWindowLayoutPath, m_Workbench, and x_LoadWindowLayout(). |
|
|
|
|
|
Definition at line 1088 of file gui.cpp. References _ASSERT, IWindowManagerService::CloseAllClients(), IWorkbench::GetViewManagerService(), IWorkbench::GetWindowManagerService(), IWindowManagerService::LoadLayout(), m_Layout, and m_Workbench. |
|
|
Definition at line 1101 of file gui.cpp. References m_Layout, and CRef< C, Locker >::NotEmpty(). |
|
|
Definition at line 815 of file gui.cpp. References CAppTaskService::AddTask(), IWorkbench::GetAppTaskService(), and m_Workbench. |
|
|
Definition at line 1076 of file gui.cpp. References IWorkbench::GetWindowManagerService(), m_Layout, m_Workbench, CRef< C, Locker >::Reset(), and IWindowManagerService::SaveLayout(). |
|
|
|
|
|
Definition at line 971 of file gui.cpp. References ShowFeedbackDialog(). |
|
|
Definition at line 871 of file gui.cpp. References x_ShowSingletonView(). |
|
|
Definition at line 877 of file gui.cpp. References x_ShowSingletonView(). |
|
|
Definition at line 889 of file gui.cpp. References x_ShowSingletonView(). |
|
|
Definition at line 901 of file gui.cpp. References x_ShowSingletonView(). |
|
|
Definition at line 895 of file gui.cpp. References x_ShowSingletonView(). |
|
|
Definition at line 883 of file gui.cpp. References x_ShowSingletonView(). |
|
|
Definition at line 1122 of file gui.cpp. References CAppTaskService::AddTask(), IWorkbench::GetAppTaskService(), and m_Workbench. |
|
|
Definition at line 941 of file gui.cpp. References _T, CAppOptionsDlg::ID_CAPPOPTIONSDLG, m_RegPath, and CDialog::SetRegistryPath(). |
|
|
Definition at line 948 of file gui.cpp. References _T, IGBenchGUIApp::GetPkgManager(), m_GBenchGUIApp, m_RegPath, and CDialog::SetRegistryPath(). |
|
|
Connect Window Manager Service Implements IWorkbenchAdvisor. Definition at line 331 of file gui.cpp. References _ASSERT, IMenuService::AddContributor(), IToolBarService::AddToolBarContext(), IToolBarService::AddToolBarFactory(), IWorkbench::GetFileArtProvider(), IWorkbench::GetMainWindow(), IWorkbench::GetMenuService(), IWorkbench::GetToolBarService(), IWorkbench::GetWindowManagerService(), m_Workbench, CGBenchToolBarFactory::RegisterImageAliases(), IMenuService::ResetMenuBar(), IWindowManagerService::SetAdvisor(), x_PushEvtHandler(), x_RegisterCommands(), and x_RegisterUserTypes(). |
|
|
called after Workbench initialization has been completed
Implements IWorkbenchAdvisor. Definition at line 390 of file gui.cpp. References CObservable::AttachObserver(), m_Workbench, IWorkbench::RegisterService(), and x_SetupStatusBar(). |
|
|
Implements IWorkbenchAdvisor. |
|
|
Disconnect Window Manager Service Implements IWorkbenchAdvisor. Definition at line 474 of file gui.cpp. References IWorkbench::GetMenuService(), IWorkbench::GetToolBarService(), IWorkbench::GetWindowManagerService(), handler(), m_Workbench, IMenuService::RemoveContributor(), IToolBarService::RemoveToolBarContext(), IWindowManagerService::SetAdvisor(), and x_PopEvtHandler(). |
|
|
called by Workbench before starting ShutDown
Implements IWorkbenchAdvisor. Definition at line 451 of file gui.cpp. References IServiceLocator::GetServiceByType(), m_Workbench, IWorkbench::UnRegisterService(), x_ClearStatusBar(), x_CloseAllViews(), x_GetMainWindow(), and x_SaveDefaultWindowLayout(). |
|
|
reads window layout from the file and applies it to Window Manager
Definition at line 515 of file gui.cpp. References _ASSERT, IWorkbench::GetViewManagerService(), IWorkbench::GetWindowManagerService(), kDefWindowLayoutPath, kWindowLayoutPath, IWindowManagerService::LoadLayout(), LOG_POST, m_Workbench, and x_LoadWindowLayout(). |
|
|
Definition at line 84 of file gui.hpp. References m_GBenchGUIApp. Referenced by CGBenchApp::SetGBenchGUIApp(). |
|
|
Definition at line 270 of file gui.cpp. References m_RegPath. |
|
|
connect / disconnect advisor to Workbench
Implements IWorkbenchAdvisor. Definition at line 276 of file gui.cpp. References m_Workbench. Referenced by CGBenchApp::x_DestroyGUI(). |
|
|
Definition at line 805 of file gui.cpp. References CAppTaskService::AddTask(), IWorkbench::GetAppTaskService(), and m_Workbench. Referenced by CGBenchGUIDropTarget::OnData(). |
|
|
Definition at line 782 of file gui.cpp. References IViewManagerService::AddToWorkbench(), IViewManagerService::CreateViewInstance(), IWorkbench::GetViewManagerService(), and m_Workbench. |
|
|
Definition at line 442 of file gui.cpp. References CObservable::DetachObserver(), IWorkbench::GetAppTaskService(), m_AppSrvSlot, and m_Workbench. Referenced by PreShutDown(). |
|
|
Definition at line 984 of file gui.cpp. References IWindowManagerService::GetAllClients(), IWorkbench::GetWindowManagerService(), m_Workbench, and OnCloseClientsRequest(). Referenced by PreShutDown(). |
|
|
Definition at line 994 of file gui.cpp. References IAppTask::eCompleted, CProjectTask::Init_CloseWorkspace(), m_Workbench, and CAppTask::Run(). Referenced by CanShutDown(). |
|
|
|
|
|
|
|
|
Definition at line 792 of file gui.cpp. References IWorkbench::GetMainWindow(), and m_Workbench. Referenced by OnBroadcastOptions(), PreShutDown(), and x_SetupStatusBar(). |
|
|
Definition at line 845 of file gui.cpp. References IServiceLocator::GetServiceByType(), CProjectService::HasWorkspace(), and m_Workbench. Referenced by OnHasWorskpaceUpdate(). |
|
|
Definition at line 541 of file gui.cpp. References CException::GetMsg(), LOG_POST, MSerial_AsnText(), CRef< C, Locker >::Reset(), and CSystemPath::ResolvePath(). Referenced by OnResetLayout(), and RestoreWindowLayout(). |
|
|
Definition at line 310 of file gui.cpp. References handler(), and m_Workbench. Referenced by PreDestroyWindow(). |
|
|
Definition at line 292 of file gui.cpp. References m_Workbench. Referenced by PostCreateWindow(). |
|
|
|
|
|
Definition at line 636 of file gui.cpp. References Core_RegisterCommands(), Gbench_RegisterCommands(), IWorkbench::GetFileArtProvider(), IWorkbench::GetMainWindow(), IWorkbench::GetUICommandRegistry(), m_Workbench, registry, and WidgetsWx_RegisterCommands(). Referenced by PostCreateWindow(). |
|
|
|
Definition at line 567 of file gui.cpp. References CException::GetMsg(), IWorkbench::GetWindowManagerService(), kWindowLayoutPath, LOG_POST, m_Workbench, MSerial_AsnText(), CSystemPath::ResolvePath(), and IWindowManagerService::SaveLayout(). Referenced by PreShutDown(). |
|
|
Definition at line 421 of file gui.cpp. References CObservable::AttachObserver(), CAppTaskServiceSlot::Create(), eCmdShowEventView, IWorkbench::GetAppTaskService(), IWorkbench::GetStatusBarService(), IStatusBarService::InsertSlot(), m_AppSrvSlot, m_Workbench, CMessageSlotPopupWindow::SetExtraLink(), size, and x_GetMainWindow(). Referenced by PostInit(). |
|
|
Definition at line 775 of file gui.cpp. References IWorkbench::GetViewManagerService(), m_Workbench, and IViewManagerService::ShowSingletonView(). Referenced by OnShowDiagnosticsConsole(), OnShowEventView(), OnShowProjectTreeView(), OnShowSearchView(), OnShowSelectionInspector(), and OnShowTaskView(). |
|
|
Definition at line 203 of file gui.hpp. Referenced by x_ClearStatusBar(), and x_SetupStatusBar(). |
|
|
Definition at line 201 of file gui.hpp. Referenced by OnToolsPackages(), and SetGBenchGUIApp(). |
|
|
Definition at line 205 of file gui.hpp. Referenced by OnRestoreLayout(), OnRestoreLayoutUpdate(), and OnSaveLayout(). |
|
|
|
|
|
Definition at line 197 of file gui.hpp. Referenced by OnToolsOptions(), OnToolsPackages(), and SetRegistryPath(). |
|
1.4.6
Modified on Mon Dec 07 16:23:09 2009 by modify_doxy.py rev. 173732