summaryrefslogtreecommitdiffstats
path: root/src/komposepreferences.h
blob: 352272da0bcbebeb6105a5a6ea918df2fc178eed (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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
//
// C++ Interface: komposepreferences
//
// Description:
//
//
// Author: Hans Oischinger <hans.oischinger@kde-mail.net>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KOMPOSEPREFERENCES_H
#define KOMPOSEPREFERENCES_H

#include <kdialogbase.h>

#include <tdelocale.h>

class TQCheckBox;
class TQFrame;
class TQSpinBox;
class KColorButton;
class TQButtonGroup;
class TQSlider;
class TQPushButton;
class TQFont;
class TQRadioButton;
class TQComboBox;

/**
@author Hans Oischinger
*/
class KomposePreferences : public KDialogBase
{
  Q_OBJECT
public:
  KomposePreferences();

  ~KomposePreferences();


protected:
  void fillPages();

protected slots:
  void slotApply();
  void slotOk();
  void updateIconSliderDesc( int );
  void showDesktopTitleFontDialog();
  void showWindowTitleFontDialog();
  void setUseCompositeToggled( bool );

private:
  bool m_hasXinerama;
  TQFrame *page1;
  TQFrame *page2;

  TQButtonGroup *defaultViewBtnGroup;
  TQRadioButton *defaultViewWorld;
  TQRadioButton *defaultViewVirtualDesks;
  TQRadioButton *defaultViewCurrentDesk;

  TQCheckBox *useComposite;

  TQCheckBox *passiveScreenshots;
  TQCheckBox *dynamicVirtDeskLayout;
  TQCheckBox *cacheScaledPixmaps;

  TQCheckBox *imageEffects;
  TQCheckBox *blurBackground;

  TQSpinBox *screenshotGrabDelay;

  TQCheckBox *showIcons;
  TQSlider *iconSize;
  TQLabel *iconSizeDescription;

  TQCheckBox *showWindowTitles;
  TQPushButton *windowTitleFontBtn;
  TQFont *windowTitleFont;

  TQLabel *windowBorderActiveColorLabel;
  TQLabel *windowBorderInactiveColorLabel;
  TQLabel *windowBorderActiveStyleLabel;
  TQLabel *windowBorderInactiveStyleLabel;
  KColorButton *windowBorderActiveColor;
  KColorButton *windowBorderInactiveColor;
  TQComboBox *windowBorderActiveStyle;
  TQComboBox *windowBorderInactiveStyle;
  TQSpinBox *windowBorderActiveWidth;
  TQSpinBox *windowBorderInactiveWidth;

  KColorButton *windowTitleFontColor;
  TQCheckBox *showWindowTitleShadow;
  KColorButton *windowTitleFontShadowColor;
  TQLabel *windowTitleFontColorLabel;

  TQPushButton *desktopTitleFontBtn;
  TQLabel *desktopTitleFontColorLabel;
  TQLabel *desktopTitleFontHighlightColorLabel;
  KColorButton *desktopTitleFontColor;
  KColorButton *desktopTitleFontHighlightColor;
  TQFont *desktopTitleFont;

  TQCheckBox *m_topLeftCorner;
  TQCheckBox *m_bottomLeftCorner;
  TQCheckBox *m_topRightCorner;
  TQCheckBox *m_bottomRightCorner;

  TQCheckBox *m_topEdge;
  TQCheckBox *m_bottomEdge;
  TQCheckBox *m_rightEdge;
  TQCheckBox *m_leftEdge;
  TQSpinBox *autoLockDelay;

  TQCheckBox *showDesktopNum;

  TQSpinBox *m_viewScreen;
  TQCheckBox *m_viewScreenAll;
};

#endif