summaryrefslogtreecommitdiffstats
path: root/malloryclient/malloryhandler.h
blob: 5865a0932b2f474f1f4cb7b9e08e7580f4c1e6c5 (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
//
// C++ Interface: malloryhandler
//
// Description:
//
//
// Author: Remi Villatel <[email protected]>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef MALLORYHANDLER_H
#define MALLORYHANDLER_H

#include <kdecorationfactory.h>
#include <kdecoration.h>
#include <tqobject.h>
#include <tdeconfig.h>

// Default button layout
const char default_left[]  = "M";
const char default_right[] = "HIAX";

class MalloryHandler : public TQObject, public KDecorationFactory
{
TQ_OBJECT
public:
	MalloryHandler();
	~MalloryHandler();
	virtual bool reset(unsigned long changed);

	virtual KDecoration* createDecoration(KDecorationBridge*);

	static bool initialized() { return m_initialized; }
	static bool titleShadow() { return m_titleShadow; }
	static int titleShadowSize() { return m_titleShadowSize; }
	static int borderSize() { return m_borderSize; }
	static int buttonSize() { return m_buttonSize; }
	static int buttonStyle() { return m_buttonStyle; }
	static int buttonSpacing() { return m_buttonSpacing; }
	static int titleSize() { return m_titleSize; }
	static bool lessRounded() { return m_lessRounded; }
	static bool resizeHandle() { return m_resizeHandle; }
	static bool superSize() { return m_superSize; }

private:
	void readConfig();
	static bool m_titleShadow;
	static int m_titleShadowSize;
	static int m_borderSize;
	static int m_buttonSize;
	static int m_buttonStyle;
	static int m_titleSize;
	static int m_buttonSpacing;
	static bool m_initialized;
	static bool m_lessRounded;
	static bool m_resizeHandle;
	static bool m_superSize;
};

#endif