kexi
KexiImageContextMenu Class Reference
#include <kexiimagecontextmenu.h>
Detailed Description
A context menu used for images within form and table views.Used in KexiDBImageBox and KexiBlobTableEdit. Contains actions like insert, save, copy, paste, clear.
Signals like insertFromFileRequested() are all connected to handlers in KexiDBImageBox and KexiBlobTableEdit so these objects can respond on requests for data handling.
Definition at line 37 of file kexiimagecontextmenu.h.
Public Slots | |
void | updateActionsAvailability () |
virtual void | insertFromFile () |
virtual void | saveAs () |
virtual void | cut () |
virtual void | copy () |
virtual void | paste () |
virtual void | clear () |
virtual void | showProperties () |
Signals | |
void | updateActionsAvailabilityRequested (bool &valueIsNull, bool &valueIsReadOnly) |
void | insertFromFileRequested (const KURL &url) |
void | aboutToSaveAsRequested (QString &origFilename, QString &fileExtension, bool &dataIsEmpty) |
void | saveAsRequested (const QString &fileName) |
void | cutRequested () |
void | copyRequested () |
void | pasteRequested () |
void | clearRequested () |
void | showPropertiesRequested () |
Public Member Functions | |
KexiImageContextMenu (QWidget *parent) | |
virtual | ~KexiImageContextMenu () |
KActionCollection * | actionCollection () const |
Static Public Member Functions | |
static bool | updateTitle (QPopupMenu *menu, const QString &title, const QString &icon=QString::null) |
Protected Attributes | |
Private * | d |
Member Function Documentation
bool KexiImageContextMenu::updateTitle | ( | QPopupMenu * | menu, | |
const QString & | title, | |||
const QString & | icon = QString::null | |||
) | [static] |
Updates title for context menu. Used in KexiDBWidgetContextMenuExtender::createTitle(QPopupMenu *menu) and KexiDBImageBox.
- Returns:
- true if the title has been added.
- Todo:
- look at makeFirstCharacterUpperCaseInCaptions setting [bool] (see doc/dev/settings.txt)
Definition at line 246 of file kexiimagecontextmenu.cpp.
void KexiImageContextMenu::insertFromFile | ( | ) | [virtual, slot] |
Definition at line 97 of file kexiimagecontextmenu.cpp.
void KexiImageContextMenu::saveAs | ( | ) | [virtual, slot] |
Definition at line 141 of file kexiimagecontextmenu.cpp.
void KexiImageContextMenu::updateActionsAvailabilityRequested | ( | bool & | valueIsNull, | |
bool & | valueIsReadOnly | |||
) | [signal] |
Emitted when actions availability should be performed.
Just connect this signal to a slot and set valueIsNull and valueIsReadOnly.
void KexiImageContextMenu::insertFromFileRequested | ( | const KURL & | url | ) | [signal] |
Emitted before "insertFromFile" action was requested.
void KexiImageContextMenu::aboutToSaveAsRequested | ( | QString & | origFilename, | |
QString & | fileExtension, | |||
bool & | dataIsEmpty | |||
) | [signal] |
Emitted before "saveAs" action was requested. You should fill origFilename, fileExtension and dataIsEmpty values. If dataIsEmpty is false, saving will be cancelled.
void KexiImageContextMenu::saveAsRequested | ( | const QString & | fileName | ) | [signal] |
Emitted when "saveAs" action was requested.
void KexiImageContextMenu::cutRequested | ( | ) | [signal] |
Emitted when "cut" action was requested.
void KexiImageContextMenu::copyRequested | ( | ) | [signal] |
Emitted when "copy" action was requested.
void KexiImageContextMenu::pasteRequested | ( | ) | [signal] |
Emitted when "paste" action was requested.
void KexiImageContextMenu::clearRequested | ( | ) | [signal] |
Emitted when "clear" action was requested.
void KexiImageContextMenu::showPropertiesRequested | ( | ) | [signal] |
Emitted when "showProperties" action was requested.
The documentation for this class was generated from the following files: