diff options
Diffstat (limited to 'linden/indra/newview/llfloaterregioninfo.h')
-rw-r--r-- | linden/indra/newview/llfloaterregioninfo.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloaterregioninfo.h b/linden/indra/newview/llfloaterregioninfo.h index 8918430..096c78b 100644 --- a/linden/indra/newview/llfloaterregioninfo.h +++ b/linden/indra/newview/llfloaterregioninfo.h | |||
@@ -58,9 +58,9 @@ class LLPanelRegionTerrainInfo; | |||
58 | class LLPanelEstateInfo; | 58 | class LLPanelEstateInfo; |
59 | class LLPanelEstateCovenant; | 59 | class LLPanelEstateCovenant; |
60 | 60 | ||
61 | class LLFloaterRegionInfo : public LLFloater, public LLUISingleton<LLFloaterRegionInfo> | 61 | class LLFloaterRegionInfo : public LLFloater, public LLFloaterSingleton<LLFloaterRegionInfo> |
62 | { | 62 | { |
63 | friend class LLUISingleton<LLFloaterRegionInfo>; | 63 | friend class LLUISingleton<LLFloaterRegionInfo, VisibilityPolicy<LLFloater> >; |
64 | public: | 64 | public: |
65 | ~LLFloaterRegionInfo(); | 65 | ~LLFloaterRegionInfo(); |
66 | 66 | ||
@@ -83,14 +83,14 @@ public: | |||
83 | // from LLPanel | 83 | // from LLPanel |
84 | virtual void refresh(); | 84 | virtual void refresh(); |
85 | 85 | ||
86 | void requestRegionInfo(); | 86 | static void requestRegionInfo(); |
87 | 87 | ||
88 | protected: | 88 | protected: |
89 | LLFloaterRegionInfo(const LLSD& seed); | 89 | LLFloaterRegionInfo(const LLSD& seed); |
90 | void refreshFromRegion(LLViewerRegion* region); | 90 | void refreshFromRegion(LLViewerRegion* region); |
91 | 91 | ||
92 | // member data | 92 | // member data |
93 | LLTabContainerCommon* mTab; | 93 | LLTabContainer* mTab; |
94 | typedef std::vector<LLPanelRegionInfo*> info_panels_t; | 94 | typedef std::vector<LLPanelRegionInfo*> info_panels_t; |
95 | info_panels_t mInfoPanels; | 95 | info_panels_t mInfoPanels; |
96 | //static S32 sRequestSerial; // serial # of last EstateOwnerRequest | 96 | //static S32 sRequestSerial; // serial # of last EstateOwnerRequest |
@@ -106,6 +106,7 @@ public: | |||
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); |
109 | static void onChangeText(LLLineEditor* caller, void* user_data); | ||
109 | 110 | ||
110 | virtual bool refreshFromRegion(LLViewerRegion* region); | 111 | virtual bool refreshFromRegion(LLViewerRegion* region); |
111 | virtual bool estateUpdate(LLMessageSystem* msg) { return true; } | 112 | virtual bool estateUpdate(LLMessageSystem* msg) { return true; } |
@@ -118,6 +119,7 @@ public: | |||
118 | 119 | ||
119 | protected: | 120 | protected: |
120 | void initCtrl(const char* name); | 121 | void initCtrl(const char* name); |
122 | void initTextCtrl(const char* name); | ||
121 | void initHelpBtn(const char* name, const char* xml_alert); | 123 | void initHelpBtn(const char* name, const char* xml_alert); |
122 | 124 | ||
123 | // Callback for all help buttons, data is name of XML alert to show. | 125 | // Callback for all help buttons, data is name of XML alert to show. |
@@ -255,6 +257,11 @@ public: | |||
255 | static void onChangeFixedSun(LLUICtrl* ctrl, void* user_data); | 257 | static void onChangeFixedSun(LLUICtrl* ctrl, void* user_data); |
256 | static void onChangeUseGlobalTime(LLUICtrl* ctrl, void* user_data); | 258 | static void onChangeUseGlobalTime(LLUICtrl* ctrl, void* user_data); |
257 | 259 | ||
260 | static void onClickEditSky(void* userdata); | ||
261 | static void onClickEditSkyHelp(void* userdata); | ||
262 | static void onClickEditDayCycle(void* userdata); | ||
263 | static void onClickEditDayCycleHelp(void* userdata); | ||
264 | |||
258 | static void onClickAddAllowedAgent(void* user_data); | 265 | static void onClickAddAllowedAgent(void* user_data); |
259 | static void onClickRemoveAllowedAgent(void* user_data); | 266 | static void onClickRemoveAllowedAgent(void* user_data); |
260 | static void onClickAddAllowedGroup(void* user_data); | 267 | static void onClickAddAllowedGroup(void* user_data); |
@@ -320,6 +327,9 @@ public: | |||
320 | const std::string getOwnerName() const; | 327 | const std::string getOwnerName() const; |
321 | void setOwnerName(const std::string& name); | 328 | void setOwnerName(const std::string& name); |
322 | 329 | ||
330 | const std::string getAbuseEmailAddress() const; | ||
331 | void setAbuseEmailAddress(const std::string& address); | ||
332 | |||
323 | // If visible from mainland, allowed agent and allowed groups | 333 | // If visible from mainland, allowed agent and allowed groups |
324 | // are ignored, so must disable UI. | 334 | // are ignored, so must disable UI. |
325 | void setAccessAllowedEnabled(bool enable_agent, bool enable_group, bool enable_ban); | 335 | void setAccessAllowedEnabled(bool enable_agent, bool enable_group, bool enable_ban); |
@@ -338,7 +348,8 @@ protected: | |||
338 | // confirmation dialog callback | 348 | // confirmation dialog callback |
339 | static void callbackChangeLindenEstate(S32 opt, void* data); | 349 | static void callbackChangeLindenEstate(S32 opt, void* data); |
340 | 350 | ||
341 | void commitEstateInfo(); | 351 | void commitEstateInfoDataserver(); |
352 | bool commitEstateInfoCaps(); | ||
342 | void commitEstateAccess(); | 353 | void commitEstateAccess(); |
343 | void commitEstateManagers(); | 354 | void commitEstateManagers(); |
344 | 355 | ||