• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Signals | Public Member Functions | Protected Slots | Properties | List of all members
KCodecAction Class Reference

#include <kcodecaction.h>

Inheritance diagram for KCodecAction:
Inheritance graph
[legend]

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)
 

Public Member Functions

 KCodecAction (QObject *parent, bool showAutoOptions=false)
 
 KCodecAction (const QString &text, QObject *parent, bool showAutoOptions=false)
 
 KCodecAction (const KIcon &icon, const QString &text, QObject *parent, bool showAutoOptions=false)
 
virtual ~KCodecAction ()
 
QTextCodec * codecForMib (int mib) const
 
KEncodingDetector::AutoDetectScript currentAutoDetectScript () const
 
QTextCodec * currentCodec () const
 
int currentCodecMib () const
 
QString currentCodecName () const
 
int mibForName (const QString &codecName, bool *ok=0) const
 
bool setCurrentAutoDetectScript (KEncodingDetector::AutoDetectScript)
 
bool setCurrentCodec (QTextCodec *codec)
 
bool setCurrentCodec (const QString &codecName)
 
bool setCurrentCodec (int mib)
 
- Public Member Functions inherited from KSelectAction
 KSelectAction (QObject *parent)
 
 KSelectAction (const QString &text, QObject *parent)
 
 KSelectAction (const KIcon &icon, const QString &text, QObject *parent)
 
virtual ~KSelectAction ()
 
QAction * action (int index) const
 
QAction * action (const QString &text, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
 
QList< QAction * > actions () const
 
virtual void addAction (QAction *action)
 
KAction * addAction (const QString &text)
 
KAction * addAction (const KIcon &icon, const QString &text)
 
void changeItem (int index, const QString &text)
 
void clear ()
 
int comboWidth () const
 
QAction * currentAction () const
 
int currentItem () const
 
QString currentText () const
 
bool isEditable () const
 
QStringList items () const
 
bool menuAccelsEnabled () const
 
virtual QAction * removeAction (QAction *action)
 
void removeAllActions ()
 
QActionGroup * selectableActionGroup () const
 
void setComboWidth (int width)
 
bool setCurrentAction (QAction *action)
 
bool setCurrentAction (const QString &text, Qt::CaseSensitivity cs=Qt::CaseSensitive)
 
bool setCurrentItem (int index)
 
void setEditable (bool)
 
void setItems (const QStringList &lst)
 
void setMaxComboViewCount (int n)
 
void setMenuAccelsEnabled (bool b)
 
void setToolBarMode (ToolBarMode mode)
 
void setToolButtonPopupMode (QToolButton::ToolButtonPopupMode mode)
 
ToolBarMode toolBarMode () const
 
QToolButton::ToolButtonPopupMode toolButtonPopupMode () const
 
- Public Member Functions inherited from KAction
 KAction (QObject *parent)
 
 KAction (const QString &text, QObject *parent)
 
 KAction (const KIcon &icon, const QString &text, QObject *parent)
 
virtual ~KAction ()
 
KAuth::Action * authAction () const
 
void forgetGlobalShortcut ()
 
const KShortcut & globalShortcut (ShortcutTypes type=ActiveShortcut) const
 
bool globalShortcutAllowed () const
 
bool isGlobalShortcutEnabled () const
 
bool isShortcutConfigurable () const
 
KRockerGesture rockerGesture (ShortcutTypes type=ActiveShortcut) const
 
void setAuthAction (KAuth::Action *action)
 
void setAuthAction (const QString &actionName)
 
void setGlobalShortcut (const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut), GlobalShortcutLoading loading=Autoloading)
 
void setGlobalShortcutAllowed (bool allowed, GlobalShortcutLoading loading=Autoloading)
 
void setHelpText (const QString &text)
 
void setRockerGesture (const KRockerGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
 
void setShapeGesture (const KShapeGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
 
void setShortcut (const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
 
void setShortcut (const QKeySequence &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
 
void setShortcutConfigurable (bool configurable)
 
void setShortcuts (const QList< QKeySequence > &shortcuts, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
 
KShapeGesture shapeGesture (ShortcutTypes type=ActiveShortcut) const
 
KShortcut shortcut (ShortcutTypes types=ActiveShortcut) const
 
- Public Member Functions inherited from QAction
 QAction (QObject *parent)
 
 QAction (const QString &text, QObject *parent)
 
 QAction (QObject *parent, const char *name)
 
 QAction (const QString &text, const QKeySequence &shortcut, QObject *parent, const char *name)
 
 QAction (const QIcon &icon, const QString &text, QObject *parent)
 
 QAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, QObject *parent, const char *name)
 
 ~QAction ()
 
QKeySequence accel () const
 
QActionGroup * actionGroup () const
 
void activate (ActionEvent event)
 
void activated (int i)
 
bool addTo (QWidget *w)
 
QList< QGraphicsWidget * > associatedGraphicsWidgets () const
 
QList< QWidget * > associatedWidgets () const
 
bool autoRepeat () const
 
void changed ()
 
QVariant data () const
 
QFont font () const
 
void hover ()
 
void hovered ()
 
QIcon icon () const
 
QIcon iconSet () const
 
QString iconText () const
 
bool isCheckable () const
 
bool isChecked () const
 
bool isEnabled () const
 
bool isIconVisibleInMenu () const
 
bool isOn () const
 
bool isSeparator () const
 
bool isToggleAction () const
 
bool isVisible () const
 
QMenu * menu () const
 
MenuRole menuRole () const
 
QString menuText () const
 
QWidget * parentWidget () const
 
Priority priority () const
 
bool removeFrom (QWidget *w)
 
void setAccel (const QKeySequence &shortcut)
 
void setActionGroup (QActionGroup *group)
 
void setAutoRepeat (bool)
 
void setCheckable (bool)
 
void setChecked (bool)
 
void setData (const QVariant &userData)
 
void setDisabled (bool b)
 
void setEnabled (bool)
 
void setFont (const QFont &font)
 
void setIcon (const QIcon &icon)
 
void setIconSet (const QIcon &i)
 
void setIconText (const QString &text)
 
void setIconVisibleInMenu (bool visible)
 
void setMenu (QMenu *menu)
 
void setMenuRole (MenuRole menuRole)
 
void setMenuText (const QString &text)
 
void setOn (bool b)
 
void setPriority (Priority priority)
 
void setSeparator (bool b)
 
void setShortcut (const QKeySequence &shortcut)
 
void setShortcutContext (Qt::ShortcutContext context)
 
void setShortcuts (QKeySequence::StandardKey key)
 
void setShortcuts (const QList< QKeySequence > &shortcuts)
 
void setSoftKeyRole (SoftKeyRole softKeyRole)
 
void setStatusTip (const QString &statusTip)
 
void setText (const QString &text)
 
void setToggleAction (bool b)
 
void setToolTip (const QString &tip)
 
void setVisible (bool)
 
void setWhatsThis (const QString &what)
 
QKeySequence shortcut () const
 
Qt::ShortcutContext shortcutContext () const
 
QList< QKeySequence > shortcuts () const
 
bool showStatusText (QWidget *widget)
 
SoftKeyRole softKeyRole () const
 
QString statusTip () const
 
QString text () const
 
void toggle ()
 
void toggled (bool checked)
 
QString toolTip () const
 
void trigger ()
 
void triggered (bool checked)
 
QString whatsThis () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 
- Public Member Functions inherited from QWidgetAction
 QWidgetAction (QObject *parent)
 
virtual  ~QWidgetAction ()
 
QWidget * defaultWidget () const
 
void releaseWidget (QWidget *widget)
 
QWidget * requestWidget (QWidget *parent)
 
void setDefaultWidget (QWidget *widget)
 

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

KCodecAction::KCodecAction ( QObject *  parent,
bool  showAutoOptions = false 
)
explicit

Definition at line 62 of file kcodecaction.cpp.

KCodecAction::KCodecAction ( const QString &  text,
QObject *  parent,
bool  showAutoOptions = false 
)

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.

KCodecAction::~KCodecAction ( )
virtual

Definition at line 83 of file kcodecaction.cpp.

Member Function Documentation

void KCodecAction::actionTriggered ( QAction *  action)
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.

void KCodecAction::defaultItemTriggered ( )
signal

If showAutoOptions==true, then better handle triggered(KEncodingDetector::AutoDetectScript) signal.

int KCodecAction::mibForName ( const QString &  codecName,
bool *  ok = 0 
) const

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.

bool KCodecAction::setCurrentCodec ( const QString &  codecName)

Definition at line 228 of file kcodecaction.cpp.

bool KCodecAction::setCurrentCodec ( int  mib)

Definition at line 238 of file kcodecaction.cpp.

void KCodecAction::triggered ( QTextCodec *  codec)
signal

Specific (proper) codec was selected.

Note that triggered(const QString&) is emitted too (as defined in KSelectAction)

void KCodecAction::triggered ( KEncodingDetector::AutoDetectScript  )
signal

Autodetection has been selected.

emits KEncodingDetector::SemiautomaticDetection if Default was selected.

Applicable only if showAutoOptions in c'tor was true

Property Documentation

int KCodecAction::codecMib
read

Definition at line 44 of file kcodecaction.h.

QString KCodecAction::codecName
readwrite

Definition at line 43 of file kcodecaction.h.


The documentation for this class was generated from the following files:
  • kcodecaction.h
  • kcodecaction.cpp
This file is part of the KDE documentation.
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.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal