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
|
/***************************************************************************
kospage.h - description
-------------------
begin : Tue May 22 2001
copyright : (C) 2001 by Ralf Nolden
email : nolden@kde.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KOSPAGE_H
#define KOSPAGE_H
#include"kospagedlg.h"
/**Abstract class for the second page. Uses save() to change the according settings and applies them.
*@author Ralf Nolden
*/
class KOSPage : public KOSPageDlg {
Q_OBJECT
public:
KOSPage(TQWidget *parent=0, const char *name=0);
~KOSPage();
void save(bool currSettings=true);
void saveCheckState(bool currSettings);
void writeKDE();
void writeUNIX();
void writeWindows();
void writeMacOS();
void writeKeyEntrys(TQString keyfile);
void writeUserKeys();
void writeUserDefaults();
/** retrieve the user's local values */
void getUserDefaults();
void slotMacDescription();
void slotWindowsDescription();
void slotUnixDescription();
void slotKDEDescription();
/** resets the radio button selected to kde */
void setDefaults();
signals: // Signals
/** emits either of: KDE, CDE, win or mac in save() depending
on the selection made by the user. */
void selectedOS(const TQString&);
private:
KConfig* cglobal;
KConfig* claunch;
KConfig* cwin;
KConfig* cdesktop;
KConfig* ckcminput;
KConfig* ckcmdisplay;
KConfig* ckonqueror;
KConfig* cklipper;
KConfig* ckaccess;
// DEFAULT VALUES SET BY USER
bool b_Gestures, b_MacMenuBar, b_SingleClick, b_BusyCursor, b_ShowMenuBar,
b_DesktopUnderline, b_KonqUnderline, b_ChangeCursor, b_syncClipboards;
QString s_TitlebarDCC, s_FocusPolicy, s_AltTabStyle, s_MMB,
s_TitlebarMMB, s_TitlebarRMB;
TQMap<TQString, TQString> map_AppUserKeys, map_GlobalUserKeys;
// DEFAULT VALLUES SET BY USER (END)
};
#endif
|