diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterland.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterland.h | 66 |
1 files changed, 18 insertions, 48 deletions
diff --git a/linden/indra/newview/llfloaterland.h b/linden/indra/newview/llfloaterland.h index 551c7e3..e9198cb 100644 --- a/linden/indra/newview/llfloaterland.h +++ b/linden/indra/newview/llfloaterland.h | |||
@@ -68,13 +68,10 @@ class LLPanelLandRenters; | |||
68 | class LLPanelLandCovenant; | 68 | class LLPanelLandCovenant; |
69 | 69 | ||
70 | class LLFloaterLand | 70 | class LLFloaterLand |
71 | : public LLFloater | 71 | : public LLFloater, public LLUISingleton<LLFloaterLand, VisibilityPolicy<LLFloater> > |
72 | { | 72 | { |
73 | friend class LLUISingleton<LLFloaterLand, VisibilityPolicy<LLFloater> >; | ||
73 | public: | 74 | public: |
74 | // Call show() to open a land floater. | ||
75 | // Will query the viewer parcel manager to see what is selected. | ||
76 | static void show(); | ||
77 | static BOOL floaterVisible() { return sInstance && sInstance->getVisible(); } | ||
78 | static void refreshAll(); | 75 | static void refreshAll(); |
79 | 76 | ||
80 | static LLPanelLandObjects* getCurrentPanelLandObjects(); | 77 | static LLPanelLandObjects* getCurrentPanelLandObjects(); |
@@ -82,11 +79,14 @@ public: | |||
82 | 79 | ||
83 | // Destroys itself on close. | 80 | // Destroys itself on close. |
84 | virtual void onClose(bool app_quitting); | 81 | virtual void onClose(bool app_quitting); |
82 | virtual void onOpen(); | ||
83 | virtual BOOL postBuild(); | ||
85 | 84 | ||
86 | protected: | 85 | protected: |
86 | |||
87 | // Does its own instance management, so clients not allowed | 87 | // Does its own instance management, so clients not allowed |
88 | // to allocate or destroy. | 88 | // to allocate or destroy. |
89 | LLFloaterLand(); | 89 | LLFloaterLand(const LLSD& seed); |
90 | virtual ~LLFloaterLand(); | 90 | virtual ~LLFloaterLand(); |
91 | 91 | ||
92 | void refresh(); | 92 | void refresh(); |
@@ -102,7 +102,6 @@ protected: | |||
102 | 102 | ||
103 | 103 | ||
104 | protected: | 104 | protected: |
105 | static LLFloaterLand* sInstance; | ||
106 | static LLParcelSelectionObserver* sObserver; | 105 | static LLParcelSelectionObserver* sObserver; |
107 | static S32 sLastTab; | 106 | static S32 sLastTab; |
108 | 107 | ||
@@ -114,7 +113,7 @@ protected: | |||
114 | LLPanelLandAccess* mPanelAccess; | 113 | LLPanelLandAccess* mPanelAccess; |
115 | LLPanelLandCovenant* mPanelCovenant; | 114 | LLPanelLandCovenant* mPanelCovenant; |
116 | 115 | ||
117 | LLHandle<LLParcelSelection> mParcel; | 116 | LLSafeHandle<LLParcelSelection> mParcel; |
118 | 117 | ||
119 | public: | 118 | public: |
120 | // When closing the dialog, we want to deselect the land. But when | 119 | // When closing the dialog, we want to deselect the land. But when |
@@ -129,7 +128,7 @@ class LLPanelLandGeneral | |||
129 | : public LLPanel | 128 | : public LLPanel |
130 | { | 129 | { |
131 | public: | 130 | public: |
132 | LLPanelLandGeneral(LLHandle<LLParcelSelection>& parcelp); | 131 | LLPanelLandGeneral(LLSafeHandle<LLParcelSelection>& parcelp); |
133 | virtual ~LLPanelLandGeneral(); | 132 | virtual ~LLPanelLandGeneral(); |
134 | void refresh(); | 133 | void refresh(); |
135 | void refreshNames(); | 134 | void refreshNames(); |
@@ -221,16 +220,16 @@ protected: | |||
221 | LLButton* mBtnBuyPass; | 220 | LLButton* mBtnBuyPass; |
222 | LLButton* mBtnStartAuction; | 221 | LLButton* mBtnStartAuction; |
223 | 222 | ||
224 | LLHandle<LLParcelSelection>& mParcel; | 223 | LLSafeHandle<LLParcelSelection>& mParcel; |
225 | 224 | ||
226 | static LLViewHandle sBuyPassDialogHandle; | 225 | static LLHandle<LLFloater> sBuyPassDialogHandle; |
227 | }; | 226 | }; |
228 | 227 | ||
229 | class LLPanelLandObjects | 228 | class LLPanelLandObjects |
230 | : public LLPanel | 229 | : public LLPanel |
231 | { | 230 | { |
232 | public: | 231 | public: |
233 | LLPanelLandObjects(LLHandle<LLParcelSelection>& parcelp); | 232 | LLPanelLandObjects(LLSafeHandle<LLParcelSelection>& parcelp); |
234 | virtual ~LLPanelLandObjects(); | 233 | virtual ~LLPanelLandObjects(); |
235 | void refresh(); | 234 | void refresh(); |
236 | virtual void draw(); | 235 | virtual void draw(); |
@@ -293,7 +292,7 @@ protected: | |||
293 | S32 mSelectedCount; | 292 | S32 mSelectedCount; |
294 | BOOL mSelectedIsGroup; | 293 | BOOL mSelectedIsGroup; |
295 | 294 | ||
296 | LLHandle<LLParcelSelection>& mParcel; | 295 | LLSafeHandle<LLParcelSelection>& mParcel; |
297 | }; | 296 | }; |
298 | 297 | ||
299 | 298 | ||
@@ -301,7 +300,7 @@ class LLPanelLandOptions | |||
301 | : public LLPanel | 300 | : public LLPanel |
302 | { | 301 | { |
303 | public: | 302 | public: |
304 | LLPanelLandOptions(LLHandle<LLParcelSelection>& parcelp); | 303 | LLPanelLandOptions(LLSafeHandle<LLParcelSelection>& parcelp); |
305 | virtual ~LLPanelLandOptions(); | 304 | virtual ~LLPanelLandOptions(); |
306 | void refresh(); | 305 | void refresh(); |
307 | 306 | ||
@@ -340,44 +339,15 @@ protected: | |||
340 | LLCheckBoxCtrl *mPushRestrictionCtrl; | 339 | LLCheckBoxCtrl *mPushRestrictionCtrl; |
341 | LLButton *mPublishHelpButton; | 340 | LLButton *mPublishHelpButton; |
342 | 341 | ||
343 | LLHandle<LLParcelSelection>& mParcel; | 342 | LLSafeHandle<LLParcelSelection>& mParcel; |
344 | }; | ||
345 | |||
346 | |||
347 | class LLPanelLandMedia | ||
348 | : public LLPanel | ||
349 | { | ||
350 | public: | ||
351 | LLPanelLandMedia(LLHandle<LLParcelSelection>& parcelp); | ||
352 | virtual ~LLPanelLandMedia(); | ||
353 | void refresh(); | ||
354 | |||
355 | static void onCommitAny(LLUICtrl* ctrl, void *userdata); | ||
356 | static void onClickStopMedia ( void* data ); | ||
357 | static void onClickStartMedia ( void* data ); | ||
358 | |||
359 | virtual BOOL postBuild(); | ||
360 | |||
361 | protected: | ||
362 | LLCheckBoxCtrl* mCheckSoundLocal; | ||
363 | LLRadioGroup* mRadioVoiceChat; | ||
364 | LLLineEditor* mMusicURLEdit; | ||
365 | LLLineEditor* mMediaURLEdit; | ||
366 | LLTextureCtrl* mMediaTextureCtrl; | ||
367 | LLCheckBoxCtrl* mMediaAutoScaleCheck; | ||
368 | //LLButton* mMediaStopButton; | ||
369 | //LLButton* mMediaStartButton; | ||
370 | |||
371 | LLHandle<LLParcelSelection>& mParcel; | ||
372 | }; | 343 | }; |
373 | 344 | ||
374 | 345 | ||
375 | |||
376 | class LLPanelLandAccess | 346 | class LLPanelLandAccess |
377 | : public LLPanel | 347 | : public LLPanel |
378 | { | 348 | { |
379 | public: | 349 | public: |
380 | LLPanelLandAccess(LLHandle<LLParcelSelection>& parcelp); | 350 | LLPanelLandAccess(LLSafeHandle<LLParcelSelection>& parcelp); |
381 | virtual ~LLPanelLandAccess(); | 351 | virtual ~LLPanelLandAccess(); |
382 | void refresh(); | 352 | void refresh(); |
383 | void refresh_ui(); | 353 | void refresh_ui(); |
@@ -399,7 +369,7 @@ protected: | |||
399 | LLNameListCtrl* mListAccess; | 369 | LLNameListCtrl* mListAccess; |
400 | LLNameListCtrl* mListBanned; | 370 | LLNameListCtrl* mListBanned; |
401 | 371 | ||
402 | LLHandle<LLParcelSelection>& mParcel; | 372 | LLSafeHandle<LLParcelSelection>& mParcel; |
403 | }; | 373 | }; |
404 | 374 | ||
405 | 375 | ||
@@ -407,7 +377,7 @@ class LLPanelLandCovenant | |||
407 | : public LLPanel | 377 | : public LLPanel |
408 | { | 378 | { |
409 | public: | 379 | public: |
410 | LLPanelLandCovenant(LLHandle<LLParcelSelection>& parcelp); | 380 | LLPanelLandCovenant(LLSafeHandle<LLParcelSelection>& parcelp); |
411 | virtual ~LLPanelLandCovenant(); | 381 | virtual ~LLPanelLandCovenant(); |
412 | virtual BOOL postBuild(); | 382 | virtual BOOL postBuild(); |
413 | void refresh(); | 383 | void refresh(); |
@@ -417,7 +387,7 @@ public: | |||
417 | static void updateEstateOwnerName(const std::string& name); | 387 | static void updateEstateOwnerName(const std::string& name); |
418 | 388 | ||
419 | protected: | 389 | protected: |
420 | LLHandle<LLParcelSelection>& mParcel; | 390 | LLSafeHandle<LLParcelSelection>& mParcel; |
421 | }; | 391 | }; |
422 | 392 | ||
423 | #endif | 393 | #endif |