#include <kexiactionproxy.h>
|
| void | plugSharedAction (const char *action_name, TQObject *receiver, const char *slot) |
| void | unplugSharedAction (const char *action_name) |
| void | plugSharedAction (const char *action_name, const char *slot) |
| int | plugSharedAction (const char *action_name, TQWidget *w) |
| void | plugSharedActionToExternalGUI (const char *action_name, KXMLGUIClient *client) |
| void | plugSharedActionsToExternalGUI (const TQValueList< TQCString > &action_names, KXMLGUIClient *client) |
| void | unplugSharedAction (const char *action_name, TQWidget *w) |
| TDEAction * | plugSharedAction (const char *action_name, const TQString &alternativeText, TQWidget *w) |
| virtual TDEAction * | sharedAction (const char *action_name) |
| TQObject * | receiver () const |
| virtual void | setAvailable (const char *action_name, bool set) |
| void | addActionProxyChild (KexiActionProxy *child) |
| void | takeActionProxyChild (KexiActionProxy *child) |
An interface that acts as proxy for shared actions within the application.
For example, edit->copy action can be reused to copy different types of items. Availability and meaning of given action depends on the context, while the context changes e.g. when another window is activated. This class is mostly used by subclassing in KexiDialogBase or KexiDockBase
- you can subclass in a similar way.
Definition at line 83 of file kexiactionproxy.h.
◆ KexiActionProxy()
◆ ~KexiActionProxy()
| KexiActionProxy::~KexiActionProxy |
( |
| ) |
|
|
virtual |
◆ activateSharedAction()
| bool KexiActionProxy::activateSharedAction |
( |
const char * | action_name, |
|
|
bool | alsoCheckInChildren = true ) |
Activates action named action_name for this proxy. If the action is executed (accepted), true is returned.
Definition at line 192 of file kexiactionproxy.cpp.
◆ addActionProxyChild()
Adds child of this proxy. Children will receive activateSharedAction() event, If activateSharedAction() "event" is not consumed by the main proxy, we start to iterate over proxy children (in unspecified order) to and call activateSharedAction() on every child until one of them accept the "event".
If proxy child is destroyed, it is automatically detached from its parent proxy. Parent proxy is 0 by default. This pointer is properly cleared when parent proxy is destroyed.
Definition at line 262 of file kexiactionproxy.cpp.
◆ isAvailable()
| bool KexiActionProxy::isAvailable |
( |
const char * | action_name, |
|
|
bool | alsoCheckInChildren = true ) const |
- Returns
- true, if action named action_name is enabled within the proxy. False is returned either if the action is not available or is not supported. \ sa isSupported()
Definition at line 233 of file kexiactionproxy.cpp.
◆ isSupported()
| bool KexiActionProxy::isSupported |
( |
const char * | action_name | ) |
const |
- Returns
- true, if action named action_name is supported by the proxy.
Definition at line 216 of file kexiactionproxy.cpp.
◆ plugSharedAction() [1/4]
| void KexiActionProxy::plugSharedAction |
( |
const char * | action_name, |
|
|
const char * | slot ) |
|
inlineprotected |
Typical version of plugAction() method – plugs action named action_name to slot slot in this widget.
Definition at line 116 of file kexiactionproxy.h.
◆ plugSharedAction() [2/4]
| TDEAction * KexiActionProxy::plugSharedAction |
( |
const char * | action_name, |
|
|
const TQString & | alternativeText, |
|
|
TQWidget * | w ) |
|
protected |
Like above, but creates alternative action as a copy of action_name, with alternativeText set. When this action is activated, just original action specified by action_name is activated. The aternative action has autmatically set name as: action_name + "_alt". - Returns
- newly created action or 0 if action_name not found.
Definition at line 151 of file kexiactionproxy.cpp.
◆ plugSharedAction() [3/4]
| void KexiActionProxy::plugSharedAction |
( |
const char * | action_name, |
|
|
TQObject * | receiver, |
|
|
const char * | slot ) |
|
protected |
Plugs shared action named action_name to slot slot in receiver. Receiver is usually a child of this widget.
Definition at line 109 of file kexiactionproxy.cpp.
◆ plugSharedAction() [4/4]
| int KexiActionProxy::plugSharedAction |
( |
const char * | action_name, |
|
|
TQWidget * | w ) |
|
protected |
Plugs action named action_name to a widget w, so the action is visible on this widget as an item. w will typically be a menu, popup menu or a toolbar. Does nothing if no action found, so generally this is safer than just caling e.g. action("myaction")->plug(myPopup); - Returns
- index of inserted item, or -1 if there is not action with name action_name.
- See also
- action(), TDEAction::plug(TQWidget*, int)
Definition at line 131 of file kexiactionproxy.cpp.
◆ plugSharedActionsToExternalGUI()
| void KexiActionProxy::plugSharedActionsToExternalGUI |
( |
const TQValueList< TQCString > & | action_names, |
|
|
KXMLGUIClient * | client ) |
|
protected |
◆ plugSharedActionToExternalGUI()
| void KexiActionProxy::plugSharedActionToExternalGUI |
( |
const char * | action_name, |
|
|
KXMLGUIClient * | client ) |
|
protected |
◆ receiver()
| TQObject * KexiActionProxy::receiver |
( |
| ) |
const |
|
inlineprotected |
◆ setActionProxyParent_internal()
| void KexiActionProxy::setActionProxyParent_internal |
( |
KexiActionProxy * | parent | ) |
|
◆ setAvailable()
| void KexiActionProxy::setAvailable |
( |
const char * | action_name, |
|
|
bool | set ) |
|
protectedvirtual |
◆ setSharedActionHost()
◆ sharedAction()
| TDEAction * KexiActionProxy::sharedAction |
( |
const char * | action_name | ) |
|
|
protectedvirtual |
◆ takeActionProxyChild()
◆ unplugSharedAction() [1/2]
| void KexiActionProxy::unplugSharedAction |
( |
const char * | action_name | ) |
|
|
protected |
◆ unplugSharedAction() [2/2]
| void KexiActionProxy::unplugSharedAction |
( |
const char * | action_name, |
|
|
TQWidget * | w ) |
|
protected |
◆ KexiSharedActionConnector
◆ KexiSharedActionHost
◆ TDEAction_setEnabled_Helper
| friend class TDEAction_setEnabled_Helper |
|
friend |
◆ m_actionProxyParent
◆ m_alternativeActions
| TQPtrList<TDEAction> KexiActionProxy::m_alternativeActions |
|
protected |
◆ m_focusedChild
◆ m_host
◆ m_receiver
| TQGuardedPtr<TQObject> KexiActionProxy::m_receiver |
|
protected |
◆ m_sharedActionChildren
◆ m_signal_parent
| TQObject KexiActionProxy::m_signal_parent |
|
protected |
◆ m_signals
| TQAsciiDict< TQPair<TQSignal*,bool> > KexiActionProxy::m_signals |
|
protected |
◆ m_TDEAction_setEnabled_helper
| TDEAction_setEnabled_Helper* KexiActionProxy::m_TDEAction_setEnabled_helper |
|
protected |
For internal use by plugSharedActionToExternalGUI().
Definition at line 175 of file kexiactionproxy.h.
The documentation for this class was generated from the following files:
|