diff options
author | Jacek Antonelli | 2009-04-30 13:04:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-30 13:07:16 -0500 |
commit | ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch) | |
tree | 8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llfloatertest.cpp | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2 meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz |
Second Life viewer sources 1.23.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatertest.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/linden/indra/newview/llfloatertest.cpp b/linden/indra/newview/llfloatertest.cpp index 9789d10..e9aada3 100644 --- a/linden/indra/newview/llfloatertest.cpp +++ b/linden/indra/newview/llfloatertest.cpp | |||
@@ -18,7 +18,8 @@ | |||
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | 23 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -119,13 +120,13 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
119 | LLStringUtil::null, | 120 | LLStringUtil::null, |
120 | onClickButton, this); | 121 | onClickButton, this); |
121 | btn->setFollows(FOLLOWS_LEFT|FOLLOWS_TOP); | 122 | btn->setFollows(FOLLOWS_LEFT|FOLLOWS_TOP); |
122 | btn->setFont(LLFontGL::sSansSerifSmall); | 123 | btn->setFont(LLFontGL::getFontSansSerifSmall()); |
123 | addChild(btn); | 124 | addChild(btn); |
124 | 125 | ||
125 | text = new LLTextBox(std::string("simple_text"), | 126 | text = new LLTextBox(std::string("simple_text"), |
126 | std::string("simple sans-serif text that is mouse opaque opaque opaque"), | 127 | std::string("simple sans-serif text that is mouse opaque opaque opaque"), |
127 | 50, // max_width | 128 | 50, // max_width |
128 | LLFontGL::sSansSerifSmall, | 129 | LLFontGL::getFontSansSerifSmall(), |
129 | TRUE); // mouse_opaque | 130 | TRUE); // mouse_opaque |
130 | text->setClickedCallback(onClickText); | 131 | text->setClickedCallback(onClickText); |
131 | text->setRect(LLRect(LEFT, y, RIGHT, y-LINE)); | 132 | text->setRect(LLRect(LEFT, y, RIGHT, y-LINE)); |
@@ -138,13 +139,13 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
138 | LLStringUtil::null, | 139 | LLStringUtil::null, |
139 | onClickButton, this); | 140 | onClickButton, this); |
140 | btn->setFollows(FOLLOWS_LEFT|FOLLOWS_TOP); | 141 | btn->setFollows(FOLLOWS_LEFT|FOLLOWS_TOP); |
141 | btn->setFont(LLFontGL::sSansSerifSmall); | 142 | btn->setFont(LLFontGL::getFontSansSerifSmall()); |
142 | addChild(btn); | 143 | addChild(btn); |
143 | 144 | ||
144 | text = new LLTextBox(std::string("simple2_text"), | 145 | text = new LLTextBox(std::string("simple2_text"), |
145 | LLRect(LEFT, y, RIGHT, y-LINE), | 146 | LLRect(LEFT, y, RIGHT, y-LINE), |
146 | std::string("monospaced, non-opaque text with tooltip, non-opaque non-opaque"), | 147 | std::string("monospaced, non-opaque text with tooltip, non-opaque non-opaque"), |
147 | LLFontGL::sMonospace, | 148 | LLFontGL::getFontMonospace(), |
148 | FALSE); // mouse_opaque | 149 | FALSE); // mouse_opaque |
149 | text->setToolTip(std::string("I'm a tooltip")); | 150 | text->setToolTip(std::string("I'm a tooltip")); |
150 | addChild(text); | 151 | addChild(text); |
@@ -174,7 +175,7 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
174 | text = new LLTextBox(std::string("unicode_text"), | 175 | text = new LLTextBox(std::string("unicode_text"), |
175 | LLRect(LEFT, y, RIGHT, y-LINE), | 176 | LLRect(LEFT, y, RIGHT, y-LINE), |
176 | std::string("File"), | 177 | std::string("File"), |
177 | LLFontGL::sSansSerif, | 178 | LLFontGL::getFontSansSerif(), |
178 | TRUE); // mouse_opaque | 179 | TRUE); // mouse_opaque |
179 | text->setToolTip(std::string("This should be Unicode text")); | 180 | text->setToolTip(std::string("This should be Unicode text")); |
180 | panel->addChild(text); | 181 | panel->addChild(text); |
@@ -193,7 +194,7 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
193 | std::string("tool_zoom_active.tga"), | 194 | std::string("tool_zoom_active.tga"), |
194 | LLStringUtil::null, | 195 | LLStringUtil::null, |
195 | onClickButton, this, | 196 | onClickButton, this, |
196 | LLFontGL::sSansSerifSmall); | 197 | LLFontGL::getFontSansSerifSmall()); |
197 | btn->setFollows(FOLLOWS_LEFT | FOLLOWS_TOP); | 198 | btn->setFollows(FOLLOWS_LEFT | FOLLOWS_TOP); |
198 | panel->addChild(btn); | 199 | panel->addChild(btn); |
199 | 200 | ||
@@ -202,7 +203,7 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
202 | check = new LLCheckBoxCtrl(std::string("simple_check"), | 203 | check = new LLCheckBoxCtrl(std::string("simple_check"), |
203 | LLRect(LEFT, y, LEFT+150, y-LLCHECKBOXCTRL_HEIGHT), | 204 | LLRect(LEFT, y, LEFT+150, y-LLCHECKBOXCTRL_HEIGHT), |
204 | std::string("Simple Checkbox"), | 205 | std::string("Simple Checkbox"), |
205 | LLFontGL::sSansSerifSmall, | 206 | LLFontGL::getFontSansSerifSmall(), |
206 | onCommitCheck, this, | 207 | onCommitCheck, this, |
207 | TRUE, // initial_value | 208 | TRUE, // initial_value |
208 | FALSE, // radio_style | 209 | FALSE, // radio_style |
@@ -214,7 +215,7 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
214 | check = new LLCheckBoxCtrl(std::string("unicode_check"), | 215 | check = new LLCheckBoxCtrl(std::string("unicode_check"), |
215 | LLRect(LEFT, y, LEFT+150, y-LLCHECKBOXCTRL_HEIGHT), | 216 | LLRect(LEFT, y, LEFT+150, y-LLCHECKBOXCTRL_HEIGHT), |
216 | std::string("TODO: Unicode Checkbox"), | 217 | std::string("TODO: Unicode Checkbox"), |
217 | LLFontGL::sSansSerifSmall, | 218 | LLFontGL::getFontSansSerifSmall(), |
218 | onCommitCheck, this, | 219 | onCommitCheck, this, |
219 | TRUE, // initial_value | 220 | TRUE, // initial_value |
220 | FALSE, // radio_style | 221 | FALSE, // radio_style |
@@ -249,7 +250,7 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
249 | std::string("test_line"), | 250 | std::string("test_line"), |
250 | LLRect(LEFT, y, LEFT+200, y-20), | 251 | LLRect(LEFT, y, LEFT+200, y-20), |
251 | std::string("test some unicode text here"), | 252 | std::string("test some unicode text here"), |
252 | LLFontGL::sSansSerif, | 253 | LLFontGL::getFontSansSerif(), |
253 | 200, // max_length_bytes | 254 | 200, // max_length_bytes |
254 | onCommitLine, | 255 | onCommitLine, |
255 | onKeyLine, | 256 | onKeyLine, |
@@ -269,11 +270,11 @@ LLFloaterTestImpl::LLFloaterTestImpl() | |||
269 | panel->addChild(group); | 270 | panel->addChild(group); |
270 | 271 | ||
271 | S32 yy = 100; | 272 | S32 yy = 100; |
272 | group->addRadioButton(std::string("Radio1"), std::string("Radio 1"), LLRect(0, yy, 200, yy-LINE), LLFontGL::sSansSerifSmall); | 273 | group->addRadioButton(std::string("Radio1"), std::string("Radio 1"), LLRect(0, yy, 200, yy-LINE), LLFontGL::getFontSansSerifSmall()); |
273 | yy -= LINE; | 274 | yy -= LINE; |
274 | group->addRadioButton(std::string("Radio2"), std::string("Radio 2"), LLRect(0, yy, 200, yy-LINE), LLFontGL::sSansSerifSmall); | 275 | group->addRadioButton(std::string("Radio2"), std::string("Radio 2"), LLRect(0, yy, 200, yy-LINE), LLFontGL::getFontSansSerifSmall()); |
275 | yy -= LINE; | 276 | yy -= LINE; |
276 | group->addRadioButton(std::string("Radio3"), std::string("Radio 3"), LLRect(0, yy, 200, yy-LINE), LLFontGL::sSansSerifSmall); | 277 | group->addRadioButton(std::string("Radio3"), std::string("Radio 3"), LLRect(0, yy, 200, yy-LINE), LLFontGL::getFontSansSerifSmall()); |
277 | yy -= LINE; | 278 | yy -= LINE; |
278 | 279 | ||
279 | //----------------------------------------------------------------------- | 280 | //----------------------------------------------------------------------- |