|
KiCad PCB EDA Suite
|
A list popped up from a status bar icon. More...
#include <kistatusbar_popup.h>
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 |
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.
|
explicit |
Definition at line 30 of file kistatusbar_popup.cpp.
References onCharHook().
Referenced by BACKGROUND_JOB_LIST::BACKGROUND_JOB_LIST(), NOTIFICATIONS_LIST::NOTIFICATIONS_LIST(), and STATUSBAR_WARNING_LIST::STATUSBAR_WARNING_LIST().
|
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().
|
private |
Definition at line 70 of file kistatusbar_popup.cpp.
Referenced by KISTATUSBAR_POPUP().
|
overrideprotected |
Definition at line 59 of file kistatusbar_popup.cpp.
References s_lastDismissed, and s_lastDismissedType.
Referenced by STATUSBAR_WARNING_LIST::OnDismiss().
| 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.
|
staticprivate |
Definition at line 59 of file kistatusbar_popup.h.
Referenced by IsDismissingClick(), and OnDismiss().
|
staticprivate |
Definition at line 60 of file kistatusbar_popup.h.
Referenced by IsDismissingClick(), and OnDismiss().