aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldisplay.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/llpaneldisplay.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/llpaneldisplay.h')
-rw-r--r--linden/indra/newview/llpaneldisplay.h159
1 files changed, 159 insertions, 0 deletions
diff --git a/linden/indra/newview/llpaneldisplay.h b/linden/indra/newview/llpaneldisplay.h
new file mode 100644
index 0000000..ed711c5
--- /dev/null
+++ b/linden/indra/newview/llpaneldisplay.h
@@ -0,0 +1,159 @@
1/**
2 * @file llpaneldisplay.h
3 * @brief Display preferences for the preferences floater
4 *
5 * Copyright (c) 2001-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#ifndef LL_LLPANELDISPLAY_H
29#define LL_LLPANELDISPLAY_H
30
31#include "llpanel.h"
32
33class LLSlider;
34class LLSpinCtrl;
35class LLCheckBoxCtrl;
36class LLRadioGroup;
37class LLComboBox;
38class LLLineEditor;
39class LLSliderCtrl;
40
41class LLPanelDisplay
42: public LLPanel
43{
44 friend class LLPreferenceCore;
45
46public:
47 LLPanelDisplay();
48 virtual ~LLPanelDisplay();
49
50 virtual BOOL postBuild();
51 void refresh(); // Refresh enable/disable
52 void apply(); // Apply the changed values.
53 void applyResolution();
54 void cancel();
55
56protected:
57 LLComboBox *mCtrlFullScreen; // Fullscreen resolution
58 LLCheckBoxCtrl *mCtrlWindowed; // windowed mode
59 LLCheckBoxCtrl *mCtrlAutoDetectAspect; // automatically detect aspect ratio
60 LLComboBox *mCtrlAspectRatio; // user provided aspect ratio
61
62 BOOL mFSAutoDetectAspect;
63 F32 mUIScaleFactor;
64 BOOL mUIAutoScale;
65 BOOL mFirstPersonAvatarVisible;
66 F32 mRenderFarClip;
67 F32 mAspectRatio;
68 static void onCommitAutoDetectAspect(LLUICtrl *ctrl, void *data);
69 static void onKeystrokeAspectRatio(LLLineEditor* caller, void* user_data);
70 static void onSelectAspectRatio(LLUICtrl*, void*);
71 static void onCommitWindowedMode(LLUICtrl* ctrl, void *data);
72 static void onApplyResolution(LLUICtrl* ctrl, void* data);
73
74 // helper function
75 static void fractionFromDecimal(F32 decimal_val, S32& numerator, S32& denominator);
76};
77
78class LLPanelDisplay2 : public LLPanel
79{
80 friend class LLPreferenceCore;
81
82public:
83 LLPanelDisplay2();
84 virtual ~LLPanelDisplay2();
85
86 virtual BOOL postBuild();
87 void refresh(); // Refresh enable/disable
88 void apply(); // Apply the changed values.
89 void cancel();
90 void refreshEnabledState();
91
92protected:
93 LLCheckBoxCtrl *mCtrlAnisotropic; // Anisitropic filtering
94 LLSpinCtrl *mCtrlGamma;
95 LLSpinCtrl *mCtrlNighttimeBrightness; // user adjusted nighttime brightness ([0.0, 2.0] 1.0 = normal)
96 LLCheckBoxCtrl *mCtrlUseAGP; // Use AGP if available
97 LLSpinCtrl *mCtrlFogRatio; // Fig distance / draw distance ratio
98 LLSpinCtrl *mCtrlParticles; // Max number of particles
99 LLSpinCtrl *mCtrlCompositeLimit; // Max num non-self avatars that can be composited
100
101 LLRadioGroup* mRadioVideoCardMem;
102
103 BOOL mUseAGP;
104 BOOL mUseAniso;
105 F32 mGamma;
106 F32 mBrightness;
107 S32 mVideoCardMem;
108 F32 mFogRatio;
109 S32 mParticleCount;
110 S32 mCompositeLimit;
111
112};
113
114class LLPanelDisplay3 : public LLPanel
115{
116 friend class LLPreferenceCore;
117
118public:
119 LLPanelDisplay3();
120 virtual ~LLPanelDisplay3();
121
122 virtual BOOL postBuild();
123 void refresh(); // Refresh enable/disable
124 void apply(); // Apply the changed values.
125 void setDefaults();
126 void cancel();
127 void refreshEnabledState();
128 static void onVertexShaderEnable(LLUICtrl*, void*);
129
130protected:
131 LLCheckBoxCtrl *mCtrlBumpShiny;
132 LLCheckBoxCtrl *mCtrlRippleWater;
133 LLCheckBoxCtrl *mCtrlAvatarVP;
134 LLRadioGroup *mCtrlAvatarMode;
135 LLRadioGroup *mRadioLightingDetail2;
136
137 LLRadioGroup *mRadioTerrainDetail;
138
139 LLSlider *mCtrlLODFactor; // LOD for volume objects
140 LLSlider *mCtrlFlexFactor; // Timeslice for flexible objects
141 LLSlider *mCtrlTreeFactor; // Control tree cutoff distance
142 LLSlider *mCtrlAvatarFactor; // LOD for avatars
143
144 BOOL mBumpShiny;
145 BOOL mRippleWater;
146 BOOL mAvatarVP;
147 S32 mAvatarMode;
148 S32 mLightingDetail;
149 S32 mTerrainDetail;
150 F32 mPrimLOD;
151 F32 mFlexLOD;
152 F32 mTreeLOD;
153 F32 mAvatarLOD;
154
155};
156
157const S32 LL_MAX_VRAM_INDEX = 6;
158
159#endif