diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/llscrollbar.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llscrollbar.cpp | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/linden/indra/llui/llscrollbar.cpp b/linden/indra/llui/llscrollbar.cpp index 3d412c1..b011325 100644 --- a/linden/indra/llui/llscrollbar.cpp +++ b/linden/indra/llui/llscrollbar.cpp | |||
@@ -41,15 +41,13 @@ | |||
41 | #include "llcriticaldamp.h" | 41 | #include "llcriticaldamp.h" |
42 | #include "llkeyboard.h" | 42 | #include "llkeyboard.h" |
43 | #include "llui.h" | 43 | #include "llui.h" |
44 | //#include "llviewerimagelist.h" | ||
45 | #include "llfocusmgr.h" | 44 | #include "llfocusmgr.h" |
46 | #include "llwindow.h" | 45 | #include "llwindow.h" |
47 | #include "llglheaders.h" | ||
48 | #include "llcontrol.h" | 46 | #include "llcontrol.h" |
49 | #include "llrender.h" | 47 | #include "llrender.h" |
50 | 48 | ||
51 | LLScrollbar::LLScrollbar( | 49 | LLScrollbar::LLScrollbar( |
52 | const LLString& name, LLRect rect, | 50 | const std::string& name, LLRect rect, |
53 | LLScrollbar::ORIENTATION orientation, | 51 | LLScrollbar::ORIENTATION orientation, |
54 | S32 doc_size, S32 doc_pos, S32 page_size, | 52 | S32 doc_size, S32 doc_pos, S32 page_size, |
55 | void (*change_callback)( S32 new_pos, LLScrollbar* self, void* userdata ), | 53 | void (*change_callback)( S32 new_pos, LLScrollbar* self, void* userdata ), |
@@ -84,10 +82,10 @@ LLScrollbar::LLScrollbar( | |||
84 | 82 | ||
85 | // Page up and page down buttons | 83 | // Page up and page down buttons |
86 | LLRect line_up_rect; | 84 | LLRect line_up_rect; |
87 | LLString line_up_img; | 85 | std::string line_up_img; |
88 | LLString line_up_selected_img; | 86 | std::string line_up_selected_img; |
89 | LLString line_down_img; | 87 | std::string line_down_img; |
90 | LLString line_down_selected_img; | 88 | std::string line_down_selected_img; |
91 | 89 | ||
92 | LLRect line_down_rect; | 90 | LLRect line_down_rect; |
93 | 91 | ||
@@ -113,10 +111,9 @@ LLScrollbar::LLScrollbar( | |||
113 | line_down_selected_img="UIImgBtnScrollRightInUUID"; | 111 | line_down_selected_img="UIImgBtnScrollRightInUUID"; |
114 | } | 112 | } |
115 | 113 | ||
116 | LLButton* line_up_btn = new LLButton( | 114 | LLButton* line_up_btn = new LLButton(std::string("Line Up"), line_up_rect, |
117 | "Line Up", line_up_rect, | 115 | line_up_img, line_up_selected_img, LLStringUtil::null, |
118 | line_up_img, line_up_selected_img, "", | 116 | &LLScrollbar::onLineUpBtnPressed, this, LLFontGL::sSansSerif ); |
119 | &LLScrollbar::onLineUpBtnPressed, this, LLFontGL::sSansSerif ); | ||
120 | if( LLScrollbar::VERTICAL == mOrientation ) | 117 | if( LLScrollbar::VERTICAL == mOrientation ) |
121 | { | 118 | { |
122 | line_up_btn->setFollowsRight(); | 119 | line_up_btn->setFollowsRight(); |
@@ -132,10 +129,9 @@ LLScrollbar::LLScrollbar( | |||
132 | line_up_btn->setTabStop(FALSE); | 129 | line_up_btn->setTabStop(FALSE); |
133 | addChild(line_up_btn); | 130 | addChild(line_up_btn); |
134 | 131 | ||
135 | LLButton* line_down_btn = new LLButton( | 132 | LLButton* line_down_btn = new LLButton(std::string("Line Down"), line_down_rect, |
136 | "Line Down", line_down_rect, | 133 | line_down_img, line_down_selected_img, LLStringUtil::null, |
137 | line_down_img, line_down_selected_img, "", | 134 | &LLScrollbar::onLineDownBtnPressed, this, LLFontGL::sSansSerif ); |
138 | &LLScrollbar::onLineDownBtnPressed, this, LLFontGL::sSansSerif ); | ||
139 | line_down_btn->setFollowsRight(); | 135 | line_down_btn->setFollowsRight(); |
140 | line_down_btn->setFollowsBottom(); | 136 | line_down_btn->setFollowsBottom(); |
141 | line_down_btn->setHeldDownCallback( &LLScrollbar::onLineDownBtnPressed ); | 137 | line_down_btn->setHeldDownCallback( &LLScrollbar::onLineDownBtnPressed ); |
@@ -419,7 +415,7 @@ BOOL LLScrollbar::handleScrollWheel(S32 x, S32 y, S32 clicks) | |||
419 | } | 415 | } |
420 | 416 | ||
421 | BOOL LLScrollbar::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, | 417 | BOOL LLScrollbar::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, |
422 | EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg) | 418 | EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, std::string &tooltip_msg) |
423 | { | 419 | { |
424 | // enable this to get drag and drop to control scrollbars | 420 | // enable this to get drag and drop to control scrollbars |
425 | //if (!drop) | 421 | //if (!drop) |