Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Window::CalendarViewStandard Class Reference
Inheritance diagram for Antares::Window::CalendarViewStandard:
Antares::Component::Panel

Public Types

enum  {
  nbMonthPerRow = 4 , spaceBetweenMonth = 10 , dayWidth = 18 , decalX = 10 ,
  decalY = 10 , weekNumbersWidth = dayWidth * 2 , recommendedWindowWidth , recommendedWindowHeight = (12 / nbMonthPerRow) * (dayWidth * 8 + spaceBetweenMonth) + decalY * 2 + 4 + dayWidth * 2 ,
  borderWidth = 4
}
 

Public Member Functions

 CalendarViewStandard (wxWindow *parent, CalendarSelect &dialog)
 
void selectWholeYear ()
 
void selectNone ()
 
void onDraw (wxPaintEvent &)
 Event: draw the panel.
 
void onEraseBackground (wxEraseEvent &)
 UI: Erase background, empty to avoid flickering.
 
virtual void onMouseMoved (int x, int y)
 wxEvent : onMouseMove
 
virtual void onMouseDown (wxMouseEvent &)
 Click down.
 
virtual void onMouseUp (wxMouseEvent &)
 Click up.
 
- Public Member Functions inherited from Antares::Component::Panel
 Panel (wxWindow *parent)
 Constructor.
 
virtual ~Panel ()
 Destructor.
 
virtual void onMouseClick ()
 The panel has been clicked (delayed)
 
virtual void onMouseEnter ()
 The mouse has entered.
 
virtual void onMouseLeave ()
 The mouse has leaved.
 

Public Attributes

Date::Calendarcalendar
 Current calendar.
 
Yuni::Bind< void(const YString &)> onUpdateSelectionText
 Event : update text.
 

Additional Inherited Members

- 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::Component::Panel
virtual bool triggerMouseClickEvent () const
 

Member Function Documentation

◆ onMouseDown()

void Antares::Window::CalendarViewStandard::onMouseDown ( wxMouseEvent & evt)
virtual

Click down.

Reimplemented from Antares::Component::Panel.

◆ onMouseMoved()

void Antares::Window::CalendarViewStandard::onMouseMoved ( int x,
int y )
virtual

wxEvent : onMouseMove

Reimplemented from Antares::Component::Panel.

◆ onMouseUp()

void Antares::Window::CalendarViewStandard::onMouseUp ( wxMouseEvent & )
virtual

Click up.

Reimplemented from Antares::Component::Panel.


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