|
void Impala::Visualization::VideoTimeLine::Init |
( |
int |
w, |
|
|
int |
h | |
|
) |
| | [inline, private] |
Definition at line 164 of file VideoTimeLine.h.
References OglGui::OglWindow::ConnectTo(), OglGui::TitledWindow::ContentPane(), Impala::Visualization::TimeLineViewStrip::CurrentViewOnTop(), OglGui::OglWindow::H(), mCenterNeedle, mCenterNeedleOnPlay, mFrameNrTxt, mTimeLineRuler, mTitledTimeLine, mTitledVideoPlayer, mTLineViewStrip, mVideoPlayer, mVideoPlayerWithBtns, mViewStripScroller, Impala::Visualization::VideoPlayer::NormalSpeed(), Impala::Visualization::VideoPlayerWithButtons::Player(), OglGui::StaticText::SetAlign(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::WindowDocScroller::SetDocWindow(), OglGui::WindowTimeLine::SetListener(), OglGui::ZoomShiftRuler::SetNeedleColor(), OglGui::ZoomShiftRuler::SetNeedleUpDownHeight(), OglGui::ZoomShiftRuler::ShowNeedle(), OglGui::TitledWindow::TitleText(), OglGui::TOLEFTRIGHT, OglGui::TORIGHT, OglGui::TOTOP, and OglGui::OglWindow::W(). 00165 {
00166 int vpH = 288 + 32 + 8;
00167
00168 mTitledVideoPlayer = new TitledWindow(this,4,4,352+8,vpH+32,"");
00169 Window* pane = mTitledVideoPlayer->ContentPane();
00170 int paneW = pane->W();
00171 int paneH = pane->H();
00172
00173 mVideoPlayerWithBtns = new VideoPlayerWithButtons(pane,0,0,paneW,paneH);
00174 mVideoPlayerWithBtns->ConnectTo(pane);
00175 mVideoPlayer = mVideoPlayerWithBtns->Player();
00176 mVideoPlayer->NormalSpeed(true);
00177
00178 Window* videoTitle = mTitledVideoPlayer->TitleText();
00179 mFrameNrTxt = new StaticText(videoTitle,paneW-90,2,60,20, "");
00180 mFrameNrTxt->SetAlign(oglLeftAlign,oglCenterAlign);
00181 mFrameNrTxt->ConnectTo(videoTitle,OglGui::TORIGHT);
00182
00183 mTitledTimeLine = new TitledWindow(this,368,4,w-372,vpH+32,"TimeLine");
00184 pane = mTitledTimeLine->ContentPane();
00185 paneW = pane->W();
00186 paneH = pane->H();
00187
00188 mTimeLineRuler = new WindowTimeLine(pane,0,paneH-32,paneW,30);
00189 mTimeLineRuler->ConnectTo(pane,OglGui::TOLEFTRIGHT | OglGui::TOTOP);
00190 mTimeLineRuler->SetListener(this, (void*) mVideoPlayer);
00191 mTimeLineRuler->SetBorderType(BEV_ETCHED);
00192 mTimeLineRuler->SetBorderFillShaded(2);
00193 mTimeLineRuler->ShowNeedle(true);
00194 mTimeLineRuler->SetNeedleUpDownHeight(100,100);
00195 mTimeLineRuler->SetNeedleColor(oglRED);
00196
00197 mViewStripScroller = new WindowDocScroller(pane,0,0,paneW,paneH-34,1);
00198 mViewStripScroller->ConnectTo(pane);
00199 mTLineViewStrip =
00200 new TimeLineViewStrip(mViewStripScroller,0,16,paneW,paneH-50,600);
00201 mViewStripScroller->SetDocWindow(mTLineViewStrip,mTLineViewStrip,true);
00202
00203 mTLineViewStrip->SetBorderType(-1);
00204 mTLineViewStrip->SetListener(this, (void *) mVideoPlayer);
00205 mTLineViewStrip->CurrentViewOnTop(2);
00206 mVideoPlayer->SetVideoPlayerListener(this,0);
00207
00208 mCenterNeedle = true;
00209 mCenterNeedleOnPlay = true;
00210 }
Here is the call graph for this function:
|