aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterpreference.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llfloaterpreference.h
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.h')
-rw-r--r--linden/indra/newview/llfloaterpreference.h125
1 files changed, 125 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterpreference.h b/linden/indra/newview/llfloaterpreference.h
new file mode 100644
index 0000000..70e8fb3
--- /dev/null
+++ b/linden/indra/newview/llfloaterpreference.h
@@ -0,0 +1,125 @@
1/**
2 * @file llfloaterpreference.h
3 * @brief LLPreferenceCore class definition
4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 *
7 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28/*
29 * App-wide preferences. Note that these are not per-user,
30 * because we need to load many preferences before we have
31 * a login name.
32 */
33
34#ifndef LL_LLFLOATERPREFERENCE_H
35#define LL_LLFLOATERPREFERENCE_H
36
37#include "llfloater.h"
38#include "lltabcontainervertical.h"
39
40class LLPanelGeneral;
41class LLPanelInput;
42class LLPanelDisplay;
43class LLPanelDisplay2;
44class LLPanelDisplay3;
45class LLPanelAudioPrefs;
46class LLPanelDebug;
47class LLPanelNetwork;
48class LLMessageSystem;
49class LLPrefsChat;
50class LLPrefsIM;
51class LLPanelMsgs;
52//class LLPanelWeb; // Web prefs removed from Loopy build
53class LLScrollListCtrl;
54
55class LLPreferenceCore
56{
57
58public:
59 LLPreferenceCore(LLTabContainerCommon* tab_container, LLButton * default_btn);
60
61 void apply();
62 void cancel();
63
64 LLTabContainerCommon* getTabContainer() { return mTabContainer; }
65
66 void setPersonalInfo(
67 const char* visibility,
68 BOOL im_via_email,
69 const char* email);
70
71 static void onTabChanged(void* user_data, bool from_click);
72
73private:
74 LLTabContainerCommon *mTabContainer;
75 LLPanelGeneral *mGeneralPanel;
76 LLPanelInput *mInputPanel;
77 LLPanelNetwork *mNetworkPanel;
78 LLPanelDisplay *mDisplayPanel;
79 LLPanelDisplay2 *mDisplayPanel2;
80 LLPanelDisplay3 *mDisplayPanel3;
81 LLPanelAudioPrefs *mAudioPanel;
82// LLPanelDebug *mDebugPanel;
83 LLPrefsChat *mPrefsChat;
84 LLPrefsIM *mPrefsIM;
85 LLPanelMsgs *mMsgPanel;
86// LLPanelWeb* mWebPanel;
87};
88
89// Floater to control preferences (display, audio, bandwidth, general.
90class LLFloaterPreference : public LLFloater
91{
92public:
93 LLFloaterPreference();
94 ~LLFloaterPreference();
95
96 void apply();
97 void cancel();
98 virtual BOOL postBuild();
99 static void show(void*);
100
101 // static data update, called from message handler
102 static void updateUserInfo(
103 const char* visibility,
104 BOOL im_via_email,
105 const char* email);
106
107protected:
108 LLPreferenceCore *mPreferenceCore;
109
110 /*virtual*/ void draw();
111
112 LLButton* mAboutBtn;
113 LLButton *mOKBtn;
114 LLButton *mCancelBtn;
115 LLButton *mApplyBtn;
116
117 static void onClickAbout(void*);
118 static void onBtnOK(void*);
119 static void onBtnCancel(void*);
120 static void onBtnApply(void*);
121
122 static LLFloaterPreference* sInstance;
123};
124
125#endif // LL_LLPREFERENCEFLOATER_H