KWin
|
Menu shown for a Window. More...
#include <useractions.h>
Public Slots | |
void | showHideActivityMenu () |
Public Member Functions | |
UserActionsMenu (QObject *parent=nullptr) | |
~UserActionsMenu () override | |
void | discard () |
bool | isShown () const |
void | grabInput () |
bool | hasWindow () const |
bool | isMenuWindow (const Window *window) const |
void | close () |
void | show (const QRect &pos, Window *window) |
Shows the menu at the given pos for the given window . | |
Menu shown for a Window.
The UserActionsMenu implements the Menu which is shown on:
The menu contains various window management related actions for the Window the menu is opened for, this is normally the active Window.
The menu which is shown is tried to be as close as possible to the menu implemented in libtaskmanager, though there are differences as there are some actions only the window manager can provide and on the other hand the libtaskmanager cares also about things like e.g. grouping.
Whenever the menu is changed it should be tried to also adjust the menu in libtaskmanager.
Definition at line 45 of file useractions.h.
|
explicit |
Definition at line 68 of file useractions.cpp.
|
override |
Definition at line 90 of file useractions.cpp.
void KWin::UserActionsMenu::close | ( | ) |
Closes the Menu and prepares it for next usage.
Definition at line 105 of file useractions.cpp.
void KWin::UserActionsMenu::discard | ( | ) |
Discards the constructed menu, so that it gets recreates on next show event.
Definition at line 294 of file useractions.cpp.
void KWin::UserActionsMenu::grabInput | ( | ) |
grabs keyboard and mouse, workaround(?) for bug #351112
Definition at line 141 of file useractions.cpp.
bool KWin::UserActionsMenu::hasWindow | ( | ) | const |
Definition at line 100 of file useractions.cpp.
bool KWin::UserActionsMenu::isMenuWindow | ( | const Window * | window | ) | const |
bool KWin::UserActionsMenu::isShown | ( | ) | const |
Definition at line 95 of file useractions.cpp.
void KWin::UserActionsMenu::show | ( | const QRect & | pos, |
Window * | window ) |
Shows the menu at the given pos
for the given window
.
pos | The position where the menu should be shown. |
window | The Window for which the Menu has to be shown. |
Definition at line 118 of file useractions.cpp.
|
slot |
Delayed initialization of the activity menu.
The call to retrieve the current list of activities is performed in a thread and this slot is invoked once the list has been fetched. Only task of this method is to decide whether to show the activity menu and to invoke the initialization of it.
Definition at line 379 of file useractions.cpp.