aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterregioninfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterregioninfo.h')
-rw-r--r--linden/indra/newview/llfloaterregioninfo.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/linden/indra/newview/llfloaterregioninfo.h b/linden/indra/newview/llfloaterregioninfo.h
index 5e8ca1e..7002b2c 100644
--- a/linden/indra/newview/llfloaterregioninfo.h
+++ b/linden/indra/newview/llfloaterregioninfo.h
@@ -102,7 +102,7 @@ protected:
102class LLPanelRegionInfo : public LLPanel 102class LLPanelRegionInfo : public LLPanel
103{ 103{
104public: 104public:
105 LLPanelRegionInfo() : LLPanel("Region Info Panel") {} 105 LLPanelRegionInfo() : LLPanel(std::string("Region Info Panel")) {}
106 static void onBtnSet(void* user_data); 106 static void onBtnSet(void* user_data);
107 static void onChangeChildCtrl(LLUICtrl* ctrl, void* user_data); 107 static void onChangeChildCtrl(LLUICtrl* ctrl, void* user_data);
108 static void onChangeAnything(LLUICtrl* ctrl, void* user_data); 108 static void onChangeAnything(LLUICtrl* ctrl, void* user_data);
@@ -114,13 +114,12 @@ public:
114 virtual BOOL postBuild(); 114 virtual BOOL postBuild();
115 virtual void updateChild(LLUICtrl* child_ctrl); 115 virtual void updateChild(LLUICtrl* child_ctrl);
116 116
117 void enableButton(const char* btn_name, BOOL enable = TRUE); 117 void enableButton(const std::string& btn_name, BOOL enable = TRUE);
118 void disableButton(const char* btn_name); 118 void disableButton(const std::string& btn_name);
119 119
120protected: 120protected:
121 void initCtrl(const char* name); 121 void initCtrl(const std::string& name);
122 void initTextCtrl(const char* name); 122 void initHelpBtn(const std::string& name, const std::string& xml_alert);
123 void initHelpBtn(const char* name, const char* xml_alert);
124 123
125 // Callback for all help buttons, data is name of XML alert to show. 124 // Callback for all help buttons, data is name of XML alert to show.
126 static void onClickHelp(void* data); 125 static void onClickHelp(void* data);
@@ -133,7 +132,7 @@ protected:
133 //typedef std::vector<U32> integers_t; 132 //typedef std::vector<U32> integers_t;
134 void sendEstateOwnerMessage( 133 void sendEstateOwnerMessage(
135 LLMessageSystem* msg, 134 LLMessageSystem* msg,
136 const char* request, 135 const std::string& request,
137 const LLUUID& invoice, 136 const LLUUID& invoice,
138 const strings_t& strings); 137 const strings_t& strings);
139 138
@@ -164,7 +163,7 @@ protected:
164 static void onClickKickAll(void* userdata); 163 static void onClickKickAll(void* userdata);
165 static void onKickAllCommit(S32 option, void* userdata); 164 static void onKickAllCommit(S32 option, void* userdata);
166 static void onClickMessage(void* userdata); 165 static void onClickMessage(void* userdata);
167 static void onMessageCommit(S32 option, const LLString& text, void* userdata); 166 static void onMessageCommit(S32 option, const std::string& text, void* userdata);
168 static void onClickManageTelehub(void* data); 167 static void onClickManageTelehub(void* data);
169}; 168};
170 169
@@ -186,10 +185,8 @@ protected:
186 185
187 static void onClickChooseAvatar(void*); 186 static void onClickChooseAvatar(void*);
188 static void callbackAvatarID(const std::vector<std::string>& names, const std::vector<LLUUID>& ids, void* data); 187 static void callbackAvatarID(const std::vector<std::string>& names, const std::vector<LLUUID>& ids, void* data);
189 static void onClickReturnScriptedOtherLand(void*); 188 static void onClickReturn(void *);
190 static void callbackReturnScriptedOtherLand(S32 option, void*); 189 static void callbackReturn(S32 option, void*);
191 static void onClickReturnScriptedAll(void*);
192 static void callbackReturnScriptedAll(S32 option, void*);
193 static void onClickTopColliders(void*); 190 static void onClickTopColliders(void*);
194 static void onClickTopScripts(void*); 191 static void onClickTopScripts(void*);
195 static void onClickRestart(void* data); 192 static void onClickRestart(void* data);
@@ -276,11 +273,11 @@ public:
276 static void addAllowedGroup2(LLUUID id, void* data); 273 static void addAllowedGroup2(LLUUID id, void* data);
277 274
278 // Core methods for all above add/remove button clicks 275 // Core methods for all above add/remove button clicks
279 static void accessAddCore(U32 operation_flag, const char* dialog_name); 276 static void accessAddCore(U32 operation_flag, const std::string& dialog_name);
280 static void accessAddCore2(S32 option, void* data); 277 static void accessAddCore2(S32 option, void* data);
281 static void accessAddCore3(const std::vector<std::string>& names, const std::vector<LLUUID>& ids, void* data); 278 static void accessAddCore3(const std::vector<std::string>& names, const std::vector<LLUUID>& ids, void* data);
282 279
283 static void accessRemoveCore(U32 operation_flag, const char* dialog_name, const char* list_ctrl_name); 280 static void accessRemoveCore(U32 operation_flag, const std::string& dialog_name, const std::string& list_ctrl_name);
284 static void accessRemoveCore2(S32 option, void* data); 281 static void accessRemoveCore2(S32 option, void* data);
285 282
286 // used for both add and remove operations 283 // used for both add and remove operations
@@ -292,11 +289,13 @@ public:
292 289
293 static void onKickUserCommit(const std::vector<std::string>& names, const std::vector<LLUUID>& ids, void* userdata); 290 static void onKickUserCommit(const std::vector<std::string>& names, const std::vector<LLUUID>& ids, void* userdata);
294 static void onClickMessageEstate(void* data); 291 static void onClickMessageEstate(void* data);
295 static void onMessageCommit(S32 option, const LLString& text, void* data); 292 static void onMessageCommit(S32 option, const std::string& text, void* data);
296 293
297 LLPanelEstateInfo(); 294 LLPanelEstateInfo();
298 ~LLPanelEstateInfo() {} 295 ~LLPanelEstateInfo() {}
299 296
297 void updateControls(LLViewerRegion* region);
298
300 virtual bool refreshFromRegion(LLViewerRegion* region); 299 virtual bool refreshFromRegion(LLViewerRegion* region);
301 virtual bool estateUpdate(LLMessageSystem* msg); 300 virtual bool estateUpdate(LLMessageSystem* msg);
302 301
@@ -337,8 +336,8 @@ public:
337 // llmessage/llcachename.h:LLCacheNameCallback 336 // llmessage/llcachename.h:LLCacheNameCallback
338 static void callbackCacheName( 337 static void callbackCacheName(
339 const LLUUID& id, 338 const LLUUID& id,
340 const char* first, 339 const std::string& first,
341 const char* last, 340 const std::string& last,
342 BOOL is_group, 341 BOOL is_group,
343 void*); 342 void*);
344 343
@@ -377,7 +376,7 @@ public:
377 BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, 376 BOOL handleDragAndDrop(S32 x, S32 y, MASK mask,
378 BOOL drop, EDragAndDropType cargo_type, 377 BOOL drop, EDragAndDropType cargo_type,
379 void *cargo_data, EAcceptance *accept, 378 void *cargo_data, EAcceptance *accept,
380 LLString& tooltip_msg); 379 std::string& tooltip_msg);
381 static void confirmChangeCovenantCallback(S32 option, void* userdata); 380 static void confirmChangeCovenantCallback(S32 option, void* userdata);
382 static void resetCovenantID(void* userdata); 381 static void resetCovenantID(void* userdata);
383 static void confirmResetCovenantCallback(S32 option, void* userdata); 382 static void confirmResetCovenantCallback(S32 option, void* userdata);