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

A list popped up from a status bar icon. More...

#include <kistatusbar_popup.h>

Inheritance diagram for KISTATUSBAR_POPUP:
BACKGROUND_JOB_LIST NOTIFICATIONS_LIST STATUSBAR_WARNING_LIST

Public Member Functions

 KISTATUSBAR_POPUP (wxWindow *aParent)
 
void PopupAt (const wxPoint &aCorner)
 Show the popup with its bottom-right corner at aCorner, in screen coordinates.
 

Static Public Member Functions

static bool IsDismissingClick (const std::type_info &aPopupType)
 Return true, once, for a click that arrives just after a popup of type aPopupType was dismissed.
 

Protected Member Functions

void OnDismiss () override
 

Private Member Functions

void onCharHook (wxKeyEvent &aEvent)
 

Static Private Attributes

static long long s_lastDismissed = 0
 
static const std::type_info * s_lastDismissedType = nullptr
 

Detailed Description

A list popped up from a status bar icon.

It opens above and to the left of the icon so it stays inside the frame, since Wayland never moves a popup back on screen. Escape or a click outside dismisses it, and a dismissed popup destroys itself.

Definition at line 33 of file kistatusbar_popup.h.

Constructor & Destructor Documentation

◆ KISTATUSBAR_POPUP()

KISTATUSBAR_POPUP::KISTATUSBAR_POPUP ( wxWindow * aParent)
explicit

Member Function Documentation

◆ IsDismissingClick()

bool KISTATUSBAR_POPUP::IsDismissingClick ( const std::type_info & aPopupType)
static

Return true, once, for a click that arrives just after a popup of type aPopupType was dismissed.

The click that dismisses a popup can still reach the icon under it, which must not open it again.

Definition at line 46 of file kistatusbar_popup.cpp.

References s_lastDismissed, and s_lastDismissedType.

Referenced by KISTATUSBAR::onLoadWarningsIconClick(), BACKGROUND_JOBS_MONITOR::ShowList(), and NOTIFICATIONS_MANAGER::ShowList().

◆ onCharHook()

void KISTATUSBAR_POPUP::onCharHook ( wxKeyEvent & aEvent)
private

Definition at line 70 of file kistatusbar_popup.cpp.

Referenced by KISTATUSBAR_POPUP().

◆ OnDismiss()

void KISTATUSBAR_POPUP::OnDismiss ( )
overrideprotected

Definition at line 59 of file kistatusbar_popup.cpp.

References s_lastDismissed, and s_lastDismissedType.

Referenced by STATUSBAR_WARNING_LIST::OnDismiss().

◆ PopupAt()

void KISTATUSBAR_POPUP::PopupAt ( const wxPoint & aCorner)

Show the popup with its bottom-right corner at aCorner, in screen coordinates.

Definition at line 39 of file kistatusbar_popup.cpp.

Member Data Documentation

◆ s_lastDismissed

long long KISTATUSBAR_POPUP::s_lastDismissed = 0
staticprivate

Definition at line 59 of file kistatusbar_popup.h.

Referenced by IsDismissingClick(), and OnDismiss().

◆ s_lastDismissedType

const std::type_info * KISTATUSBAR_POPUP::s_lastDismissedType = nullptr
staticprivate

Definition at line 60 of file kistatusbar_popup.h.

Referenced by IsDismissingClick(), and OnDismiss().


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