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/llui/lltabcontainer.h | |
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/llui/lltabcontainer.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/llui/lltabcontainer.h b/linden/indra/llui/lltabcontainer.h index 96400f0..8117cde 100644 --- a/linden/indra/llui/lltabcontainer.h +++ b/linden/indra/llui/lltabcontainer.h | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -107,6 +108,7 @@ public: | |||
107 | BOOL selectTabPanel( LLPanel* child ); | 108 | BOOL selectTabPanel( LLPanel* child ); |
108 | BOOL selectTab(S32 which); | 109 | BOOL selectTab(S32 which); |
109 | BOOL selectTabByName(const std::string& title); | 110 | BOOL selectTabByName(const std::string& title); |
111 | BOOL setTab(S32 which); | ||
110 | 112 | ||
111 | BOOL getTabPanelFlashing(LLPanel* child); | 113 | BOOL getTabPanelFlashing(LLPanel* child); |
112 | void setTabPanelFlashing(LLPanel* child, BOOL state); | 114 | void setTabPanelFlashing(LLPanel* child, BOOL state); |
@@ -118,6 +120,7 @@ public: | |||
118 | S32 getTopBorderHeight() const; | 120 | S32 getTopBorderHeight() const; |
119 | 121 | ||
120 | void setTabChangeCallback(LLPanel* tab, void (*on_tab_clicked)(void*,bool)); | 122 | void setTabChangeCallback(LLPanel* tab, void (*on_tab_clicked)(void*,bool)); |
123 | void setTabPrecommitChangeCallback(LLPanel* tab, void (*on_precommit)(void*, bool)); | ||
121 | void setTabUserData(LLPanel* tab, void* userdata); | 124 | void setTabUserData(LLPanel* tab, void* userdata); |
122 | 125 | ||
123 | void setRightTabBtnOffset( S32 offset ); | 126 | void setRightTabBtnOffset( S32 offset ); |
@@ -147,12 +150,14 @@ private: | |||
147 | struct LLTabTuple | 150 | struct LLTabTuple |
148 | { | 151 | { |
149 | LLTabTuple( LLTabContainer* c, LLPanel* p, LLButton* b, | 152 | LLTabTuple( LLTabContainer* c, LLPanel* p, LLButton* b, |
150 | void (*cb)(void*,bool), void* userdata, LLTextBox* placeholder = NULL ) | 153 | void (*cb)(void*,bool), void* userdata, LLTextBox* placeholder = NULL, |
154 | void (*pcb)(void*,bool) = NULL) | ||
151 | : | 155 | : |
152 | mTabContainer(c), | 156 | mTabContainer(c), |
153 | mTabPanel(p), | 157 | mTabPanel(p), |
154 | mButton(b), | 158 | mButton(b), |
155 | mOnChangeCallback( cb ), | 159 | mOnChangeCallback( cb ), |
160 | mPrecommitChangeCallback( pcb ), | ||
156 | mUserData( userdata ), | 161 | mUserData( userdata ), |
157 | mOldState(FALSE), | 162 | mOldState(FALSE), |
158 | mPlaceholderText(placeholder), | 163 | mPlaceholderText(placeholder), |
@@ -163,6 +168,9 @@ private: | |||
163 | LLPanel* mTabPanel; | 168 | LLPanel* mTabPanel; |
164 | LLButton* mButton; | 169 | LLButton* mButton; |
165 | void (*mOnChangeCallback)(void*, bool); | 170 | void (*mOnChangeCallback)(void*, bool); |
171 | void (*mPrecommitChangeCallback)(void*,bool); // Precommit callback gets called before tab is changed and | ||
172 | // can prevent it from being changed. onChangeCallback is called | ||
173 | // immediately after tab is actually changed - Nyx | ||
166 | void* mUserData; | 174 | void* mUserData; |
167 | BOOL mOldState; | 175 | BOOL mOldState; |
168 | LLTextBox* mPlaceholderText; | 176 | LLTextBox* mPlaceholderText; |
@@ -199,6 +207,7 @@ private: | |||
199 | tuple_list_t mTabList; | 207 | tuple_list_t mTabList; |
200 | 208 | ||
201 | S32 mCurrentTabIdx; | 209 | S32 mCurrentTabIdx; |
210 | S32 mNextTabIdx; | ||
202 | BOOL mTabsHidden; | 211 | BOOL mTabsHidden; |
203 | 212 | ||
204 | BOOL mScrolled; | 213 | BOOL mScrolled; |