blob: 9ea5ab9695c5bdb7868d5ff9e6362d586f2fdffc (
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
|
/* $Id: Config.h,v 1.13 2006/10/24 07:49:50 whot Exp $ */
/*--
--*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include <X11/Xlib.h>
#include <vector>
#include "ConfigurationError.h"
#include "logger.h"
#include "XConn.h"
#include "DockApp.h"
using namespace std;
#ifndef IMAGEPATH
#define IMAGEPATH "../images/"
#endif
class DockApp;
class Config
{
private:
XConn* x11;
public:
char* imgBackground;
char* kbdImage;
char* crsImage;
int idXOffset;
int idYOffset;
int idFontSize;
int clientOffset;
int windowBarHeight;
int resizeBarHeight;
int resizeButtonWidth;
int resizeButtonHeight;
int buttonWidth;
int buttonHeight;
int buttonCloseX;
int buttonCloseY;
int buttonFloorX;
int buttonFloorY;
int buttonOverlayX;
int buttonOverlayY;
int buttonOwnerX;
int buttonOwnerY;
int buttonMinimizeX;
int buttonMinimizeY;
int drawLineWidth;
int eraseLineWidth;
vector<DockApp*> apps;
protected:
static Config* instance;
public:
static Config* getInstance();
static void init(XConn* x11);
long cursorColor(int cursor);
protected:
Config(XConn* x11);
};
#endif
|