Ember
Loading...
Searching...
No Matches
RightSidePanel.cpp
Go to the documentation of this file.
1#include "Panels/RightSidePanel.h"
3#include "Tabs/PropertiesTab.h"
4
5namespace Ember {
6namespace Monitor {
7
8RightSidePanel::RightSidePanel(wxWindow *parent) : EmberUI::SidePanel(parent, "Right Panel") {}
9
11 wxAuiNotebook *nb = GetNotebook();
12 if (!nb) {
13 return;
14 }
15
16 auto navigator = std::unique_ptr<ITab>(new MonitorNavigatorTab(nb));
17 m_navigatorTab = static_cast<MonitorNavigatorTab *>(navigator.get());
18 AddTab(std::move(navigator));
19
20 auto properties = std::unique_ptr<ITab>(new PropertiesTab(nb));
21 m_propertiesTab = static_cast<PropertiesTab *>(properties.get());
22 AddTab(std::move(properties));
23
24 SetActiveTab(0);
25}
26
27} // namespace Monitor
28} // namespace Ember
virtual int AddTab(ITabPtr tab)
Adds a tab and returns its index.
Definition SidePanel.cpp:48
wxAuiNotebook * GetNotebook() const
Returns the underlying wxAuiNotebook.
Definition SidePanel.h:35
SidePanel(wxWindow *parent, const wxString &panelName="Side Panel", bool autoLayout=true)
Constructs the side panel with optional name and auto-layout flag.
virtual bool SetActiveTab(int index)
Sets the active tab by index; returns true on success.
Monitor-specific navigator tab with tree list and status refresh.
Monitor's property inspector displaying read-only node properties and live status.
MonitorNavigatorTab * m_navigatorTab
void SetupTabs()
Creates and configures the navigator and properties tabs.
Definition Panel.h:8