Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Component::MapNotebook Class Reference

MapNotebook. More...

#include <mapnotebook.h>

Inheritance diagram for Antares::Component::MapNotebook:
Antares::Component::Notebook Antares::Component::Panel

Classes

class  MapTabs
 
class  TabTextCtrl
 

Friends

class MapTabs
 

Constructor & Destructor

Yuni::Event onAddPage
 Event: adding a page.
 
Yuni::Event< void(Page &)> onPageDelete
 Event: Page deletion.
 
 MapNotebook (wxWindow *parent, Notebook::Orientation orientation=orLeft)
 Default constructor.
 
void onMapLayerChanged (const wxString *text)
 remove a page by its name
 
bool remove (Page *page)
 

Additional Inherited Members

- Public Types inherited from Antares::Component::Notebook
enum  Orientation { orLeft , orTop }
 
enum  Theme { themeDefault , themeLight }
 
enum  Alignment { alignRight , alignLeft }
 
using Pages = std::vector<Page*>
 All pages.
 
- Public Member Functions inherited from Antares::Component::Notebook
 Notebook (wxWindow *parent, Orientation orientation=orLeft)
 Default constructor.
 
virtual ~Notebook ()
 Destructor.
 
Orientation orientation () const
 Get the orientation of the notebook.
 
void clear ()
 Delete all pages.
 
Pageadd (wxWindow *ctnrl, const wxString &caption)
 Add a new page.
 
Pageadd (wxWindow *ctnrl, const wxString &name, const wxString &caption)
 Add a new page.
 
void addSeparator ()
 Add a separator.
 
bool tabsVisible () const
 Get if the tabs are visible.
 
void tabsVisible (bool v)
 Set if the tabs are visible.
 
bool alwaysDisplayTabs () const
 Get if the tabs must always be displayed, even if a single one is available.
 
void alwaysDisplayTabs (const bool v)
 Set if the tabs must always be displayed.
 
bool displayTitle () const
 
void displayTitle (const bool v)
 
void addCommonControl (Toolbox::InputSelector::AInput *input, const int border=0)
 
void addCommonControl (wxWindow *ctrnl, const int border=0, const wxPoint &recommendedSize=wxPoint(20, 20))
 
void addCommonControlTop (Toolbox::InputSelector::AInput *input, const int border=0)
 
void addCommonControlTop (wxWindow *ctrnl, const int border=0, const wxPoint &recommendedSize=wxPoint(20, 20))
 
const wxString & caption () const
 Get the caption of the notebook.
 
void caption (const wxString &s)
 Set the caption.
 
bool select (const wxString &name, bool triggerEvents=true)
 Select a page by its name.
 
Pageselected ()
 
const Pageselected () const
 
Pagefind (const wxString &name)
 Find a page by its name.
 
void set_page_visibility (const wxString &name, bool visible)
 
void theme (Theme t)
 Set the current theme.
 
Theme theme () const
 
void alignment (Alignment a)
 
wxWindow * titlePanelControl () const
 Get the controls of the main bar.
 
void enableRefreshForAllDatagrid (bool enabled)
 Enable / Disable the refresh for all datagrid.
 
virtual bool HasMultiplePages () const
 
void forceRefresh ()
 
- Public Member Functions inherited from Antares::Component::Panel
 Panel (wxWindow *parent)
 Constructor.
 
virtual ~Panel ()
 Destructor.
 
virtual void onMouseDown (wxMouseEvent &)
 Click down.
 
virtual void onMouseUp (wxMouseEvent &)
 Click up.
 
virtual void onMouseClick ()
 The panel has been clicked (delayed)
 
virtual void onMouseEnter ()
 The mouse has entered.
 
virtual void onMouseLeave ()
 The mouse has leaved.
 
virtual void onMouseMoved (int, int)
 The mouse has moved.
 
- Static Public Member Functions inherited from Antares::Component::Panel
static void OnMouseMoveFromExternalComponent ()
 Event triggered by any other component (not derived from Panel)
 
- Public Attributes inherited from Antares::Component::Notebook
Yuni::Event< void(Page &, bool &)> onPageAccept
 Event: Page changing.
 
Yuni::Event< void(Page &)> onPageChanged
 Event: Page changing.
 
const Orientation pOrientation
 Orientation.
 
Pages pPages
 All pages.
 
TabspTabs
 The tab component.
 
wxString pCaption
 The caption of the notebook.
 
bool pTabsVisible
 Can display tabs.
 
bool pAlwaysDisplayTab
 Always display tabs.
 
bool pDisplayTitle
 Display the title.
 
wxSizer * pSizerForPages
 
wxSizer * pTopSizer
 
wxSizer * pLeftSizer
 
PagepLastSelected
 
std::vector< wxWindow * > pExtraControls
 The complete list of extra controls.
 
Theme pTheme
 
Alignment pAlignment
 
wxString pCacheTitle
 
wxColour pOriginalColor
 
wxColour pOriginalColorDark
 
- Protected Member Functions inherited from Antares::Component::Panel
virtual bool triggerMouseClickEvent () const
 

Detailed Description

Constructor & Destructor Documentation

◆ MapNotebook()

Antares::Component::MapNotebook::MapNotebook ( wxWindow * parent,
Notebook::Orientation orientation = orLeft )

Default constructor.

Parameters
parentThe parent window

Member Data Documentation

◆ onPageDelete

Yuni::Event<void(Page&)> Antares::Component::MapNotebook::onPageDelete

Event: Page deletion.

Prototype :

// page : The page to be deleted

The documentation for this class was generated from the following files: