![]() |
KiCad PCB EDA Suite
|
Functions | |
bool | IsDarkTheme () |
Determine if the desktop interface is currently using a dark theme or a light theme. More... | |
void | ForceFocus (wxWindow *aWindow) |
Pass the current focus to the window. More... | |
void | ReparentQuasiModal (wxNonOwnedWindow *aWindow) |
Move a window's parent to be the top-level window and force the window to be on top. More... | |
void | FixupCancelButtonCmdKeyCollision (wxWindow *aWindow) |
bool | IsStockCursorOk (wxStockCursor aCursor) |
Checks if we designated a stock cursor for this OS as "OK" or else we may need to load a custom one. More... | |
void | EllipsizeChoiceBox (wxChoice *aChoice) |
Configure a wxChoice control to ellipsize the shown text in the button with the ellipses placed at the end of the string. More... | |
void KIPLATFORM::UI::EllipsizeChoiceBox | ( | wxChoice * | aChoice | ) |
Configure a wxChoice control to ellipsize the shown text in the button with the ellipses placed at the end of the string.
aChoice | is the choice box to ellipsize |
Definition at line 76 of file gtk/ui.cpp.
References NULL.
Referenced by DLG_SELECT_3DMODEL::DLG_SELECT_3DMODEL().
void KIPLATFORM::UI::FixupCancelButtonCmdKeyCollision | ( | wxWindow * | aWindow | ) |
Definition at line 56 of file gtk/ui.cpp.
Referenced by CVPCB_MAINFRAME::CVPCB_MAINFRAME(), and DIALOG_SHIM::OnPaint().
void KIPLATFORM::UI::ForceFocus | ( | wxWindow * | aWindow | ) |
Pass the current focus to the window.
On OSX this will forcefully give the focus to the desired window, while on MSW and GTK it will simply call the wxWidgets SetFocus() function.
aWindow | is the window to pass focus to |
Definition at line 44 of file gtk/ui.cpp.
Referenced by NET_SELECTOR_COMBOPOPUP::doSetFocus(), DIALOG_SHIM::OnPaint(), DIALOG_DRC::OnRunDRCClick(), and DIALOG_ERC::OnRunERCClick().
bool KIPLATFORM::UI::IsDarkTheme | ( | ) |
Determine if the desktop interface is currently using a dark theme or a light theme.
Definition at line 31 of file gtk/ui.cpp.
Referenced by BITMAP_BUTTON::OnPaint().
bool KIPLATFORM::UI::IsStockCursorOk | ( | wxStockCursor | aCursor | ) |
Checks if we designated a stock cursor for this OS as "OK" or else we may need to load a custom one.
aCursor | is wxStockCursor we want to see if its acceptable |
Definition at line 62 of file gtk/ui.cpp.
Referenced by CURSOR_STORE::GetStockCursor().
void KIPLATFORM::UI::ReparentQuasiModal | ( | wxNonOwnedWindow * | aWindow | ) |
Move a window's parent to be the top-level window and force the window to be on top.
This only has an affect for OSX, it is a NOP for GTK and MSW.
Apple in its infinite wisdom will raise a disabled window before even passing us the event, so we have no way to stop it. Instead, we must set an order on the windows so that the quasi-modal will be pushed in front of the disabled window when it is raised.
aWindow | is the window to reparent |
Definition at line 50 of file gtk/ui.cpp.
Referenced by PCB_VIEWER_TOOLS::Show3DViewer(), and DIALOG_SHIM::ShowQuasiModal().