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 |
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 } |
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 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.