Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Toolbox::InputSelector::Area Class Reference

Visual Component for displaying all available areas (and groups) More...

#include <area.h>

Inheritance diagram for Antares::Toolbox::InputSelector::Area:
Antares::Toolbox::InputSelector::AInput Antares::Component::Panel

Constructor & Destructor

static Yuni::Event< void(Data::Area *)> onAreaChanged
 Public event, triggered when the selected area has changed.
 
 Area (wxWindow *parent)
 Default Constructor.
 
virtual ~Area ()
 Destructor.
 
virtual wxPoint recommendedSize () const
 Get the recommended size for the control.
 
void reloadLastArea ()
 
virtual void update ()
 Clear then Update the input.
 
static Data::ArealastArea ()
 Get the last area selected by the component.
 
virtual void internalBuildSubControls ()
 
void clear ()
 Clear the control and broadcast a change in the current selected area.
 
void onDraw (wxPaintEvent &evt)
 Callback: draw event.
 
void onStudyEndUpdate ()
 The study has been updated.
 

Additional Inherited Members

- Public Member Functions inherited from Antares::Toolbox::InputSelector::AInput
 AInput (wxWindow *parent)
 Constructor.
 
virtual ~AInput ()
 Destructor.
 
virtual void updateRowContent ()
 Only update the content and not the list itself.
 
virtual void updateInnerData (const wxString &searchString)
 Update each item available in the input.
 
- 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)
 
- Protected Member Functions inherited from Antares::Toolbox::InputSelector::AInput
- Protected Member Functions inherited from Antares::Component::Panel
virtual bool triggerMouseClickEvent () const
 

Detailed Description

Visual Component for displaying all available areas (and groups)

Constructor & Destructor Documentation

◆ Area()

Antares::Toolbox::InputSelector::Area::Area ( wxWindow * parent)

Default Constructor.

Parameters
parentThe parent window

Member Function Documentation

◆ internalBuildSubControls()

void Antares::Toolbox::InputSelector::Area::internalBuildSubControls ( )
protectedvirtual

◆ recommendedSize()

virtual wxPoint Antares::Toolbox::InputSelector::Area::recommendedSize ( ) const
inlinevirtual

Get the recommended size for the control.

Reimplemented from Antares::Toolbox::InputSelector::AInput.

◆ update()

void Antares::Toolbox::InputSelector::Area::update ( )
virtual

Clear then Update the input.

Implements Antares::Toolbox::InputSelector::AInput.


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