diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kpersonalizer/kospage.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpersonalizer/kospage.h')
-rw-r--r-- | kpersonalizer/kospage.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/kpersonalizer/kospage.h b/kpersonalizer/kospage.h new file mode 100644 index 000000000..05756e887 --- /dev/null +++ b/kpersonalizer/kospage.h @@ -0,0 +1,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(QWidget *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(QString 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 QString&); +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; + QMap<QString, QString> map_AppUserKeys, map_GlobalUserKeys; + // DEFAULT VALLUES SET BY USER (END) +}; +#endif |