summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelnearbymedia.h
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2010-02-12 14:47:51 -0800
committerRick Pasetto <rick@lindenlab.com>2010-02-12 14:47:51 -0800
commit9cc4eccac58923566f76b9d10c4f478889d26c28 (patch)
tree3edc65dd0a09c48628f3c6645a18b58d8144e115 /indra/newview/llpanelnearbymedia.h
parent9f3c3d8f64be7c7321f6037dcd78234417c0a2d8 (diff)
parentffd962f3a3eafd7b65f90039a5bb04dccb0205bc (diff)
Automated merge with ssh://rick@hg.lindenlab.com/rick/viewer-2-0-mediaclasses
Diffstat (limited to 'indra/newview/llpanelnearbymedia.h')
-rw-r--r--indra/newview/llpanelnearbymedia.h29
1 files changed, 19 insertions, 10 deletions
diff --git a/indra/newview/llpanelnearbymedia.h b/indra/newview/llpanelnearbymedia.h
index 50ccd92e09..654a8544af 100644
--- a/indra/newview/llpanelnearbymedia.h
+++ b/indra/newview/llpanelnearbymedia.h
@@ -85,15 +85,23 @@ private:
};
// Add/remove an LLViewerMediaImpl to/from the list
- void addMediaItem(const LLUUID &id);
- void updateMediaItem(LLScrollListItem* item, LLViewerMediaImpl* impl);
- void removeMediaItem(const LLUUID &id);
+ LLScrollListItem* addListItem(const LLUUID &id);
+ void updateListItem(LLScrollListItem* item, LLViewerMediaImpl* impl);
+ void updateListItem(LLScrollListItem* item,
+ const std::string &item_name,
+ const std::string &item_tooltip,
+ S32 proximity,
+ bool is_disabled,
+ bool has_media,
+ bool is_time_based_and_playing,
+ MediaClass media_class,
+ const std::string &debug_str);
+ void removeListItem(const LLUUID &id);
// Refresh the list in the UI
void refreshList();
- void refreshParcelMediaUI();
- void refreshParcelAudioUI();
+ void refreshParcelItems();
// UI Callbacks
void onClickEnableAll();
@@ -107,6 +115,7 @@ private:
void onClickParcelMediaPause();
void onClickParcelAudioPlay();
void onClickParcelAudioStop();
+ void onClickParcelAudioStart();
void onClickParcelAudioPause();
void onCheckAutoPlay();
void onAdvancedButtonClick();
@@ -118,10 +127,8 @@ private:
private:
bool setDisabled(const LLUUID &id, bool disabled);
-
- static void getNameAndUrlHelper(LLViewerMediaImpl* impl, std::string& name, std::string & url, const std::string &defaultName);
- static std::string getParcelAudioURL();
+ static void getNameAndUrlHelper(LLViewerMediaImpl* impl, std::string& name, std::string & url, const std::string &defaultName);
void updateColumns();
@@ -135,7 +142,6 @@ private:
LLButton* mParcelMediaMuteCtrl;
LLUICtrl* mEnableParcelMediaCtrl;
LLUICtrl* mDisableParcelMediaCtrl;
- LLTextBox* mParcelMediaText;
LLTextBox* mItemCountText;
LLUICtrl* mParcelMediaCtrl;
LLUICtrl* mParcelMediaPlayCtrl;
@@ -149,12 +155,15 @@ private:
bool mDebugInfoVisible;
bool mParcelAudioAutoStart;
std::string mEmptyNameString;
- std::string mDefaultParcelMediaName;
std::string mPlayingString;
+ std::string mParcelMediaName;
+ std::string mParcelAudioName;
S32 mMoreHeight;
S32 mLessHeight;
LLFrameTimer mHoverTimer;
+ LLScrollListItem* mParcelMediaItem;
+ LLScrollListItem* mParcelAudioItem;
};