Commit 771fe0b8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - use a docked playlist, remove dead code, don't reinvent the wheel,...

Qt4 - use a docked playlist, remove dead code, don't reinvent the wheel, remove the behaviour where media library hides the video. Don't split the menu between two dialogs, this is weird and anti sane GUI guidelines.
Use enums when you can.
Add the popup menu to the always video cone.
And more...

parent 21791eb5
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "components/interface_widgets.hpp" #include "components/interface_widgets.hpp"
#include "main_interface.hpp" #include "main_interface.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include "menus.hpp"
#include "util/input_slider.hpp" #include "util/input_slider.hpp"
#include <vlc_vout.h> #include <vlc_vout.h>
...@@ -40,7 +40,8 @@ ...@@ -40,7 +40,8 @@
#include <QPalette> #include <QPalette>
#include <QResizeEvent> #include <QResizeEvent>
#define ICON_SIZE 300 #define ICON_SIZE 128
#define MAX_BG_SIZE 300
/********************************************************************** /**********************************************************************
* Video Widget. A simple frame on which video is drawn * Video Widget. A simple frame on which video is drawn
...@@ -120,7 +121,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) : ...@@ -120,7 +121,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) :
plt.setColor( QPalette::Inactive, QPalette::Window , Qt::black ); plt.setColor( QPalette::Inactive, QPalette::Window , Qt::black );
setPalette( plt ); setPalette( plt );
label = new QLabel( "" ); label = new QLabel;
label->setMaximumHeight( ICON_SIZE ); label->setMaximumHeight( ICON_SIZE );
label->setMaximumWidth( ICON_SIZE ); label->setMaximumWidth( ICON_SIZE );
label->setScaledContents( true ); label->setScaledContents( true );
...@@ -157,6 +158,10 @@ void BackgroundWidget::resizeEvent( QResizeEvent *e ) ...@@ -157,6 +158,10 @@ void BackgroundWidget::resizeEvent( QResizeEvent *e )
label->setMaximumWidth( ICON_SIZE ); label->setMaximumWidth( ICON_SIZE );
} }
void BackgroundWidget::contextMenuEvent( QContextMenuEvent *event )
{
QVLCMenu::PopupMenu( p_intf, true );
}
/********************************************************************** /**********************************************************************
* Visualization selector panel * Visualization selector panel
**********************************************************************/ **********************************************************************/
...@@ -249,7 +254,7 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) : ...@@ -249,7 +254,7 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
recordButton->setMaximumSize( QSize( 26, 26 ) ); recordButton->setMaximumSize( QSize( 26, 26 ) );
recordButton->setIconSize( QSize( 20, 20 ) ); recordButton->setIconSize( QSize( 20, 20 ) );
advLayout->addWidget( recordButton ); advLayout->addWidget( recordButton );
BUTTON_SET_ACT_I( recordButton, "", vlc_record_16px.png, BUTTON_SET_ACT_I( recordButton, "", record_16px.png,
qtr( "Record" ), record() ); qtr( "Record" ), record() );
normalButton = new QPushButton( "N" ); normalButton = new QPushButton( "N" );
...@@ -300,6 +305,8 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) : ...@@ -300,6 +305,8 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
//QSize size( 500, 200 ); //QSize size( 500, 200 );
//resize( size ); //resize( size );
controlLayout = new QGridLayout( this ); controlLayout = new QGridLayout( this );
controlLayout->setSpacing( 0 );
setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
#if DEBUG_COLOR #if DEBUG_COLOR
QPalette palette2; QPalette palette2;
...@@ -382,14 +389,15 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) : ...@@ -382,14 +389,15 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
**/ **/
/** Play Buttons **/ /** Play Buttons **/
QSizePolicy sizePolicy( QSizePolicy::Maximum, QSizePolicy::Fixed ); QSizePolicy sizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
sizePolicy.setHorizontalStretch( 0 ); sizePolicy.setHorizontalStretch( 0 );
sizePolicy.setVerticalStretch( 0 ); sizePolicy.setVerticalStretch( 0 );
/* Play */ /* Play */
playButton = new QPushButton; playButton = new QPushButton;
playButton->setSizePolicy( sizePolicy ); playButton->setSizePolicy( sizePolicy );
playButton->setMaximumSize( QSize( 45, 45 ) ); playButton->setMaximumSize( QSize( 38, 38 ) );
playButton->setMinimumSize( QSize( 45, 45 ) );
playButton->setIconSize( QSize( 30, 30 ) ); playButton->setIconSize( QSize( 30, 30 ) );
controlLayout->addWidget( playButton, 2, 0, 2, 2, Qt::AlignBottom ); controlLayout->addWidget( playButton, 2, 0, 2, 2, Qt::AlignBottom );
...@@ -449,6 +457,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) : ...@@ -449,6 +457,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
playlistButton = new QPushButton; playlistButton = new QPushButton;
setupSmallButton( playlistButton ); setupSmallButton( playlistButton );
controlLayout->addWidget( playlistButton, 3, 11 ); controlLayout->addWidget( playlistButton, 3, 11 );
BUTTON_SET_IMG( playlistButton, "" , playlist.png, qtr( "Show playlist" ) );
/** extended Settings **/ /** extended Settings **/
QPushButton *extSettingsButton = new QPushButton( "F" ); QPushButton *extSettingsButton = new QPushButton( "F" );
...@@ -487,6 +496,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) : ...@@ -487,6 +496,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
/* Volume control connection */ /* Volume control connection */
CONNECT( volumeSlider, valueChanged( int ), this, updateVolume( int ) ); CONNECT( volumeSlider, valueChanged( int ), this, updateVolume( int ) );
msg_Dbg( p_intf, "size: %i - %i", size().height(), size().width() );
} }
ControlsWidget::~ControlsWidget() ControlsWidget::~ControlsWidget()
{ {
......
...@@ -84,10 +84,11 @@ private: ...@@ -84,10 +84,11 @@ private:
QLabel *label; QLabel *label;
QHBoxLayout *backgroundLayout; QHBoxLayout *backgroundLayout;
virtual void resizeEvent( QResizeEvent *e ); virtual void resizeEvent( QResizeEvent *e );
virtual void contextMenuEvent( QContextMenuEvent *event );
int DrawBackground(); int DrawBackground();
int CleanBackground(); int CleanBackground();
intf_thread_t *p_intf; intf_thread_t *p_intf;
private slots: public slots:
void setArt( QString ); void setArt( QString );
}; };
......
...@@ -88,15 +88,15 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -88,15 +88,15 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Buttons configuration */ /* Buttons configuration */
QHBoxLayout *buttons = new QHBoxLayout(); QHBoxLayout *buttons = new QHBoxLayout();
addButton = new QPushButton( QIcon( ":/pixmaps/vlc_playlist_add.png" ), "", this ); addButton = new QPushButton( QIcon( ":/pixmaps/playlist_add.png" ), "", this );
addButton->setMaximumWidth( 25 ); addButton->setMaximumWidth( 25 );
BUTTONACT( addButton, popupAdd() ); BUTTONACT( addButton, popupAdd() );
buttons->addWidget( addButton ); buttons->addWidget( addButton );
randomButton = new QPushButton( this ); randomButton = new QPushButton( this );
randomButton->setIcon( model->hasRandom() ? randomButton->setIcon( model->hasRandom() ?
QIcon( ":/pixmaps/vlc_playlist_shuffle_on.png" ) : QIcon( ":/pixmaps/playlist_shuffle_on.png" ) :
QIcon( ":/pixmaps/vlc_playlist_shuffle_off.png" ) ); QIcon( ":/pixmaps/playlist_shuffle_off.png" ) );
BUTTONACT( randomButton, toggleRandom() ); BUTTONACT( randomButton, toggleRandom() );
buttons->addWidget( randomButton ); buttons->addWidget( randomButton );
...@@ -105,11 +105,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -105,11 +105,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
repeatButton = new QPushButton( this ); repeatButton = new QPushButton( this );
if( model->hasRepeat() ) repeatButton->setIcon( if( model->hasRepeat() ) repeatButton->setIcon(
QIcon( ":/pixmaps/vlc_playlist_repeat_one.png" ) ); QIcon( ":/pixmaps/playlist_repeat_one.png" ) );
else if( model->hasLoop() ) repeatButton->setIcon( else if( model->hasLoop() ) repeatButton->setIcon(
QIcon( ":/pixmaps/vlc_playlist_repeat_all.png" ) ); QIcon( ":/pixmaps/playlist_repeat_all.png" ) );
else repeatButton->setIcon( else repeatButton->setIcon(
QIcon( ":/pixmaps/vlc_playlist_repeat_off.png" ) ); QIcon( ":/pixmaps/playlist_repeat_off.png" ) );
BUTTONACT( repeatButton, toggleRepeat() ); BUTTONACT( repeatButton, toggleRepeat() );
buttons->addWidget( repeatButton ); buttons->addWidget( repeatButton );
...@@ -136,17 +136,17 @@ void StandardPLPanel::toggleRepeat() ...@@ -136,17 +136,17 @@ void StandardPLPanel::toggleRepeat()
if( model->hasRepeat() ) if( model->hasRepeat() )
{ {
model->setRepeat( false ); model->setLoop( true ); model->setRepeat( false ); model->setLoop( true );
repeatButton->setIcon( QIcon( ":/pixmaps/vlc_playlist_repeat_all.png" ) ); repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_all.png" ) );
} }
else if( model->hasLoop() ) else if( model->hasLoop() )
{ {
model->setRepeat( false ) ; model->setLoop( false ); model->setRepeat( false ) ; model->setLoop( false );
repeatButton->setIcon( QIcon( ":/pixmaps/vlc_playlist_repeat_off.png" ) ); repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_off.png" ) );
} }
else else
{ {
model->setRepeat( true ); model->setRepeat( true );
repeatButton->setIcon( QIcon( ":/pixmaps/vlc_playlist_repeat_one.png" ) ); repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_one.png" ) );
} }
} }
...@@ -155,8 +155,8 @@ void StandardPLPanel::toggleRandom() ...@@ -155,8 +155,8 @@ void StandardPLPanel::toggleRandom()
bool prev = model->hasRandom(); bool prev = model->hasRandom();
model->setRandom( !prev ); model->setRandom( !prev );
randomButton->setIcon( prev ? randomButton->setIcon( prev ?
QIcon( ":/pixmaps/vlc_playlist_shuffle_off.png" ) : QIcon( ":/pixmaps/playlist_shuffle_off.png" ) :
QIcon( ":/pixmaps/vlc_playlist_shuffle_on.png" ) ); QIcon( ":/pixmaps/playlist_shuffle_on.png" ) );
} }
void StandardPLPanel::handleExpansion( const QModelIndex &index ) void StandardPLPanel::handleExpansion( const QModelIndex &index )
......
...@@ -71,6 +71,7 @@ DialogsProvider::~DialogsProvider() ...@@ -71,6 +71,7 @@ DialogsProvider::~DialogsProvider()
{ {
PlaylistDialog::killInstance(); PlaylistDialog::killInstance();
MediaInfoDialog::killInstance(); MediaInfoDialog::killInstance();
fixed_timer->stop();
} }
void DialogsProvider::quit() void DialogsProvider::quit()
......
...@@ -117,7 +117,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -117,7 +117,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
alwaysVideoFlag = true; alwaysVideoFlag = true;
/* Set the other interface settings */ /* Set the other interface settings */
playlistEmbeddedFlag = settings->value( "playlist-embedded", true).toBool();
visualSelectorEnabled = settings->value( "visual-selector", false ).toBool(); visualSelectorEnabled = settings->value( "visual-selector", false ).toBool();
notificationEnabled = config_GetInt( p_intf, "qt-notification" ) notificationEnabled = config_GetInt( p_intf, "qt-notification" )
? true : false; ? true : false;
...@@ -127,45 +126,51 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -127,45 +126,51 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
setVLCWindowsTitle(); setVLCWindowsTitle();
handleMainUi( settings ); handleMainUi( settings );
#if 0 /* dock part */ /* Create a Dock to get the playlist */
QDockWidget *dock = new QDockWidget( this ); dockPL = new QDockWidget( qtr("Playlist"), this );
PlaylistWidget *plw = new PlaylistWidget( p_intf ); dockPL->setAllowedAreas( Qt::LeftDockWidgetArea
dock->setWidget( plw ); | Qt::RightDockWidgetArea
addDockWidget( Qt::RightDockWidgetArea, dock ); | Qt::BottomDockWidgetArea );
dockPL->setFeatures( QDockWidget::AllDockWidgetFeatures );
QToolBar *tb = new QToolBar(this);
tb->addAction( "playlist", dock, SLOT( hide() ) );
addToolBar(Qt::RightToolBarArea, tb);
#endif
/* Menu Bar */ /* Menu Bar */
QVLCMenu::createMenuBar( this, p_intf, playlistEmbeddedFlag, QVLCMenu::createMenuBar( this, p_intf, visualSelectorEnabled );
visualSelectorEnabled );
/* Status Bar */ /****************
/** * Status Bar *
* TODO: clicking on the elapsed time should switch to the remaining time ****************/
**/
/** /* Widgets Creation*/
* TODO: do we add a label for the current Volume ?
**/
b_remainingTime = false; b_remainingTime = false;
timeLabel = new TimeLabel; timeLabel = new TimeLabel;
nameLabel = new QLabel; nameLabel = new QLabel;
speedLabel = new QLabel( "1.00x" ); speedLabel = new QLabel( "1.00x" );
speedLabel->setContextMenuPolicy ( Qt::CustomContextMenu );
timeLabel->setContextMenuPolicy ( Qt::CustomContextMenu );
/* Styling those labels */
timeLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel ); timeLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel );
speedLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel ); speedLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel );
nameLabel->setFrameStyle( QFrame::Sunken | QFrame::StyledPanel);
/* and adding those */
statusBar()->addWidget( nameLabel, 8 ); statusBar()->addWidget( nameLabel, 8 );
statusBar()->addPermanentWidget( speedLabel, 0 ); statusBar()->addPermanentWidget( speedLabel, 0 );
statusBar()->addPermanentWidget( timeLabel, 2 ); statusBar()->addPermanentWidget( timeLabel, 2 );
speedLabel->setContextMenuPolicy ( Qt::CustomContextMenu );
timeLabel->setContextMenuPolicy ( Qt::CustomContextMenu ); /* timeLabel behaviour:
- double clicking opens the goto time dialog
- right-clicking and clicking just toggle between remaining and
elapsed time.*/
CONNECT( timeLabel, timeLabelClicked(), this, toggleTimeDisplay() ); CONNECT( timeLabel, timeLabelClicked(), this, toggleTimeDisplay() );
CONNECT( timeLabel, customContextMenuRequested( QPoint ),
this, toggleTimeDisplay() );
CONNECT( timeLabel, timeLabelDoubleClicked(), THEDP, gotoTimeDialog() ); CONNECT( timeLabel, timeLabelDoubleClicked(), THEDP, gotoTimeDialog() );
/* Speed Label behaviour:
- right click gives the vertical speed slider */
CONNECT( speedLabel, customContextMenuRequested( QPoint ), CONNECT( speedLabel, customContextMenuRequested( QPoint ),
this, showSpeedMenu( QPoint ) ); this, showSpeedMenu( QPoint ) );
CONNECT( timeLabel, customContextMenuRequested( QPoint ),
this, toggleTimeDisplay() );
/********************** /**********************
* Systray Management * * Systray Management *
...@@ -177,7 +182,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -177,7 +182,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
{ {
if( b_systrayAvailable ){ if( b_systrayAvailable ){
b_createSystray = true; b_createSystray = true;
hide(); //FIXME hide(); //FIXME BUG HERE
} }
else msg_Warn( p_intf, "You can't minize if you haven't a system " else msg_Warn( p_intf, "You can't minize if you haven't a system "
"tray bar" ); "tray bar" );
...@@ -188,13 +193,18 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -188,13 +193,18 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
if( b_systrayAvailable && b_createSystray ) if( b_systrayAvailable && b_createSystray )
createSystray(); createSystray();
if( config_GetInt( p_intf, "qt-minimal-view" ) )
toggleMenus();
/* Init input manager */ /* Init input manager */
MainInputManager::getInstance( p_intf ); MainInputManager::getInstance( p_intf );
ON_TIMEOUT( updateOnTimer() ); ON_TIMEOUT( updateOnTimer() );
ON_TIMEOUT( debug() );
/**
* Various CONNECTs /********************
**/ * Various CONNECTs *
********************/
/* Connect the input manager to the GUI elements it manages */ /* Connect the input manager to the GUI elements it manages */
/* It is also connected to the control->slider, see the ControlsWidget */ /* It is also connected to the control->slider, see the ControlsWidget */
...@@ -203,7 +213,9 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -203,7 +213,9 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
CONNECT( THEMIM->getIM(), rateChanged( int ), this, setRate( int ) ); CONNECT( THEMIM->getIM(), rateChanged( int ), this, setRate( int ) );
/** Connects on nameChanged() */ /**
* Connects on nameChanged()
*/
/* Naming in the controller statusbar */ /* Naming in the controller statusbar */
CONNECT( THEMIM->getIM(), nameChanged( QString ), this, CONNECT( THEMIM->getIM(), nameChanged( QString ), this,
setName( QString ) ); setName( QString ) );
...@@ -246,6 +258,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -246,6 +258,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
var_AddCallback( p_playlist, "intf-show", IntfShowCB, p_intf ); var_AddCallback( p_playlist, "intf-show", IntfShowCB, p_intf );
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
} }
// DEBUG FIXME
hide();
} }
MainInterface::~MainInterface() MainInterface::~MainInterface()
...@@ -260,8 +274,8 @@ MainInterface::~MainInterface() ...@@ -260,8 +274,8 @@ MainInterface::~MainInterface()
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
} }
settings->setValue( "playlist-embedded", playlistEmbeddedFlag ); settings->setValue( "playlist-embedded", !dockPL->isFloating() );
settings->setValue( "adv-controls", getControlsVisibilityStatus() & 0x1 ); settings->setValue( "adv-controls", getControlsVisibilityStatus() & CONTROLS_ADVANCED );
settings->setValue( "pos", pos() ); settings->setValue( "pos", pos() );
settings->endGroup(); settings->endGroup();
delete settings; delete settings;
...@@ -309,10 +323,8 @@ void MainInterface::handleMainUi( QSettings *settings ) ...@@ -309,10 +323,8 @@ void MainInterface::handleMainUi( QSettings *settings )
controls = new ControlsWidget( p_intf, controls = new ControlsWidget( p_intf,
settings->value( "adv-controls", false ).toBool() ); settings->value( "adv-controls", false ).toBool() );
/* Configure the Controls */ /* Configure the Controls, the playlist button doesn't trigger THEDP
BUTTON_SET_IMG( controls->playlistButton, "" , playlist_icon.png, but the toggle from this MainInterface */
playlistEmbeddedFlag ? qtr( "Show playlist" ) :
qtr( "Open playlist" ) );
BUTTONACT( controls->playlistButton, togglePlaylist() ); BUTTONACT( controls->playlistButton, togglePlaylist() );
/* Add the controls Widget to the main Widget */ /* Add the controls Widget to the main Widget */
...@@ -361,6 +373,11 @@ void MainInterface::handleMainUi( QSettings *settings ) ...@@ -361,6 +373,11 @@ void MainInterface::handleMainUi( QSettings *settings )
setMinimumSize( PREF_W, addSize.height() ); setMinimumSize( PREF_W, addSize.height() );
} }
void MainInterface::debug()
{
msg_Dbg( p_intf, "size: %i - %i", controls->size().height(), controls->size().width() );
msg_Dbg( p_intf, "sizeHint: %i - %i", controls->sizeHint().height(), controls->sizeHint().width() );
}
/********************************************************************** /**********************************************************************
* Handling of sizing of the components * Handling of sizing of the components
**********************************************************************/ **********************************************************************/
...@@ -371,7 +388,7 @@ void MainInterface::calculateInterfaceSize() ...@@ -371,7 +388,7 @@ void MainInterface::calculateInterfaceSize()
{ {
width = bgWidget->widgetSize.width(); width = bgWidget->widgetSize.width();
height = bgWidget->widgetSize.height(); height = bgWidget->widgetSize.height();
assert( !(playlistWidget && playlistWidget->isVisible() ) ); // assert( !(playlistWidget));// && playlistWidget->isVisible() ) );
} }
else if( VISIBLE( playlistWidget ) ) else if( VISIBLE( playlistWidget ) )
{ {
...@@ -540,14 +557,45 @@ int MainInterface::controlVideo( void *p_window, int i_query, va_list args ) ...@@ -540,14 +557,45 @@ int MainInterface::controlVideo( void *p_window, int i_query, va_list args )
**/ **/
void MainInterface::togglePlaylist() void MainInterface::togglePlaylist()
{ {
// Toggle the playlist dialog if not embedded and return /* If no playlist exist, then create one and attach it to the DockPL*/
if( !playlistWidget )
{
msg_Dbg( p_intf, "Creating a new playlist" );
playlistWidget = new PlaylistWidget( p_intf );
if(bgWidget)
CONNECT( playlistWidget, artSet( QString ), bgWidget, setArt(QString) );
playlistWidget->widgetSize = settings->value( "playlistSize",
QSize( 650, 310 ) ).toSize();
/* Add it to the parent DockWidget */
dockPL->setWidget( playlistWidget );
/* Add the dock to the main Interface */
addDockWidget( Qt::BottomDockWidgetArea, dockPL );
msg_Dbg( p_intf, "Creating a new playlist" );
/* Make the playlist floating is requested. Default is not. */
if( !settings->value( "playlist-embedded", true ).toBool() );
{
msg_Dbg( p_intf, "we don't want it inside");
dockPL->setFloating( true );
}
}
else
{
/* toggle the display */
TOGGLEV( dockPL );
}
#if 0 // Toggle the playlist dialog if not embedded and return
if( !playlistEmbeddedFlag ) if( !playlistEmbeddedFlag )
{ {
if( playlistWidget ) if( playlistWidget )
{ {
/// \todo Destroy it /// \todo Destroy it
} }
THEDP->playlistDialog();
return; return;
} }
...@@ -555,13 +603,8 @@ void MainInterface::togglePlaylist() ...@@ -555,13 +603,8 @@ void MainInterface::togglePlaylist()
if( !playlistWidget ) if( !playlistWidget )
{ {
PlaylistDialog::killInstance(); PlaylistDialog::killInstance();
playlistWidget = new PlaylistWidget( p_intf );
mainLayout->insertWidget( 0, playlistWidget ); mainLayout->insertWidget( 0, playlistWidget );
playlistWidget->widgetSize = settings->value( "playlistSize",
QSize( 650, 310 ) ).toSize();
playlistWidget->hide(); playlistWidget->hide();
if(bgWidget)
CONNECT( playlistWidget, artSet( QString ), bgWidget, setArt(QString) );
} }
// And toggle visibility // And toggle visibility
...@@ -589,12 +632,14 @@ void MainInterface::togglePlaylist() ...@@ -589,12 +632,14 @@ void MainInterface::togglePlaylist()
} }
if( VISIBLE( bgWidget ) ) bgWidget->hide(); if( VISIBLE( bgWidget ) ) bgWidget->hide();
} }
#endif
doComponentsUpdate(); doComponentsUpdate();
} }
void MainInterface::undockPlaylist() void MainInterface::undockPlaylist()
{ {
dockPL->setFloating( true );
#if 0
if( playlistWidget ) if( playlistWidget )
{ {
playlistWidget->hide(); playlistWidget->hide();
...@@ -616,6 +661,7 @@ void MainInterface::undockPlaylist() ...@@ -616,6 +661,7 @@ void MainInterface::undockPlaylist()
doComponentsUpdate(); doComponentsUpdate();
THEDP->playlistDialog(); THEDP->playlistDialog();
} }
#endif
} }
#if 0 #if 0
...@@ -662,8 +708,8 @@ void MainInterface::toggleAdvanced() ...@@ -662,8 +708,8 @@ void MainInterface::toggleAdvanced()
int MainInterface::getControlsVisibilityStatus() int MainInterface::getControlsVisibilityStatus()
{ {
return( (controls->isVisible() ? 0x2 : 0x0 ) return( (controls->isVisible() ? CONTROLS_VISIBLE : CONTROLS_HIDDEN )
+ controls->b_advancedVisible ); + CONTROLS_ADVANCED * controls->b_advancedVisible );
} }
/************************************************************************ /************************************************************************
...@@ -674,7 +720,9 @@ void MainInterface::setDisplayPosition( float pos, int time, int length ) ...@@ -674,7 +720,9 @@ void MainInterface::setDisplayPosition( float pos, int time, int length )
char psz_length[MSTRTIME_MAX_SIZE], psz_time[MSTRTIME_MAX_SIZE]; char psz_length[MSTRTIME_MAX_SIZE], psz_time[MSTRTIME_MAX_SIZE];
secstotimestr( psz_length, length ); secstotimestr( psz_length, length );
secstotimestr( psz_time, b_remainingTime ? length - time : time ); secstotimestr( psz_time, b_remainingTime ? length - time : time );
QString title; title.sprintf( "%s/%s", psz_time, psz_length ); QString title; title.sprintf( "%s/%s", psz_time, psz_length );
/* Add a minus to remaining time*/
if( b_remainingTime ) timeLabel->setText( " -"+title+" " ); if( b_remainingTime ) timeLabel->setText( " -"+title+" " );
else timeLabel->setText( " "+title+" " ); else timeLabel->setText( " "+title+" " );
} }
...@@ -686,15 +734,20 @@ void MainInterface::toggleTimeDisplay() ...@@ -686,15 +734,20 @@ void MainInterface::toggleTimeDisplay()
void MainInterface::setName( QString name ) void MainInterface::setName( QString name )
{ {
input_name = name; input_name = name; /* store it for the QSystray use */
nameLabel->setText( " " + name+" " ); /* Display it in the status bar, but also as a Tooltip in case it doesn't
fit in the label */
nameLabel->setText( " " + name + " " );
nameLabel->setToolTip( " " + name +" " );
} }
void MainInterface::setStatus( int status ) void MainInterface::setStatus( int status )
{ {
/* Forward the status to the controls to toggle Play/Pause */
controls->setStatus( status ); controls->setStatus( status );
/* And in the systray for the menu */
if( sysTray ) if( sysTray )
updateSystrayMenu( status ); QVLCMenu::updateSystrayMenu( this, p_intf );
} }
void MainInterface::setRate( int rate ) void MainInterface::setRate( int rate )
...@@ -747,16 +800,6 @@ void MainInterface::createSystray() ...@@ -747,16 +800,6 @@ void MainInterface::createSystray()
this, handleSystrayClick( QSystemTrayIcon::ActivationReason ) ); this, handleSystrayClick( QSystemTrayIcon::ActivationReason ) );
} }
/**
* Update the menu of the Systray Icon.
* May be unneedded, since it just calls QVLCMenu::update
* FIXME !!!
**/
void MainInterface::updateSystrayMenu( int status )
{
QVLCMenu::updateSystrayMenu( this, p_intf ) ;
}
/** /**
* Updates the Systray Icon's menu and toggle the main interface * Updates the Systray Icon's menu and toggle the main interface
*/ */
...@@ -818,7 +861,6 @@ void MainInterface::handleSystrayClick( ...@@ -818,7 +861,6 @@ void MainInterface::handleSystrayClick(
/** /**
* Updates the name of the systray Icon tooltip. * Updates the name of the systray Icon tooltip.
* Doesn't check if the systray exists, check before you call it. * Doesn't check if the systray exists, check before you call it.
* FIXME !!! Fusion with next function ?
**/ **/
void MainInterface::updateSystrayTooltipName( QString name ) void MainInterface::updateSystrayTooltipName( QString name )
{ {
...@@ -853,7 +895,6 @@ void MainInterface::updateSystrayTooltipStatus( int i_status ) ...@@ -853,7 +895,6 @@ void MainInterface::updateSystrayTooltipStatus( int i_status )
case PLAYING_S: case PLAYING_S:
{ {
sysTray->setToolTip( input_name ); sysTray->setToolTip( input_name );
//+ " - " + qtr( "Playing" ) );
break; break;
} }
case PAUSE_S: case PAUSE_S:
...@@ -916,6 +957,7 @@ void MainInterface::dragLeaveEvent(QDragLeaveEvent *event) ...@@ -916,6 +957,7 @@ void MainInterface::dragLeaveEvent(QDragLeaveEvent *event)
************************************************************************/ ************************************************************************/
void MainInterface::customEvent( QEvent *event ) void MainInterface::customEvent( QEvent *event )
{ {
#if 0
if( event->type() == PLDockEvent_Type ) if( event->type() == PLDockEvent_Type )
{ {
PlaylistDialog::killInstance(); PlaylistDialog::killInstance();
...@@ -924,7 +966,9 @@ void MainInterface::customEvent( QEvent *event ) ...@@ -924,7 +966,9 @@ void MainInterface::customEvent( QEvent *event )
QVLCMenu::createMenuBar(this, p_intf, true, visualSelectorEnabled); QVLCMenu::createMenuBar(this, p_intf, true, visualSelectorEnabled);
togglePlaylist(); togglePlaylist();
} }
else if ( event->type() == SetVideoOnTopEvent_Type ) #endif
/*else */
if ( event->type() == SetVideoOnTopEvent_Type )
{ {
SetVideoOnTopQtEvent* p_event = (SetVideoOnTopQtEvent*)event; SetVideoOnTopQtEvent* p_event = (SetVideoOnTopQtEvent*)event;
if( p_event->OnTop() ) if( p_event->OnTop() )
......
...@@ -47,6 +47,13 @@ class ControlsWidget; ...@@ -47,6 +47,13 @@ class ControlsWidget;
class SpeedControlWidget; class SpeedControlWidget;
class QMenu; class QMenu;
class QSize; class QSize;
class QDockWidet;
enum{
CONTROLS_HIDDEN = 0x0,
CONTROLS_VISIBLE = 0x1,
CONTROLS_ADVANCED = 0x2
};
class MainInterface : public QVLCMW class MainInterface : public QVLCMW
{ {
...@@ -104,8 +111,8 @@ private: ...@@ -104,8 +111,8 @@ private:
BackgroundWidget *bgWidget; BackgroundWidget *bgWidget;
VisualSelector *visualSelector; VisualSelector *visualSelector;
PlaylistWidget *playlistWidget; PlaylistWidget *playlistWidget;
QDockWidget *dockPL;
bool playlistEmbeddedFlag;
bool videoEmbeddedFlag; bool videoEmbeddedFlag;
bool alwaysVideoFlag; bool alwaysVideoFlag;
bool visualSelectorEnabled; bool visualSelectorEnabled;
...@@ -114,11 +121,12 @@ private: ...@@ -114,11 +121,12 @@ private:
InputManager *main_input_manager; InputManager *main_input_manager;
input_thread_t *p_input; ///< Main input associated to the playlist input_thread_t *p_input; ///< Main input associated to the playlist
/* Status Bar */
QLabel *timeLabel; QLabel *timeLabel;
QLabel *speedLabel; QLabel *speedLabel;
QLabel *nameLabel; QLabel *nameLabel;
bool b_remainingTime; bool b_remainingTime; /* showing elapsed or remaining time */
void customEvent( QEvent *); void customEvent( QEvent *);
public slots: public slots:
...@@ -128,6 +136,7 @@ public slots: ...@@ -128,6 +136,7 @@ public slots:
void toggleUpdateSystrayMenu(); void toggleUpdateSystrayMenu();
void toggleAdvanced(); void toggleAdvanced();
private slots: private slots:
void debug();
void updateOnTimer(); void updateOnTimer();
void setStatus( int ); void setStatus( int );
...@@ -140,7 +149,6 @@ private slots: ...@@ -140,7 +149,6 @@ private slots:
void visual(); void visual();
#endif #endif
void handleSystrayClick( QSystemTrayIcon::ActivationReason ); void handleSystrayClick( QSystemTrayIcon::ActivationReason );
void updateSystrayMenu( int );
void updateSystrayTooltipName( QString ); void updateSystrayTooltipName( QString );
void updateSystrayTooltipStatus( int ); void updateSystrayTooltipStatus( int );
void showSpeedMenu( QPoint ); void showSpeedMenu( QPoint );
......
...@@ -164,15 +164,11 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object, ...@@ -164,15 +164,11 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object,
* Main Menu Bar Creation * Main Menu Bar Creation
**/ **/
void QVLCMenu::createMenuBar( MainInterface *mi, intf_thread_t *p_intf, void QVLCMenu::createMenuBar( MainInterface *mi, intf_thread_t *p_intf,
bool playlist,
bool visual_selector_enabled ) bool visual_selector_enabled )
{ {
QMenuBar *bar = mi->menuBar(); QMenuBar *bar = mi->menuBar();
BAR_ADD( FileMenu(), qtr( "&Media" ) ); BAR_ADD( FileMenu(), qtr( "&Media" ) );
if( playlist ) BAR_ADD( PlaylistMenu( p_intf, mi ), qtr( "&Playlist" ) );
{
BAR_ADD( PlaylistMenu( mi,p_intf ), qtr( "&Playlist" ) );
}
BAR_ADD( ToolsMenu( p_intf, mi, visual_selector_enabled, true ), qtr( "&Tools" ) ); BAR_ADD( ToolsMenu( p_intf, mi, visual_selector_enabled, true ), qtr( "&Tools" ) );
BAR_DADD( AudioMenu( p_intf, NULL ), qtr( "&Audio" ), 2 ); BAR_DADD( AudioMenu( p_intf, NULL ), qtr( "&Audio" ), 2 );
BAR_DADD( VideoMenu( p_intf, NULL ), qtr( "&Video" ), 1 ); BAR_DADD( VideoMenu( p_intf, NULL ), qtr( "&Video" ), 1 );
...@@ -213,8 +209,7 @@ QMenu *QVLCMenu::FileMenu() ...@@ -213,8 +209,7 @@ QMenu *QVLCMenu::FileMenu()
return menu; return menu;
} }
/* Playlist Menu, undocked when playlist is undocked */ QMenu *QVLCMenu::PlaylistMenu( intf_thread_t *p_intf, MainInterface *mi )
QMenu *QVLCMenu::PlaylistMenu( MainInterface *mi, intf_thread_t *p_intf )
{ {
QMenu *menu = new QMenu(); QMenu *menu = new QMenu();
menu->addMenu( SDMenu( p_intf ) ); menu->addMenu( SDMenu( p_intf ) );
...@@ -264,13 +259,15 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi, ...@@ -264,13 +259,15 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
QAction *action=menu->addAction( qtr( "Minimal View..." ), mi, QAction *action=menu->addAction( qtr( "Minimal View..." ), mi,
SLOT( toggleMenus() ), qtr( "Ctrl+H" ) ); SLOT( toggleMenus() ), qtr( "Ctrl+H" ) );
action->setCheckable( true ); action->setCheckable( true );
if( mi->getControlsVisibilityStatus() & 0x2 ) action->setChecked( true ); if( mi->getControlsVisibilityStatus() & CONTROLS_VISIBLE )
action->setChecked( true );
/* Advanced Controls */ /* Advanced Controls */
action = menu->addAction( qtr( "Advanced controls" ), mi, action = menu->addAction( qtr( "Advanced controls" ), mi,
SLOT( toggleAdvanced() ) ); SLOT( toggleAdvanced() ) );
action->setCheckable( true ); action->setCheckable( true );
if( mi->getControlsVisibilityStatus() & 0x1 ) action->setChecked( true ); if( mi->getControlsVisibilityStatus() & CONTROLS_ADVANCED )
action->setChecked( true );
#if 0 /* For Visualisations. Not yet working */ #if 0 /* For Visualisations. Not yet working */
adv = menu->addAction( qtr( "Visualizations selector" ), adv = menu->addAction( qtr( "Visualizations selector" ),
mi, SLOT( visual() ) ); mi, SLOT( visual() ) );
......
...@@ -73,12 +73,12 @@ class QVLCMenu : public QObject ...@@ -73,12 +73,12 @@ class QVLCMenu : public QObject
Q_OBJECT; Q_OBJECT;
public: public:
static void createMenuBar( MainInterface *mi, intf_thread_t *, static void createMenuBar( MainInterface *mi, intf_thread_t *,
bool, bool ); bool );
/* Menus */ /* Menus */
static QMenu *FileMenu(); static QMenu *FileMenu();
static QMenu *SDMenu( intf_thread_t * ); static QMenu *SDMenu( intf_thread_t * );
static QMenu *PlaylistMenu( MainInterface *, intf_thread_t *); static QMenu *PlaylistMenu( intf_thread_t *, MainInterface * );
static QMenu *ToolsMenu( intf_thread_t *, MainInterface *, bool, bool with = true ); static QMenu *ToolsMenu( intf_thread_t *, MainInterface *, bool, bool with = true );
static QMenu *NavigMenu( intf_thread_t * , QMenu * ); static QMenu *NavigMenu( intf_thread_t * , QMenu * );
static QMenu *VideoMenu( intf_thread_t * , QMenu * ); static QMenu *VideoMenu( intf_thread_t * , QMenu * );
......
...@@ -6,30 +6,51 @@ ...@@ -6,30 +6,51 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>462</width> <width>700</width>
<height>407</height> <height>423</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<widget class="QGroupBox" name="diskGroupBox" > <widget class="QGroupBox" name="diskGroupBox" >
<property name="title" > <property name="title" >
<string>_("Disc selection")</string> <string>_("Disc selection")</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" > <property name="leftMargin" >
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="0" column="7" > <item row="0" column="7" >
...@@ -142,7 +163,7 @@ ...@@ -142,7 +163,7 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="1" colspan="2" > <item row="1" column="1" colspan="3" >
<widget class="QCheckBox" name="dvdsimple" > <widget class="QCheckBox" name="dvdsimple" >
<property name="toolTip" > <property name="toolTip" >
<string>_("Disable DVD Menus (for compatibility)")</string> <string>_("Disable DVD Menus (for compatibility)")</string>
...@@ -157,22 +178,26 @@ ...@@ -157,22 +178,26 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="diskOptionBox" > <widget class="QGroupBox" name="diskOptionBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" > <property name="title" >
<string>_("Starting position")</string> <string>_("Starting position")</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" > <property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="1" column="0" > <item row="1" column="0" >
...@@ -217,7 +242,7 @@ ...@@ -217,7 +242,7 @@
<set>Qt::AlignRight</set> <set>Qt::AlignRight</set>
</property> </property>
<property name="suffix" > <property name="suffix" >
<string/> <string/>
</property> </property>
<property name="minimum" > <property name="minimum" >
<number>0</number> <number>0</number>
...@@ -232,22 +257,26 @@ ...@@ -232,22 +257,26 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="diskOptionBox_2" > <widget class="QGroupBox" name="diskOptionBox_2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" > <property name="title" >
<string>_("Audio and Subtitles")</string> <string>_("Audio and Subtitles")</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" > <property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="1" column="0" > <item row="1" column="0" >
...@@ -268,12 +297,12 @@ ...@@ -268,12 +297,12 @@
<property name="prefix" > <property name="prefix" >
<string/> <string/>
</property> </property>
<property name="maximum" >
<number>7</number>
</property>
<property name="minimum" > <property name="minimum" >
<number>-1</number> <number>-1</number>
</property> </property>
<property name="maximum" >
<number>7</number>
</property>
<property name="value" > <property name="value" >
<number>-1</number> <number>-1</number>
</property> </property>
...@@ -297,12 +326,12 @@ ...@@ -297,12 +326,12 @@
<property name="suffix" > <property name="suffix" >
<string/> <string/>
</property> </property>
<property name="maximum" >
<number>31</number>
</property>
<property name="minimum" > <property name="minimum" >
<number>-1</number> <number>-1</number>
</property> </property>
<property name="maximum" >
<number>31</number>
</property>
<property name="value" > <property name="value" >
<number>-1</number> <number>-1</number>
</property> </property>
......
...@@ -6,14 +6,12 @@ ...@@ -6,14 +6,12 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>500</width>
<height>194</height> <height>216</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
<hsizetype>7</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -22,22 +20,26 @@ ...@@ -22,22 +20,26 @@
<string>_("Open File")</string> <string>_("Open File")</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" > <property name="leftMargin" >
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="1" column="1" colspan="2" > <item row="1" column="1" colspan="2" >
<widget class="QComboBox" name="fileInput" > <widget class="QComboBox" name="fileInput" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable" > <property name="editable" >
<bool>true</bool> <bool>true</bool>
</property> </property>
...@@ -95,9 +97,7 @@ ...@@ -95,9 +97,7 @@
<item row="4" column="0" colspan="3" > <item row="4" column="0" colspan="3" >
<widget class="QFrame" name="subFrame" > <widget class="QFrame" name="subFrame" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
<hsizetype>1</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -106,10 +106,22 @@ ...@@ -106,10 +106,22 @@
<enum>QFrame::StyledPanel</enum> <enum>QFrame::StyledPanel</enum>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" > <property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="1" column="7" > <item row="1" column="7" >
...@@ -142,7 +154,7 @@ ...@@ -142,7 +154,7 @@
<widget class="QComboBox" name="alignSubComboBox" > <widget class="QComboBox" name="alignSubComboBox" >
<property name="minimumSize" > <property name="minimumSize" >
<size> <size>
<width>80</width> <width>100</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
...@@ -199,14 +211,6 @@ ...@@ -199,14 +211,6 @@
</item> </item>
<item row="0" column="0" colspan="6" > <item row="0" column="0" colspan="6" >
<widget class="QComboBox" name="subInput" > <widget class="QComboBox" name="subInput" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable" > <property name="editable" >
<bool>true</bool> <bool>true</bool>
</property> </property>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment