KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS_TUNE_STATUS_POPUP Class Reference

#include <pns_tune_status_popup.h>

Inheritance diagram for PNS_TUNE_STATUS_POPUP:
STATUS_TEXT_POPUP STATUS_POPUP

Public Member Functions

 PNS_TUNE_STATUS_POPUP (wxWindow *aParent)
 
 ~PNS_TUNE_STATUS_POPUP () override
 
void UpdateStatus (PNS::ROUTER *aRouter)
 
void SetText (const wxString &aText)
 Display a text. More...
 
void SetTextColor (const wxColour &aColor)
 Change text color. More...
 
virtual void Popup (wxWindow *aFocus=nullptr)
 
virtual void PopupFor (int aMsecs)
 
virtual void Move (const wxPoint &aWhere)
 
virtual void Move (const VECTOR2I &aWhere)
 
void Expire (int aMsecs)
 Hide the popup after a specified time. More...
 
wxWindow * GetPanel ()
 

Protected Member Functions

void updateSize ()
 
void onCharHook (wxKeyEvent &aEvent)
 Expire timer even handler. More...
 
void onExpire (wxTimerEvent &aEvent)
 

Protected Attributes

wxStaticText * m_statusLine
 
wxPanel * m_panel
 
wxBoxSizer * m_topSizer
 
wxTimer m_expireTimer
 

Detailed Description

Definition at line 37 of file pns_tune_status_popup.h.

Constructor & Destructor Documentation

◆ PNS_TUNE_STATUS_POPUP()

PNS_TUNE_STATUS_POPUP::PNS_TUNE_STATUS_POPUP ( wxWindow *  aParent)
inline

Definition at line 40 of file pns_tune_status_popup.h.

◆ ~PNS_TUNE_STATUS_POPUP()

PNS_TUNE_STATUS_POPUP::~PNS_TUNE_STATUS_POPUP ( )
inlineoverride

Definition at line 46 of file pns_tune_status_popup.h.

Member Function Documentation

◆ Expire()

void STATUS_POPUP::Expire ( int  aMsecs)
inherited

Hide the popup after a specified time.

Parameters
aMsecsis the time expressed in milliseconds

Definition at line 97 of file status_popup.cpp.

References STATUS_POPUP::m_expireTimer.

Referenced by STATUS_POPUP::PopupFor().

◆ GetPanel()

wxWindow * STATUS_POPUP::GetPanel ( )
inlineinherited

◆ Move() [1/2]

void STATUS_POPUP::Move ( const VECTOR2I aWhere)
virtualinherited

Definition at line 85 of file status_popup.cpp.

References ToWxPoint().

◆ Move() [2/2]

void STATUS_POPUP::Move ( const wxPoint &  aWhere)
virtualinherited

◆ onCharHook()

void STATUS_POPUP::onCharHook ( wxKeyEvent &  aEvent)
protectedinherited

Expire timer even handler.

Definition at line 55 of file status_popup.cpp.

References EDA_DRAW_FRAME::GetCanvas(), and EDA_DRAW_PANEL_GAL::OnEvent().

Referenced by STATUS_POPUP::STATUS_POPUP().

◆ onExpire()

void STATUS_POPUP::onExpire ( wxTimerEvent &  aEvent)
protectedinherited

Definition at line 110 of file status_popup.cpp.

Referenced by STATUS_POPUP::STATUS_POPUP().

◆ Popup()

void STATUS_POPUP::Popup ( wxWindow *  aFocus = nullptr)
virtualinherited

◆ PopupFor()

void STATUS_POPUP::PopupFor ( int  aMsecs)
virtualinherited

Definition at line 78 of file status_popup.cpp.

References STATUS_POPUP::Expire(), and STATUS_POPUP::Popup().

◆ SetText()

void STATUS_TEXT_POPUP::SetText ( const wxString &  aText)
inherited

Display a text.

Parameters
aTextis the text to be displayed.

Definition at line 127 of file status_popup.cpp.

References STATUS_TEXT_POPUP::m_statusLine, and STATUS_POPUP::updateSize().

Referenced by EDIT_TOOL::doMoveSelection(), PAD_TOOL::EnumeratePads(), and UpdateStatus().

◆ SetTextColor()

void STATUS_TEXT_POPUP::SetTextColor ( const wxColour &  aColor)
inherited

Change text color.

Parameters
aColoris the new text color.

Definition at line 134 of file status_popup.cpp.

References STATUS_TEXT_POPUP::m_statusLine.

Referenced by UpdateStatus().

◆ updateSize()

void STATUS_POPUP::updateSize ( )
protectedinherited

Definition at line 103 of file status_popup.cpp.

References STATUS_POPUP::m_panel, and STATUS_POPUP::m_topSizer.

Referenced by STATUS_TEXT_POPUP::SetText().

◆ UpdateStatus()

Member Data Documentation

◆ m_expireTimer

wxTimer STATUS_POPUP::m_expireTimer
protectedinherited

Definition at line 75 of file status_popup.h.

Referenced by STATUS_POPUP::Expire().

◆ m_panel

wxPanel* STATUS_POPUP::m_panel
protectedinherited

◆ m_statusLine

wxStaticText* STATUS_TEXT_POPUP::m_statusLine
protectedinherited

◆ m_topSizer

wxBoxSizer* STATUS_POPUP::m_topSizer
protectedinherited

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