diff options
author | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
commit | 117e22047c5752352342d64e3fb7ce00a4eb8113 (patch) | |
tree | e32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/newview/lloverlaybar.h | |
parent | Second Life viewer sources 1.18.0.6 (diff) | |
download | meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2 meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz |
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/newview/lloverlaybar.h')
-rw-r--r-- | linden/indra/newview/lloverlaybar.h | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/linden/indra/newview/lloverlaybar.h b/linden/indra/newview/lloverlaybar.h index 1f15023..de6c0ae 100644 --- a/linden/indra/newview/lloverlaybar.h +++ b/linden/indra/newview/lloverlaybar.h | |||
@@ -45,11 +45,10 @@ class LLUUID; | |||
45 | class LLFrameTimer; | 45 | class LLFrameTimer; |
46 | class LLStatGraph; | 46 | class LLStatGraph; |
47 | class LLSlider; | 47 | class LLSlider; |
48 | class LLVolumeSliderCtrl; | 48 | class LLVoiceRemoteCtrl; |
49 | 49 | ||
50 | class LLOverlayBar | 50 | class LLOverlayBar |
51 | : public LLPanel, | 51 | : public LLPanel |
52 | public LLMediaRemoteCtrlObserver | ||
53 | { | 52 | { |
54 | public: | 53 | public: |
55 | LLOverlayBar(const std::string& name, const LLRect& rect ); | 54 | LLOverlayBar(const std::string& name, const LLRect& rect ); |
@@ -58,14 +57,16 @@ public: | |||
58 | virtual EWidgetType getWidgetType() const; | 57 | virtual EWidgetType getWidgetType() const; |
59 | virtual LLString getWidgetTag() const; | 58 | virtual LLString getWidgetTag() const; |
60 | 59 | ||
61 | virtual void reshape(S32 width, S32 height, BOOL called_from_parent); | 60 | /*virtual*/ void refresh(); |
62 | 61 | /*virtual*/ void draw(); | |
63 | void refresh(); | 62 | /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent); |
64 | 63 | ||
65 | void layoutButtons(); | 64 | void layoutButtons(); |
66 | 65 | ||
67 | /*virtual*/ void draw(); | 66 | // helpers for returning desired state |
68 | 67 | BOOL mediaPlaying() { return mMediaState == PLAYING; } | |
68 | BOOL musicPlaying() { return mMusicState == PLAYING; } | ||
69 | |||
69 | static void onClickIMReceived(void* data); | 70 | static void onClickIMReceived(void* data); |
70 | static void onClickSetNotBusy(void* data); | 71 | static void onClickSetNotBusy(void* data); |
71 | static void onClickReleaseKeys(void* data); | 72 | static void onClickReleaseKeys(void* data); |
@@ -73,23 +74,35 @@ public: | |||
73 | static void onClickStandUp(void* data); | 74 | static void onClickStandUp(void* data); |
74 | static void onClickResetView(void* data); | 75 | static void onClickResetView(void* data); |
75 | 76 | ||
76 | // observer overrides | 77 | //static media helper functions |
77 | void onVolumeChange ( const LLMediaRemoteCtrlObserver::EventType& eventIn ); | 78 | static void mediaPlay(void*); |
78 | void onStopButtonPressed ( const LLMediaRemoteCtrlObserver::EventType& eventIn ); | 79 | static void mediaPause(void*); |
79 | void onPlayButtonPressed ( const LLMediaRemoteCtrlObserver::EventType& eventIn ); | 80 | static void mediaStop(void*); |
80 | void onPauseButtonPressed ( const LLMediaRemoteCtrlObserver::EventType& eventIn ); | 81 | |
81 | 82 | static void musicPlay(void*); | |
82 | LLMediaRemoteCtrl* getMusicRemoteControl () { return mMusicRemote; }; | 83 | static void musicPause(void*); |
84 | static void musicStop(void*); | ||
83 | 85 | ||
84 | protected: | 86 | static void toggleAudioVolumeFloater(void*); |
87 | |||
88 | static void enableMediaButtons(LLPanel* panel); | ||
89 | static void enableMusicButtons(LLPanel* panel); | ||
85 | 90 | ||
91 | protected: | ||
92 | static void* createMasterRemote(void* userdata); | ||
86 | static void* createMusicRemote(void* userdata); | 93 | static void* createMusicRemote(void* userdata); |
87 | static void* createMediaRemote(void* userdata); | 94 | static void* createMediaRemote(void* userdata); |
95 | static void* createVoiceRemote(void* userdata); | ||
88 | 96 | ||
89 | protected: | 97 | protected: |
98 | LLMediaRemoteCtrl* mMasterRemote; | ||
90 | LLMediaRemoteCtrl* mMusicRemote; | 99 | LLMediaRemoteCtrl* mMusicRemote; |
91 | LLMediaRemoteCtrl* mMediaRemote; | 100 | LLMediaRemoteCtrl* mMediaRemote; |
101 | LLVoiceRemoteCtrl* mVoiceRemote; | ||
92 | BOOL isBuilt; | 102 | BOOL isBuilt; |
103 | enum { STOPPED=0, PLAYING=1, PAUSED=2 }; | ||
104 | BOOL mMediaState; | ||
105 | BOOL mMusicState; | ||
93 | }; | 106 | }; |
94 | 107 | ||
95 | extern LLOverlayBar* gOverlayBar; | 108 | extern LLOverlayBar* gOverlayBar; |