kwallet
#include <registercreateactionmethod.h>
Public Types | |
typedef void(* | CreateActionsMethod )(KActionCollection *) |
Public Member Functions | |
RegisterCreateActionsMethod (CreateActionsMethod method) | |
Static Public Member Functions | |
static void | createActions (KActionCollection *actionCollection) |
Detailed Description
This class is intended to avoid coupling between the main window and it's contained widgets that handle actions.
The main window it's a KXMLGuiWindow, that needs to have all the actions created before the createGui method call. That would require for this class to have knowledge for the actions of the child widgets, which is not very OO wise.
To avoid that, the main window will call createActions of this class that will in turn delegate to the registered CreateActionsMethod's registered here.
Definition at line 40 of file registercreateactionmethod.h.
Member Typedef Documentation
typedef void(* RegisterCreateActionsMethod::CreateActionsMethod)(KActionCollection *) |
Definition at line 42 of file registercreateactionmethod.h.
Constructor & Destructor Documentation
RegisterCreateActionsMethod::RegisterCreateActionsMethod | ( | RegisterCreateActionsMethod::CreateActionsMethod | method | ) |
Definition at line 27 of file registercreateactionmethod.cpp.
Member Function Documentation
|
static |
Definition at line 32 of file registercreateactionmethod.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.