kexi

#include <kexidbutils.h>

Public Member Functions

 KexiDBWidgetContextMenuExtender (TQObject *parent, KexiDataItemInterface *iface)
void createTitle (TQPopupMenu *menu)
void updatePopupMenuActions ()

Static Public Member Functions

static bool updateContextMenuTitleForDataItem (TQPopupMenu *menu, KexiDataItemInterface *iface, const TQString &icon=TQString())

Protected Attributes

KexiDataItemInterface * m_iface
TQGuardedPtr< TQPopupMenu > m_contextMenu
bool m_contextMenuHasTitle

Detailed Description

Used for extending editor widgets' context menu.

Definition at line 31 of file kexidbutils.h.

Constructor & Destructor Documentation

◆ KexiDBWidgetContextMenuExtender()

KexiDBWidgetContextMenuExtender::KexiDBWidgetContextMenuExtender ( TQObject * parent,
KexiDataItemInterface * iface )

Definition at line 40 of file kexidbutils.cpp.

◆ ~KexiDBWidgetContextMenuExtender()

KexiDBWidgetContextMenuExtender::~KexiDBWidgetContextMenuExtender ( )

Definition at line 47 of file kexidbutils.cpp.

Member Function Documentation

◆ createTitle()

void KexiDBWidgetContextMenuExtender::createTitle ( TQPopupMenu * menu)

Creates title for context menu menu.

Definition at line 51 of file kexidbutils.cpp.

◆ updateContextMenuTitleForDataItem()

bool KexiDBWidgetContextMenuExtender::updateContextMenuTitleForDataItem ( TQPopupMenu * menu,
KexiDataItemInterface * iface,
const TQString & icon = TQString() )
static

Updates title for context menu based on data item iface caption or name Used in createTitle(TQPopupMenu *menu) and KexiDBImageBox.

Returns
true is the title has been added.

◆ updatePopupMenuActions()

void KexiDBWidgetContextMenuExtender::updatePopupMenuActions ( )

Enables or disables context menu actions that can modify the value. The menu has to be previously provided by createTitle().

Todo
maybe redo will be enabled one day?

Definition at line 74 of file kexidbutils.cpp.

Member Data Documentation

◆ m_contextMenu

TQGuardedPtr<TQPopupMenu> KexiDBWidgetContextMenuExtender::m_contextMenu
protected

Definition at line 52 of file kexidbutils.h.

◆ m_contextMenuHasTitle

bool KexiDBWidgetContextMenuExtender::m_contextMenuHasTitle
protected

true if TDEPopupTitle has been added to the context menu.

Definition at line 53 of file kexidbutils.h.

◆ m_iface

KexiDataItemInterface* KexiDBWidgetContextMenuExtender::m_iface
protected

Definition at line 51 of file kexidbutils.h.


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