KCodecAction Class Reference
from PyKDE4.kdeui import *
Inherits: KSelectAction → KAction → QWidgetAction → QAction → QObject
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.
Signals |
| defaultItemTriggered () |
| triggered (QTextCodec codec) |
| triggered (QString a0) |
| triggered (KEncodingDetector.AutoDetectScript a0) |
Methods |
| __init__ (self, QObject parent, bool showAutoOptions=0) |
| __init__ (self, QString text, QObject parent, bool showAutoOptions=0) |
| __init__ (self, KIcon icon, QString text, QObject parent, bool showAutoOptions=0) |
| actionTriggered (self, QAction a0) |
QTextCodec | codecForMib (self, int mib) |
KEncodingDetector.AutoDetectScript | currentAutoDetectScript (self) |
QTextCodec | currentCodec (self) |
int | currentCodecMib (self) |
QString | currentCodecName (self) |
| defaultItemTriggered (self) |
int, bool (ok) | mibForName (self, QString codecName, ) |
bool | setCurrentAutoDetectScript (self, KEncodingDetector.AutoDetectScript a0) |
bool | setCurrentCodec (self, QTextCodec codec) |
bool | setCurrentCodec (self, QString codecName) |
bool | setCurrentCodec (self, int mib) |
| triggered (self, QTextCodec codec) |
| triggered (self, QString a0) |
| triggered (self, KEncodingDetector.AutoDetectScript a0) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QObject |
parent, |
|
|
bool |
showAutoOptions=0 |
|
) |
|
|
|
__init__ |
( |
self, |
|
|
|
QString |
text, |
|
|
QObject |
parent, |
|
|
bool |
showAutoOptions=0 |
|
) |
|
|
|
actionTriggered |
( |
self, |
|
|
|
QAction |
a0 |
|
) |
|
|
|
KEncodingDetector.AutoDetectScript currentAutoDetectScript |
( |
|
self ) |
|
Applicable only if showAutoOptions in c'tor was true
- Returns:
- KEncodingDetector.None if specific encoding is selected, not autodetection, otherwise... you know it!
int currentCodecMib |
( |
|
self ) |
|
defaultItemTriggered |
( |
|
self ) |
|
If showAutoOptions==true, then better handle triggered(KEncodingDetector.AutoDetectScript) signal
- Signal syntax:
QObject.connect(source, SIGNAL("defaultItemTriggered()"), target_slot)
int, bool (ok) mibForName |
( |
self, |
|
|
|
QString |
codecName, |
|
) |
|
|
|
bool setCurrentAutoDetectScript |
( |
self, |
|
|
|
KEncodingDetector.AutoDetectScript |
a0 |
|
) |
|
|
|
Applicable only if showAutoOptions in c'tor was true
KEncodingDetector.SemiautomaticDetection means 'Default' item
bool setCurrentCodec |
( |
self, |
|
|
|
QString |
codecName |
|
) |
|
|
|
bool setCurrentCodec |
( |
self, |
|
|
|
int |
mib |
|
) |
|
|
|
Specific (proper) codec was selected
- Signal syntax:
QObject.connect(source, SIGNAL("triggered(QTextCodec*)"), target_slot)
Specific (proper) codec was selected
- Returns:
- codec name
- Signal syntax:
QObject.connect(source, SIGNAL("triggered(const QString&)"), target_slot)
triggered |
( |
self, |
|
|
|
KEncodingDetector.AutoDetectScript |
a0 |
|
) |
|
|
|
Autodetection has been selected.
emits KEncodingDetector.SemiautomaticDetection if Default was selected.
Applicable only if showAutoOptions in c'tor was true
- Signal syntax:
QObject.connect(source, SIGNAL("triggered(AutoDetectScript)"), target_slot)