#include <QLabel>
#include <QSlider>
#include <QWidgetAction>
+#include <QDockWidget>
+#include <QToolBar>
#include <assert.h>
#include <vlc_keys.h>
setVLCWindowsTitle();
handleMainUi( settings );
+#if 0 /* dock part */
+ QDockWidget *dock = new QDockWidget( this );
+ PlaylistWidget *plw = new PlaylistWidget( p_intf );
+ dock->setWidget( plw );
+ addDockWidget( Qt::RightDockWidgetArea, dock );
+
+ QToolBar *tb = new QToolBar(this);
+ tb->addAction( "playlist", dock, SLOT( hide() ) );
+ addToolBar(Qt::RightToolBarArea, tb);
+#endif
+
/* Menu Bar */
QVLCMenu::createMenuBar( this, p_intf, playlistEmbeddedFlag,
visualSelectorEnabled );
speedLabel->setContextMenuPolicy ( Qt::CustomContextMenu );
timeLabel->setContextMenuPolicy ( Qt::CustomContextMenu );
CONNECT( timeLabel, timeLabelClicked(), this, toggleTimeDisplay() );
+ CONNECT( timeLabel, timeLabelDoubleClicked(), THEDP, gotoTimeDialog() );
CONNECT( speedLabel, customContextMenuRequested( QPoint ),
this, showSpeedMenu( QPoint ) );
CONNECT( timeLabel, customContextMenuRequested( QPoint ),
- this, showTimeMenu( QPoint ) );
+ this, toggleTimeDisplay() );
/**********************
* Systray Management *
speedControlMenu->exec( QCursor::pos() - pos + QPoint( 0, speedLabel->height() ) );
}
-void MainInterface::showTimeMenu( QPoint pos )
-{
- QMenu menu( this );
- menu.addAction( qtr("Elapsed Time") , this, SLOT( setElapsedTime() ) );
- menu.addAction( qtr("Remaining Time") , this, SLOT( setRemainTime() ) );
- menu.exec( QCursor::pos() - pos +QPoint( 0, timeLabel->height() ) );
-}
-
/****************************************************************************
* Video Handling
****************************************************************************/
void MainInterface::toggleTimeDisplay()
{
+ msg_Dbg( p_intf, "Hello" );
b_remainingTime = ( b_remainingTime ? false : true );
}
-void MainInterface::setElapsedTime(){ b_remainingTime = false; }
-void MainInterface::setRemainTime(){ b_remainingTime = true; }
-
void MainInterface::setName( QString name )
{
input_name = name;
QLabel *timeLabel;
QLabel *speedLabel;
QLabel *nameLabel;
-
+
bool b_remainingTime;
void customEvent( QEvent *);
void setVLCWindowsTitle( QString title = "" );
void setDisplayPosition( float, int, int );
void toggleTimeDisplay();
- void setElapsedTime();
- void setRemainTime();
#if 0
void visual();
#endif
void updateSystrayTooltipName( QString );
void updateSystrayTooltipStatus( int );
void showSpeedMenu( QPoint );
- void showTimeMenu( QPoint );
};
#endif