kopete/kopete
#include <kopetechatwindowstyle.h>
Public Types | |
enum | StyleBuildMode { StyleBuildFast, StyleBuildNormal } |
typedef QHash< QString, QString > | StyleVariants |
Public Member Functions | |
ChatWindowStyle (const QString &styleName, StyleBuildMode styleBuildMode=StyleBuildNormal) | |
ChatWindowStyle (const QString &styleName, const QString &variantPath, StyleBuildMode styleBuildMode=StyleBuildFast) | |
~ChatWindowStyle () | |
QString | compact (const QString &variant) const |
QString | getActionIncomingHtml () const |
QString | getActionOutgoingHtml () const |
QString | getFileTransferIncomingHtml () const |
QString | getFooterHtml () const |
QString | getHeaderHtml () const |
QString | getIncomingHtml () const |
QString | getNextIncomingHtml () const |
QString | getNextOutgoingHtml () const |
QString | getOutgoingHtml () const |
QString | getOutgoingStateErrorHtml () const |
QString | getOutgoingStateSendingHtml () const |
QString | getOutgoingStateSentHtml () const |
QString | getOutgoingStateUnknownHtml () const |
QString | getStatusHtml () const |
QString | getStyleBaseHref () const |
QString | getStyleName () const |
StyleVariants | getVariants () |
QString | getVoiceClipIncomingHtml () const |
bool | hasActionTemplate () const |
bool | hasCompact (const QString &variant) const |
bool | isValid () const |
void | reload () |
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 |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) 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 |
Additional Inherited Members | |
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 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) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
This class represent a single chat window style.
Definition at line 30 of file kopetechatwindowstyle.h.
Member Typedef Documentation
StyleVariants is a typedef to a QHash key = Variant Name value = Path to variant CSS file.
Path is relative to Resources directory.
Definition at line 39 of file kopetechatwindowstyle.h.
Member Enumeration Documentation
This enum specifies the mode of the constructor.
- StyleBuildFast : Build the style the fatest possible
- StyleBuildNormal : List all variants of this style. Require a async dir list.
Enumerator | |
---|---|
StyleBuildFast | |
StyleBuildNormal |
Definition at line 46 of file kopetechatwindowstyle.h.
Constructor & Destructor Documentation
|
explicit |
Build a single chat window style.
Definition at line 60 of file kopetechatwindowstyle.cpp.
ChatWindowStyle::ChatWindowStyle | ( | const QString & | styleName, |
const QString & | variantPath, | ||
StyleBuildMode | styleBuildMode = StyleBuildFast |
||
) |
Definition at line 66 of file kopetechatwindowstyle.cpp.
ChatWindowStyle::~ChatWindowStyle | ( | ) |
Definition at line 93 of file kopetechatwindowstyle.cpp.
Member Function Documentation
Return the compact version of the given style variant.
For the unmodified style, this returns "Variants/_compact_.css"
Definition at line 482 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getActionIncomingHtml | ( | ) | const |
Definition at line 160 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getActionOutgoingHtml | ( | ) | const |
Definition at line 165 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getFileTransferIncomingHtml | ( | ) | const |
Definition at line 170 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getFooterHtml | ( | ) | const |
Definition at line 130 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getHeaderHtml | ( | ) | const |
Definition at line 125 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getIncomingHtml | ( | ) | const |
Definition at line 135 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getNextIncomingHtml | ( | ) | const |
Definition at line 140 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getNextOutgoingHtml | ( | ) | const |
Definition at line 150 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getOutgoingHtml | ( | ) | const |
Definition at line 145 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getOutgoingStateErrorHtml | ( | ) | const |
Definition at line 190 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getOutgoingStateSendingHtml | ( | ) | const |
Definition at line 180 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getOutgoingStateSentHtml | ( | ) | const |
Definition at line 185 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getOutgoingStateUnknownHtml | ( | ) | const |
Definition at line 195 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getStatusHtml | ( | ) | const |
Definition at line 155 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getStyleBaseHref | ( | ) | const |
Get the style resource directory.
Resources directory is the base where all CSS, HTML and images are located.
Adium(and now Kopete too) style directories are disposed like this: StyleName/ Contents/ Resources/
- Returns
- the path to the resource directory.
Definition at line 120 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getStyleName | ( | ) | const |
Get the style path.
The style path points to the directory where the style is located. ex: ~/.kde/share/apps/kopete/styles/StyleName/
- Returns
- the style path based.
Definition at line 115 of file kopetechatwindowstyle.cpp.
ChatWindowStyle::StyleVariants ChatWindowStyle::getVariants | ( | ) |
Get the list of all variants for this theme.
If the variant aren't listed, it call the lister before returning the list of the Variants. If the variant are listed, it just return the cached variant list.
- Returns
- the StyleVariants QMap.
Definition at line 105 of file kopetechatwindowstyle.cpp.
QString ChatWindowStyle::getVoiceClipIncomingHtml | ( | ) | const |
Definition at line 175 of file kopetechatwindowstyle.cpp.
bool ChatWindowStyle::hasActionTemplate | ( | ) | const |
Check if the style has the support for Kopete Action template (Kopete extension)
- Returns
- true if the style has Action template.
Definition at line 200 of file kopetechatwindowstyle.cpp.
bool ChatWindowStyle::hasCompact | ( | const QString & | variant | ) | const |
Check if the supplied variant has a compact form.
Definition at line 474 of file kopetechatwindowstyle.cpp.
bool ChatWindowStyle::isValid | ( | ) | const |
Checks if the style is valid.
Definition at line 99 of file kopetechatwindowstyle.cpp.
void ChatWindowStyle::reload | ( | ) |
Reload style from disk.
Definition at line 467 of file kopetechatwindowstyle.cpp.
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:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.