KiCad PCB EDA Suite
WX_STATUS_POPUP Class Reference

Class WX_STATUS_POPUP. More...

#include <wx_status_popup.h>

Inheritance diagram for WX_STATUS_POPUP:
PNS_TUNE_STATUS_POPUP

Public Member Functions

 WX_STATUS_POPUP (PCB_EDIT_FRAME *aParent)
 Transient mouse following popup window implementation. More...
 
virtual ~WX_STATUS_POPUP ()
 
virtual void Popup (wxWindow *aFocus=NULL)
 
virtual void Move (const wxPoint &aWhere)
 

Protected Member Functions

void updateSize ()
 

Protected Attributes

wxPanel * m_panel
 
wxBoxSizer * m_topSizer
 

Detailed Description

Class WX_STATUS_POPUP.

A tiny, headerless popup window used to display useful status (e.g. line length tuning info) next to the mouse cursor.

Definition at line 41 of file wx_status_popup.h.

Constructor & Destructor Documentation

WX_STATUS_POPUP::WX_STATUS_POPUP ( PCB_EDIT_FRAME aParent)

Transient mouse following popup window implementation.

Definition at line 32 of file wx_status_popup.cpp.

References m_panel, and m_topSizer.

32  :
33  wxPopupWindow( aParent )
34 {
35  m_panel = new wxPanel( this, wxID_ANY );
36  m_panel->SetBackgroundColour( *wxLIGHT_GREY );
37 
38  m_topSizer = new wxBoxSizer( wxVERTICAL );
39  m_panel->SetSizer( m_topSizer );
40 }
wxBoxSizer * m_topSizer
WX_STATUS_POPUP::~WX_STATUS_POPUP ( )
virtual

Definition at line 50 of file wx_status_popup.cpp.

51 {
52 }

Member Function Documentation

void WX_STATUS_POPUP::Move ( const wxPoint aWhere)
virtual

Definition at line 62 of file wx_status_popup.cpp.

References PCAD2KICAD::SetPosition().

Referenced by LENGTH_TUNER_TOOL::updateStatusPopup().

63 {
64  SetPosition ( aWhere );
65 }
void SetPosition(wxString aStr, wxString aDefaultMeasurementUnit, int *aX, int *aY, wxString aActualConversion)
void WX_STATUS_POPUP::Popup ( wxWindow *  aFocus = NULL)
virtual

Definition at line 55 of file wx_status_popup.cpp.

Referenced by LENGTH_TUNER_TOOL::performTuning().

56 {
57  Show( true );
58  Raise();
59 }
void WX_STATUS_POPUP::updateSize ( )
protected

Definition at line 43 of file wx_status_popup.cpp.

References m_panel, and m_topSizer.

Referenced by PNS_TUNE_STATUS_POPUP::UpdateStatus().

44 {
45  m_topSizer->Fit( m_panel );
46  SetClientSize( m_panel->GetSize() );
47 }
wxBoxSizer * m_topSizer

Member Data Documentation

wxPanel* WX_STATUS_POPUP::m_panel
protected
wxBoxSizer* WX_STATUS_POPUP::m_topSizer
protected

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