KDEUI
#include <kcodecaction.h>

Signals | |
| void | defaultItemTriggered () |
| void | triggered (QTextCodec *codec) |
| void | triggered (KEncodingDetector::AutoDetectScript) |
Signals inherited from KSelectAction | |
| void | triggered (QAction *action) |
| void | triggered (int index) |
| void | triggered (const QString &text) |
Signals inherited from KAction | |
| void | authorized (KAuth::Action *action) |
| void | globalShortcutChanged (const QKeySequence &) |
| void | triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) |
Protected Slots | |
| virtual void | actionTriggered (QAction *) |
Protected Slots inherited from KSelectAction | |
| virtual void | actionTriggered (QAction *action) |
| void | slotToggled (bool) |
Properties | |
| int | codecMib |
| QString | codecName |
Properties inherited from KSelectAction | |
| int | comboWidth |
| QAction | currentAction |
| int | currentItem |
| QString | currentText |
| bool | editable |
| QStringList | items |
| ToolBarMode | toolBarMode |
| QToolButton::ToolButtonPopupMode | toolButtonPopupMode |
Properties inherited from KAction | |
| KShortcut | globalShortcut |
| bool | globalShortcutAllowed |
| bool | globalShortcutEnabled |
| KShortcut | shortcut |
| bool | shortcutConfigurable |
Properties inherited from QAction | |
| autoRepeat | |
| checkable | |
| checked | |
| enabled | |
| font | |
| icon | |
| iconText | |
| iconVisibleInMenu | |
| menuRole | |
| priority | |
| shortcut | |
| shortcutContext | |
| softKeyRole | |
| statusTip | |
| text | |
| toolTip | |
| visible | |
| whatsThis | |
Properties inherited from QObject | |
| objectName | |
Additional Inherited Members | |
Public Types inherited from KSelectAction | |
| enum | ToolBarMode { MenuMode, ComboBoxMode } |
Public Types inherited from KAction | |
| enum | GlobalShortcutLoading { Autoloading = 0x0, NoAutoloading = 0x4 } |
| enum | ShortcutType { ActiveShortcut = 0x1, DefaultShortcut = 0x2 } |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from KSelectAction | |
| KSelectAction (KSelectActionPrivate &dd, QObject *parent) | |
| virtual QWidget * | createWidget (QWidget *parent) |
| virtual void | deleteWidget (QWidget *widget) |
| virtual bool | event (QEvent *event) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Protected Member Functions inherited from QWidgetAction | |
| QList< QWidget * > | createdWidgets () const |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes inherited from KSelectAction | |
| KSelectActionPrivate * | d_ptr |
Detailed Description
Action for selecting one of several QTextCodec.
This action shows up a submenu with a list of the available codecs on the system.
Definition at line 38 of file kcodecaction.h.
Constructor & Destructor Documentation
Definition at line 62 of file kcodecaction.cpp.
Definition at line 69 of file kcodecaction.cpp.
| KCodecAction::KCodecAction | ( | const KIcon & | icon, |
| const QString & | text, | ||
| QObject * | parent, | ||
| bool | showAutoOptions = false |
||
| ) |
Definition at line 76 of file kcodecaction.cpp.
|
virtual |
Definition at line 83 of file kcodecaction.cpp.
Member Function Documentation
|
protectedvirtualslot |
Definition at line 161 of file kcodecaction.cpp.
| QTextCodec * KCodecAction::codecForMib | ( | int | mib | ) | const |
Definition at line 150 of file kcodecaction.cpp.
| KEncodingDetector::AutoDetectScript KCodecAction::currentAutoDetectScript | ( | ) | const |
Applicable only if showAutoOptions in c'tor was true.
- Returns
- KEncodingDetector::None if specific encoding is selected, not autodetection, otherwise... you know it!
Definition at line 246 of file kcodecaction.cpp.
| QTextCodec * KCodecAction::currentCodec | ( | ) | const |
Definition at line 191 of file kcodecaction.cpp.
| int KCodecAction::currentCodecMib | ( | ) | const |
Definition at line 233 of file kcodecaction.cpp.
| QString KCodecAction::currentCodecName | ( | ) | const |
Definition at line 223 of file kcodecaction.cpp.
|
signal |
If showAutoOptions==true, then better handle triggered(KEncodingDetector::AutoDetectScript) signal.
Definition at line 117 of file kcodecaction.cpp.
| bool KCodecAction::setCurrentAutoDetectScript | ( | KEncodingDetector::AutoDetectScript | scri | ) |
Applicable only if showAutoOptions in c'tor was true.
KEncodingDetector::SemiautomaticDetection means 'Default' item
Definition at line 253 of file kcodecaction.cpp.
| bool KCodecAction::setCurrentCodec | ( | QTextCodec * | codec | ) |
Definition at line 196 of file kcodecaction.cpp.
Definition at line 228 of file kcodecaction.cpp.
| bool KCodecAction::setCurrentCodec | ( | int | mib | ) |
Definition at line 238 of file kcodecaction.cpp.
|
signal |
Specific (proper) codec was selected.
Note that triggered(const QString&) is emitted too (as defined in KSelectAction)
|
signal |
Autodetection has been selected.
emits KEncodingDetector::SemiautomaticDetection if Default was selected.
Applicable only if showAutoOptions in c'tor was true
Property Documentation
|
read |
Definition at line 44 of file kcodecaction.h.
|
readwrite |
Definition at line 43 of file kcodecaction.h.
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:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Signals inherited from