summaryrefslogtreecommitdiffstats
path: root/malloryclient/pixmaps.h
blob: 6532c6ed373e8be787323a58f284d61c03d8b233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
//
// Author: Remi Villatel <maxilys@tele2.fr>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef PIXMAPS_H
#define PIXMAPS_H

#include <qpixmap.h>
#include <qpainter.h>
#include <qimage.h>


class Pixmaps
{
public:
	static QPixmap *active_titlebar;
	static QPixmap *active_titlebar_left;
	static QPixmap *active_titlebar_right;
	static QPixmap *inactive_titlebar;
	static QPixmap *inactive_titlebar_left;
	static QPixmap *inactive_titlebar_right;

	static QPixmap *active_button_ground;
	static QPixmap *inactive_button_ground;

	static QImage *active_help_normal;
	static QImage *active_max_normal;
	static QImage *active_restore_normal;
	static QImage *active_min_normal;
	static QImage *active_close_normal;
	static QImage *active_sticky_normal;
	static QImage *active_unsticky_normal;
	static QImage *active_above_normal;
	static QImage *active_below_normal;

	static QImage *active_help_hover;
	static QImage *active_max_hover;
	static QImage *active_restore_hover;
	static QImage *active_min_hover;
	static QImage *active_close_hover;
	static QImage *active_sticky_hover;
	static QImage *active_unsticky_hover;
	static QImage *active_above_hover;
	static QImage *active_below_hover;

	static QImage *active_help_sunken;
	static QImage *active_max_sunken;
	static QImage *active_restore_sunken;
	static QImage *active_min_sunken;
	static QImage *active_close_sunken;
	static QImage *active_sticky_sunken;
	static QImage *active_unsticky_sunken;
	static QImage *active_above_sunken;
	static QImage *active_below_sunken;

	static QImage *inactive_help_normal;
	static QImage *inactive_max_normal;
	static QImage *inactive_restore_normal;
	static QImage *inactive_min_normal;
	static QImage *inactive_close_normal;
	static QImage *inactive_sticky_normal;
	static QImage *inactive_unsticky_normal;
	static QImage *inactive_above_normal;
	static QImage *inactive_below_normal;

	static QImage *inactive_help_hover;
	static QImage *inactive_max_hover;
	static QImage *inactive_restore_hover;
	static QImage *inactive_min_hover;
	static QImage *inactive_close_hover;
	static QImage *inactive_sticky_hover;
	static QImage *inactive_unsticky_hover;
	static QImage *inactive_above_hover;
	static QImage *inactive_below_hover;

	static QImage *inactive_help_sunken;
	static QImage *inactive_max_sunken;
	static QImage *inactive_restore_sunken;
	static QImage *inactive_min_sunken;
	static QImage *inactive_close_sunken;
	static QImage *inactive_sticky_sunken;
	static QImage *inactive_unsticky_sunken;
	static QImage *inactive_above_sunken;
	static QImage *inactive_below_sunken;

	static bool pixmapsCreated;

	static void createPixmaps();
	static void deletePixmaps();

	static void drawGround(QPainter* painter, bool active = true);

	static void unicity(int* alias, QImage& work, int rr, int gg, int bb, int offset);
};

#endif