KDEUI
kcodecaction.cpp
Go to the documentation of this file.
76KCodecAction::KCodecAction(const KIcon &icon, const QString &text, QObject *parent,bool showAutoOptions)
99 KEncodingDetector::AutoDetectScript scri=KEncodingDetector::scriptForName(encodingsForScript.at(0));
QString encodingForName(const QString &descriptiveName) const
QTextCodec * codecForName(const QString &n, bool &ok) const
bool setCurrentCodec(QTextCodec *codec)
Definition: kcodecaction.cpp:196
void defaultItemTriggered()
If showAutoOptions==true, then better handle triggered(KEncodingDetector::AutoDetectScript) signal.
bool setCurrentAutoDetectScript(KEncodingDetector::AutoDetectScript)
Applicable only if showAutoOptions in c'tor was true.
Definition: kcodecaction.cpp:253
int mibForName(const QString &codecName, bool *ok=0) const
Definition: kcodecaction.cpp:117
KCodecAction(QObject *parent, bool showAutoOptions=false)
Definition: kcodecaction.cpp:62
virtual void actionTriggered(QAction *)
Definition: kcodecaction.cpp:161
KEncodingDetector::AutoDetectScript currentAutoDetectScript() const
Applicable only if showAutoOptions in c'tor was true.
Definition: kcodecaction.cpp:246
static AutoDetectScript scriptForName(const QString &lang)
AutoDetectScript
SemiautomaticDetection
static bool hasAutoDetectionForScript(AutoDetectScript)
virtual void addAction(QAction *action)
Add action to the list of selectable actions.
Definition: kselectaction.cpp:230
bool setCurrentAction(QAction *action)
Sets the currently checked item.
Definition: kselectaction.cpp:133
QList< QAction * > actions() const
Returns the list of selectable actions.
Definition: kselectaction.cpp:110
#define kWarning
QString i18nc(const char *ctxt, const char *text)
KCharsets * charsets()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.