kexi

#include <kexiactionproxy.h>

Public Member Functions

 KexiSharedActionConnector (KexiActionProxy *proxy, TQObject *obj)

Protected Member Functions

void plugSharedAction (const char *action_name, const char *slot)
void plugSharedActionToExternalGUI (const char *action_name, KXMLGUIClient *client)
void plugSharedActionsToExternalGUI (const TQValueList< TQCString > &action_names, KXMLGUIClient *client)

Protected Attributes

KexiActionProxy * m_proxy
TQObject * m_object

Detailed Description

Abstract helper class used to connect shared actions from outside of shared-action-aware object.

Methods like KexiActionProxy::plugSharedAction() are not public, but sometimes there's need for plugging an object that implements KexiActionProxy interface from outside.

Reimplement KexiSharedActionConnector: do all needed connections in the constructor.

For example, with KexiQueryDesignerSQLEditor class we're using KTextEdit (or KTextEditor::View) that's not shared-action-aware. So it's needed to conenct e.g. "edit_undo" shared action to undo() slot, and so on. It is impelmented in more generic way by implementing KTextEdit_SharedActionConnector class, so the conenction can be reused many times by just allocating KTextEdit_SharedActionConnector object for any KTextEditor when required (not only within KexiQueryDesignerSQLEditor).

Definition at line 55 of file kexiactionproxy.h.

Constructor & Destructor Documentation

◆ KexiSharedActionConnector()

KexiSharedActionConnector::KexiSharedActionConnector ( KexiActionProxy * proxy,
TQObject * obj )

Definition at line 48 of file kexiactionproxy.cpp.

◆ ~KexiSharedActionConnector()

KexiSharedActionConnector::~KexiSharedActionConnector ( )

Definition at line 54 of file kexiactionproxy.cpp.

Member Function Documentation

◆ plugSharedAction()

void KexiSharedActionConnector::plugSharedAction ( const char * action_name,
const char * slot )
protected

Definition at line 58 of file kexiactionproxy.cpp.

◆ plugSharedActionsToExternalGUI()

void KexiSharedActionConnector::plugSharedActionsToExternalGUI ( const TQValueList< TQCString > & action_names,
KXMLGUIClient * client )
protected

Definition at line 69 of file kexiactionproxy.cpp.

◆ plugSharedActionToExternalGUI()

void KexiSharedActionConnector::plugSharedActionToExternalGUI ( const char * action_name,
KXMLGUIClient * client )
protected

Definition at line 63 of file kexiactionproxy.cpp.

Member Data Documentation

◆ m_object

TQObject* KexiSharedActionConnector::m_object
protected

Definition at line 71 of file kexiactionproxy.h.

◆ m_proxy

KexiActionProxy* KexiSharedActionConnector::m_proxy
protected

Definition at line 70 of file kexiactionproxy.h.


The documentation for this class was generated from the following files: