19 #include <QtCore/qmap.h>
20 #include <QtCore/qobject.h>
21 #include <QtCore/qstring.h>
22 #include <QtCore/qmetatype.h>
23 #include <QtCore/qscopedpointer.h>
27 class IrcPalettePrivate;
32 Q_PROPERTY(
QString white READ white WRITE setWhite)
33 Q_PROPERTY(
QString black READ black WRITE setBlack)
34 Q_PROPERTY(
QString blue READ blue WRITE setBlue)
35 Q_PROPERTY(
QString green READ green WRITE setGreen)
36 Q_PROPERTY(
QString red READ red WRITE setRed)
37 Q_PROPERTY(
QString brown READ brown WRITE setBrown)
38 Q_PROPERTY(
QString purple READ purple WRITE setPurple)
39 Q_PROPERTY(
QString orange READ orange WRITE setOrange)
40 Q_PROPERTY(
QString yellow READ yellow WRITE setYellow)
41 Q_PROPERTY(
QString lightGreen READ lightGreen WRITE setLightGreen)
42 Q_PROPERTY(
QString cyan READ cyan WRITE setCyan)
43 Q_PROPERTY(
QString lightCyan READ lightCyan WRITE setLightCyan)
44 Q_PROPERTY(
QString lightBlue READ lightBlue WRITE setLightBlue)
45 Q_PROPERTY(
QString pink READ pink WRITE setPink)
46 Q_PROPERTY(
QString gray READ gray WRITE setGray)
47 Q_PROPERTY(
QString lightGray READ lightGray WRITE setLightGray)
59 void setWhite(const
QString& color);
62 void setBlack(const
QString& color);
65 void setBlue(const
QString& color);
68 void setGreen(const
QString& color);
71 void setRed(const
QString& color);
74 void setBrown(const
QString& color);
77 void setPurple(const
QString& color);
80 void setOrange(const
QString& color);
83 void setYellow(const
QString& color);
86 void setLightGreen(const
QString& color);
89 void setCyan(const
QString& color);
92 void setLightCyan(const
QString& color);
95 void setLightBlue(const
QString& color);
98 void setPink(const
QString& color);
101 void setGray(const
QString& color);
104 void setLightGray(const
QString& color);
111 Q_DECLARE_PRIVATE(IrcPalette)
112 Q_DISABLE_COPY(IrcPalette)
117 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcPalette*))
119 #endif // IRCPALETTE_H
Provides methods for text formatting.
Definition: irctextformat.h:29
QMap< int, QString > colorNames() const
Definition: ircpalette.cpp:466
void setColorName(int color, const QString &name)
Definition: ircpalette.cpp:505
QString colorName(int color, const QString &fallback=QLatin1String("black")) const
Definition: ircpalette.cpp:485
Specifies a palette of IRC colors.
Definition: ircpalette.h:29
void setColorNames(const QMap< int, QString > &names)
Definition: ircpalette.cpp:475