2 * TableColorSet.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
12 #ifndef _TableColorSet_h_
13 #define _TableColorSet_h_
23 colors["header"] = QColor(0xa5c2ff);
24 colors["default"] = QColor(0xf3ebae);
25 colors["error"] = QColor(0xff0000);
26 colors["today"] = QColor(0xa387ff);
27 colors["vacation"] = QColor(0xfffc60);
28 colors["available"] = QColor(0xa4ff8d);
29 colors["booked"] = QColor(0xff5a5d);
30 colors["completed"] = QColor(0x87ff75);
34 void setColor(const QString& name, uint value)
36 colors[name] = QColor(value);
38 const QColor getColor(const QString& name) const
42 QString getColorName(const QString& name) const
44 return colors[name].name();
48 QMap<QString, QColor> colors;