Commit 352de5a3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Coding style fixes by Rémi Duraffort.

parent 0c86a4b8
...@@ -61,7 +61,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -61,7 +61,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
layout->addWidget( mainTab, 0, 0, 1, 5 ); layout->addWidget( mainTab, 0, 0, 1, 5 );
QPushButton *closeButton = new QPushButton( qtr( "Close" ) ); QPushButton *closeButton = new QPushButton( qtr( "Close" ) );
layout->addWidget( closeButton, 1, 4, 1, 1); layout->addWidget( closeButton, 1, 4, 1, 1 );
CONNECT( closeButton, clicked(), this, close() ); CONNECT( closeButton, clicked(), this, close() );
readSettings( "EPanel", QSize( 400, 280 ), QPoint( 450, 0 ) ); readSettings( "EPanel", QSize( 400, 280 ), QPoint( 450, 0 ) );
......
...@@ -66,11 +66,11 @@ GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -66,11 +66,11 @@ GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
QLabel *helpFormat = new QLabel( timeEdit->displayFormat() ); QLabel *helpFormat = new QLabel( timeEdit->displayFormat() );
helpFormat->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Preferred ); helpFormat->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Preferred );
QSpacerItem *spacerBox = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSpacerItem *spacerBox = new QSpacerItem( 20, 10, QSizePolicy::Minimum,
QSizePolicy::Fixed); QSizePolicy::Fixed );
QSpacerItem *spacerItem = new QSpacerItem(20, 3, QSizePolicy::Minimum, QSpacerItem *spacerItem = new QSpacerItem( 20, 3, QSizePolicy::Minimum,
QSizePolicy::Expanding); QSizePolicy::Expanding );
boxLayout->addWidget( timeIntro, 0, 0, 1, 2 ); boxLayout->addWidget( timeIntro, 0, 0, 1, 2 );
boxLayout->addItem( spacerBox, 1, 0, 1, 2 ); boxLayout->addItem( spacerBox, 1, 0, 1, 2 );
......
...@@ -35,13 +35,13 @@ public: ...@@ -35,13 +35,13 @@ public:
static GotoTimeDialog * getInstance( intf_thread_t *p_intf ) static GotoTimeDialog * getInstance( intf_thread_t *p_intf )
{ {
if( !instance) if( !instance)
instance = new GotoTimeDialog( p_intf); instance = new GotoTimeDialog( p_intf );
return instance; return instance;
} }
virtual ~GotoTimeDialog(); virtual ~GotoTimeDialog();
private: private:
GotoTimeDialog( intf_thread_t *); GotoTimeDialog( intf_thread_t * );
static GotoTimeDialog *instance; static GotoTimeDialog *instance;
QTimeEdit *timeEdit; QTimeEdit *timeEdit;
private slots: private slots:
......
...@@ -109,7 +109,7 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf, ...@@ -109,7 +109,7 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
progressBar = new QProgressBar; progressBar = new QProgressBar;
progressBar->setMaximum( 1000 ); progressBar->setMaximum( 1000 );
progressBar->setTextVisible( true ); progressBar->setTextVisible( true );
progressBar->setOrientation(Qt::Horizontal); progressBar->setOrientation( Qt::Horizontal );
layout->addWidget( progressBar ); layout->addWidget( progressBar );
} }
else if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL ) else if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL )
...@@ -174,7 +174,7 @@ void InteractionDialog::update() ...@@ -174,7 +174,7 @@ void InteractionDialog::update()
{ {
assert( progressBar ); assert( progressBar );
progressBar->setValue( (int)(p_dialog->val.f_float*1000) ); progressBar->setValue( (int)(p_dialog->val.f_float*1000) );
msg_Dbg( p_intf, "Setting progress to %i\n", progressBar->value() ); msg_Dbg( p_intf, "Setting progress to %i", progressBar->value() );
} }
} }
......
...@@ -60,9 +60,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -60,9 +60,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
messages->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); messages->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
layout->addWidget( messages, 0, 0, 1, 0 ); layout->addWidget( messages, 0, 0, 1, 0 );
layout->addWidget( verbosityLabel, 1, 0, 1,1 ); layout->addWidget( verbosityLabel, 1, 0, 1, 1 );
layout->addWidget( verbosityBox, 1, 1 ); layout->addWidget( verbosityBox, 1, 1 );
layout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ), 1,2 ); layout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ), 1, 2 );
layout->addWidget( saveLogButton, 1, 3 ); layout->addWidget( saveLogButton, 1, 3 );
layout->addWidget( clearButton, 1, 4 ); layout->addWidget( clearButton, 1, 4 );
layout->addWidget( closeButton, 1, 5 ); layout->addWidget( closeButton, 1, 5 );
...@@ -103,7 +103,7 @@ void MessagesDialog::updateLog() ...@@ -103,7 +103,7 @@ void MessagesDialog::updateLog()
{ {
messages->setFontItalic( true ); messages->setFontItalic( true );
messages->setTextColor( "darkBlue" ); messages->setTextColor( "darkBlue" );
messages->insertPlainText( qfu(p_sub->p_msg[i_start].psz_module)); messages->insertPlainText( qfu( p_sub->p_msg[i_start].psz_module ) );
} }
else else
continue; continue;
......
...@@ -39,13 +39,13 @@ public: ...@@ -39,13 +39,13 @@ public:
static MessagesDialog * getInstance( intf_thread_t *p_intf ) static MessagesDialog * getInstance( intf_thread_t *p_intf )
{ {
if( !instance) if( !instance)
instance = new MessagesDialog( p_intf); instance = new MessagesDialog( p_intf );
return instance; return instance;
} }
virtual ~MessagesDialog(); virtual ~MessagesDialog();
private: private:
MessagesDialog( intf_thread_t *); MessagesDialog( intf_thread_t * );
static MessagesDialog *instance; static MessagesDialog *instance;
QSpinBox *verbosityBox; QSpinBox *verbosityBox;
QTextEdit *messages; QTextEdit *messages;
......
...@@ -70,8 +70,8 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal, ...@@ -70,8 +70,8 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
/* Buttons Creation */ /* Buttons Creation */
QSizePolicy buttonSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ); QSizePolicy buttonSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );
buttonSizePolicy.setHorizontalStretch(0); buttonSizePolicy.setHorizontalStretch( 0 );
buttonSizePolicy.setVerticalStretch(0); buttonSizePolicy.setVerticalStretch( 0 );
/* Play Button */ /* Play Button */
playButton = new QToolButton( this ); playButton = new QToolButton( this );
...@@ -88,13 +88,13 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal, ...@@ -88,13 +88,13 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
/* Menu for the Play button */ /* Menu for the Play button */
QMenu * openButtonMenu = new QMenu( "Open" ); QMenu * openButtonMenu = new QMenu( "Open" );
openButtonMenu->addAction( qtr("&Enqueue"), this, SLOT( enqueue() ), openButtonMenu->addAction( qtr( "&Enqueue" ), this, SLOT( enqueue() ),
QKeySequence( "Alt+E") ); QKeySequence( "Alt+E") );
openButtonMenu->addAction( qtr("&Play"), this, SLOT( play() ), openButtonMenu->addAction( qtr( "&Play" ), this, SLOT( play() ),
QKeySequence( "Alt+P" ) ); QKeySequence( "Alt+P" ) );
openButtonMenu->addAction( qtr("&Stream"), this, SLOT( stream() ) , openButtonMenu->addAction( qtr( "&Stream" ), this, SLOT( stream() ) ,
QKeySequence( "Alt+S" ) ); QKeySequence( "Alt+S" ) );
openButtonMenu->addAction( qtr("&Convert"), this, SLOT( transcode() ) , openButtonMenu->addAction( qtr( "&Convert" ), this, SLOT( transcode() ) ,
QKeySequence( "Alt+C" ) ); QKeySequence( "Alt+C" ) );
playButton->setMenu( openButtonMenu ); playButton->setMenu( openButtonMenu );
...@@ -103,7 +103,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal, ...@@ -103,7 +103,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
ui.buttonsBox->addButton( cancelButton, QDialogButtonBox::RejectRole ); ui.buttonsBox->addButton( cancelButton, QDialogButtonBox::RejectRole );
/* Force MRL update on tab change */ /* Force MRL update on tab change */
CONNECT( ui.Tab, currentChanged(int), this, signalCurrent()); CONNECT( ui.Tab, currentChanged(int), this, signalCurrent() );
CONNECT( fileOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) ); CONNECT( fileOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
CONNECT( netOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) ); CONNECT( netOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
...@@ -120,21 +120,21 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal, ...@@ -120,21 +120,21 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
this, newCachingMethod(QString) ); this, newCachingMethod(QString) );
/* Advanced frame Connects */ /* Advanced frame Connects */
CONNECT( ui.slaveText, textChanged(QString), this, updateMRL()); CONNECT( ui.slaveText, textChanged(QString), this, updateMRL() );
CONNECT( ui.cacheSpinBox, valueChanged(int), this, updateMRL()); CONNECT( ui.cacheSpinBox, valueChanged(int), this, updateMRL() );
CONNECT( ui.startTimeSpinBox, valueChanged(int), this, updateMRL()); CONNECT( ui.startTimeSpinBox, valueChanged(int), this, updateMRL() );
BUTTONACT( ui.advancedCheckBox , toggleAdvancedPanel() ); BUTTONACT( ui.advancedCheckBox , toggleAdvancedPanel() );
/* Buttons action */ /* Buttons action */
BUTTONACT( playButton, selectSlots()); BUTTONACT( playButton, selectSlots() );
BUTTONACT( cancelButton, cancel()); BUTTONACT( cancelButton, cancel() );
/* At creation time, modify the default buttons */ /* At creation time, modify the default buttons */
if ( i_action_flag ) setMenuAction(); if ( i_action_flag ) setMenuAction();
/* Initialize caching */ /* Initialize caching */
storedMethod = ""; storedMethod = "";
newCachingMethod("file-caching"); newCachingMethod( "file-caching" );
mainHeight = advHeight = 0; mainHeight = advHeight = 0;
} }
...@@ -149,17 +149,17 @@ void OpenDialog::setMenuAction() ...@@ -149,17 +149,17 @@ void OpenDialog::setMenuAction()
switch ( i_action_flag ) switch ( i_action_flag )
{ {
case OPEN_AND_STREAM: case OPEN_AND_STREAM:
playButton->setText( qtr("&Stream") ); playButton->setText( qtr( "&Stream" ) );
break; break;
case OPEN_AND_SAVE: case OPEN_AND_SAVE:
playButton->setText( qtr("&Convert / Save") ); playButton->setText( qtr( "&Convert / Save" ) );
break; break;
case OPEN_AND_ENQUEUE: case OPEN_AND_ENQUEUE:
playButton->setText( qtr("&Enqueue") ); playButton->setText( qtr( "&Enqueue" ) );
break; break;
case OPEN_AND_PLAY: case OPEN_AND_PLAY:
default: default:
playButton->setText( qtr("&Play") ); playButton->setText( qtr( "&Play" ) );
} }
} }
...@@ -180,7 +180,7 @@ void OpenDialog::toggleAdvancedPanel() ...@@ -180,7 +180,7 @@ void OpenDialog::toggleAdvancedPanel()
if( ui.advancedFrame->isVisible() ) { if( ui.advancedFrame->isVisible() ) {
ui.advancedFrame->hide(); ui.advancedFrame->hide();
#ifndef WIN32 #ifndef WIN32
setMinimumHeight(1); setMinimumHeight( 1 );
resize( width(), mainHeight ); resize( width(), mainHeight );
#endif #endif
} else { } else {
...@@ -322,16 +322,16 @@ void OpenDialog::updateMRL() { ...@@ -322,16 +322,16 @@ void OpenDialog::updateMRL() {
if( ui.slaveCheckbox->isChecked() ) { if( ui.slaveCheckbox->isChecked() ) {
mrl += " :input-slave=" + ui.slaveText->text(); mrl += " :input-slave=" + ui.slaveText->text();
} }
int i_cache = config_GetInt( p_intf, qta(storedMethod) ); int i_cache = config_GetInt( p_intf, qta( storedMethod ) );
if( i_cache != ui.cacheSpinBox->value() ) { if( i_cache != ui.cacheSpinBox->value() ) {
mrl += QString(" :%1=%2").arg(storedMethod). mrl += QString( " :%1=%2" ).arg( storedMethod ).
arg(ui.cacheSpinBox->value()); arg( ui.cacheSpinBox->value() );
} }
if( ui.startTimeSpinBox->value()) { if( ui.startTimeSpinBox->value() ) {
mrl += " :start-time=" + QString("%1"). mrl += " :start-time=" + QString( "%1" ).
arg(ui.startTimeSpinBox->value()); arg( ui.startTimeSpinBox->value() );
} }
ui.advancedLineInput->setText(mrl); ui.advancedLineInput->setText( mrl );
} }
void OpenDialog::newCachingMethod( QString method ) void OpenDialog::newCachingMethod( QString method )
......
...@@ -42,7 +42,7 @@ public: ...@@ -42,7 +42,7 @@ public:
static OpenDialog * getInstance( QWidget *parent, intf_thread_t *p_intf, static OpenDialog * getInstance( QWidget *parent, intf_thread_t *p_intf,
int _action_flag = 0 ) int _action_flag = 0 )
{ {
if( !instance) if( !instance )
instance = new OpenDialog( parent, p_intf, false, _action_flag ); instance = new OpenDialog( parent, p_intf, false, _action_flag );
else else
{ {
......
...@@ -57,7 +57,7 @@ PlaylistDialog::~PlaylistDialog() ...@@ -57,7 +57,7 @@ PlaylistDialog::~PlaylistDialog()
writeSettings( "playlist" ); writeSettings( "playlist" );
} }
void PlaylistDialog::dropEvent(QDropEvent *event) void PlaylistDialog::dropEvent( QDropEvent *event )
{ {
const QMimeData *mimeData = event->mimeData(); const QMimeData *mimeData = event->mimeData();
foreach( QUrl url, mimeData->urls() ) { foreach( QUrl url, mimeData->urls() ) {
...@@ -69,15 +69,15 @@ void PlaylistDialog::dropEvent(QDropEvent *event) ...@@ -69,15 +69,15 @@ void PlaylistDialog::dropEvent(QDropEvent *event)
} }
event->acceptProposedAction(); event->acceptProposedAction();
} }
void PlaylistDialog::dragEnterEvent(QDragEnterEvent *event) void PlaylistDialog::dragEnterEvent( QDragEnterEvent *event )
{ {
event->acceptProposedAction(); event->acceptProposedAction();
} }
void PlaylistDialog::dragMoveEvent(QDragMoveEvent *event) void PlaylistDialog::dragMoveEvent( QDragMoveEvent *event )
{ {
event->acceptProposedAction(); event->acceptProposedAction();
} }
void PlaylistDialog::dragLeaveEvent(QDragLeaveEvent *event) void PlaylistDialog::dragLeaveEvent( QDragLeaveEvent *event )
{ {
event->accept(); event->accept();
} }
......
...@@ -33,14 +33,14 @@ class PodcastConfigDialog : public QVLCFrame ...@@ -33,14 +33,14 @@ class PodcastConfigDialog : public QVLCFrame
public: public:
static PodcastConfigDialog * getInstance( intf_thread_t *p_intf ) static PodcastConfigDialog * getInstance( intf_thread_t *p_intf )
{ {
if( !instance) if( !instance )
instance = new PodcastConfigDialog( p_intf ); instance = new PodcastConfigDialog( p_intf );
return instance; return instance;
} }
virtual ~PodcastConfigDialog(); virtual ~PodcastConfigDialog();
private: private:
PodcastConfigDialog( intf_thread_t *); PodcastConfigDialog( intf_thread_t * );
static PodcastConfigDialog *instance; static PodcastConfigDialog *instance;
Ui::PodcastConfiguration ui; Ui::PodcastConfiguration ui;
public slots: public slots:
......
...@@ -92,7 +92,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -92,7 +92,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
main_layout->setColumnStretch( 0, 1 ); main_layout->setColumnStretch( 0, 1 );
main_layout->setColumnStretch( 1, 3 ); main_layout->setColumnStretch( 1, 3 );
main_layout->setRowStretch( 2, 4); main_layout->setRowStretch( 2, 4 );
setLayout( main_layout ); setLayout( main_layout );
...@@ -102,7 +102,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -102,7 +102,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
for( int i = 0; i < SPrefsMax ; i++ ) simple_panels[i] = NULL; for( int i = 0; i < SPrefsMax ; i++ ) simple_panels[i] = NULL;
if( config_GetInt( p_intf, "qt-advanced-pref") == 1 ) if( config_GetInt( p_intf, "qt-advanced-pref" ) == 1 )
setAdvanced(); setAdvanced();
else else
setSmall(); setSmall();
...@@ -128,7 +128,7 @@ void PrefsDialog::setAdvanced() ...@@ -128,7 +128,7 @@ void PrefsDialog::setAdvanced()
advanced_tree = new PrefsTree( p_intf, tree_panel ); advanced_tree = new PrefsTree( p_intf, tree_panel );
/* and connections */ /* and connections */
CONNECT( advanced_tree, CONNECT( advanced_tree,
currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem *), currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * ),
this, changeAdvPanel( QTreeWidgetItem * ) ); this, changeAdvPanel( QTreeWidgetItem * ) );
tree_panel_l->addWidget( advanced_tree ); tree_panel_l->addWidget( advanced_tree );
} }
...@@ -137,7 +137,7 @@ void PrefsDialog::setAdvanced() ...@@ -137,7 +137,7 @@ void PrefsDialog::setAdvanced()
advanced_tree->show(); advanced_tree->show();
/* Remove the simple current panel from the main panels*/ /* Remove the simple current panel from the main panels*/
if( current_simple_panel ) if( current_simple_panel )
if( current_simple_panel->isVisible() ) current_simple_panel->hide(); if( current_simple_panel->isVisible() ) current_simple_panel->hide();
/* If no advanced Panel exist, create one, attach it and show it*/ /* If no advanced Panel exist, create one, attach it and show it*/
...@@ -174,11 +174,11 @@ void PrefsDialog::setSmall() ...@@ -174,11 +174,11 @@ void PrefsDialog::setSmall()
if( advanced_panel ) if( advanced_panel )
if( advanced_panel->isVisible() ) advanced_panel->hide(); if( advanced_panel->isVisible() ) advanced_panel->hide();
if( !current_simple_panel ) if( !current_simple_panel )
{ {
current_simple_panel = new SPrefsPanel( p_intf, main_panel, SPrefsDefaultCat ); current_simple_panel = new SPrefsPanel( p_intf, main_panel, SPrefsDefaultCat );
simple_panels[SPrefsDefaultCat] = current_simple_panel; simple_panels[SPrefsDefaultCat] = current_simple_panel;
main_panel_l->addWidget( current_simple_panel ); main_panel_l->addWidget( current_simple_panel );
} }
current_simple_panel->show(); current_simple_panel->show();
...@@ -188,15 +188,15 @@ void PrefsDialog::setSmall() ...@@ -188,15 +188,15 @@ void PrefsDialog::setSmall()
/* Switching from on simple panel to another */ /* Switching from on simple panel to another */
void PrefsDialog::changeSimplePanel( int number ) void PrefsDialog::changeSimplePanel( int number )
{ {
if( current_simple_panel ) if( current_simple_panel )
if( current_simple_panel->isVisible() ) current_simple_panel->hide(); if( current_simple_panel->isVisible() ) current_simple_panel->hide();
current_simple_panel = simple_panels[number]; current_simple_panel = simple_panels[number];
if( !current_simple_panel ) if( !current_simple_panel )
{ {
current_simple_panel = new SPrefsPanel( p_intf, main_panel, number ); current_simple_panel = new SPrefsPanel( p_intf, main_panel, number );
simple_panels[number] = current_simple_panel; simple_panels[number] = current_simple_panel;
main_panel_l->addWidget( current_simple_panel ); main_panel_l->addWidget( current_simple_panel );
} }
current_simple_panel->show(); current_simple_panel->show();
...@@ -285,7 +285,7 @@ void PrefsDialog::save() ...@@ -285,7 +285,7 @@ void PrefsDialog::save()
advanced_tree->cleanAll(); advanced_tree->cleanAll();
advanced_panel = NULL; advanced_panel = NULL;
} }
if( all->isChecked() && current_simple_panel ) if( all->isChecked() && current_simple_panel )
{ {
for( int i = 0 ; i< SPrefsMax; i++ ) for( int i = 0 ; i< SPrefsMax; i++ )
{ {
...@@ -320,12 +320,12 @@ void PrefsDialog::cancel() ...@@ -320,12 +320,12 @@ void PrefsDialog::cancel()
/* Reset all the preferences, when you click the button */ /* Reset all the preferences, when you click the button */
void PrefsDialog::reset() void PrefsDialog::reset()
{ {
int ret = QMessageBox::question(this, qtr("Reset Preferences"), int ret = QMessageBox::question(this, qtr( "Reset Preferences" ),
qtr("This will reset your VLC media player preferences.\n" qtr( "This will reset your VLC media player preferences.\n"
"Are you sure you want to continue?"), "Are you sure you want to continue?" ),
QMessageBox::Ok | QMessageBox::Cancel, QMessageBox::Ok | QMessageBox::Cancel,
QMessageBox::Ok); QMessageBox::Ok);
if ( ret == QMessageBox::Ok ) if( ret == QMessageBox::Ok )
{ {
config_ResetAll( p_intf ); config_ResetAll( p_intf );
config_SaveConfigFile( p_intf, NULL ); config_SaveConfigFile( p_intf, NULL );
......
...@@ -177,7 +177,7 @@ void SoutDialog::setSTranscodeOptions( bool b_trans ) ...@@ -177,7 +177,7 @@ void SoutDialog::setSTranscodeOptions( bool b_trans )
void SoutDialog::setRawOptions( bool b_raw ) void SoutDialog::setRawOptions( bool b_raw )
{ {
if ( b_raw ) if( b_raw )
{ {
ui.tabWidget->setDisabled( true ); ui.tabWidget->setDisabled( true );
} }
......
...@@ -77,8 +77,8 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -77,8 +77,8 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
layout->addWidget( slayout ); layout->addWidget( slayout );
QPushButton *closeButton = new QPushButton( qtr("Close") ); QPushButton *closeButton = new QPushButton( qtr( "Close" ) );
QPushButton *cancelButton = new QPushButton( qtr("Cancel") ); QPushButton *cancelButton = new QPushButton( qtr( "Cancel" ) );
ui.buttonBox->addButton( closeButton, QDialogButtonBox::AcceptRole ); ui.buttonBox->addButton( closeButton, QDialogButtonBox::AcceptRole );
ui.buttonBox->addButton( cancelButton, QDialogButtonBox::RejectRole ); ui.buttonBox->addButton( cancelButton, QDialogButtonBox::RejectRole );
...@@ -94,87 +94,87 @@ void VLMDialog::makeBcastPage() ...@@ -94,87 +94,87 @@ void VLMDialog::makeBcastPage()
{ {
pBcast = new QWidget( ui.groupBox ); pBcast = new QWidget( ui.groupBox );
bcastlayout = new QGridLayout( pBcast ); bcastlayout = new QGridLayout( pBcast );
bcastname = new QLabel( qtr( "Name :" ),pBcast ); bcastname = new QLabel( qtr( "Name :" ), pBcast );
bcastnameledit = new QLineEdit( pBcast ); bcastnameledit = new QLineEdit( pBcast );
bcastenable = new QCheckBox( qtr( "Enable" ),pBcast ); bcastenable = new QCheckBox( qtr( "Enable" ), pBcast );
bcastinput = new QLabel( qtr( "Input :" ),pBcast ); bcastinput = new QLabel( qtr( "Input :" ), pBcast );
bcastinputledit = new QLineEdit( pBcast ); bcastinputledit = new QLineEdit( pBcast );
bcastinputtbutton = new QToolButton( pBcast ); bcastinputtbutton = new QToolButton( pBcast );
bcastoutput = new QLabel( qtr( "Output :" ),pBcast ); bcastoutput = new QLabel( qtr( "Output :" ), pBcast );
bcastoutputledit = new QLineEdit( pBcast ); bcastoutputledit = new QLineEdit( pBcast );
bcastoutputtbutton = new QToolButton( pBcast ); bcastoutputtbutton = new QToolButton( pBcast );
bcastcontrol = new QGroupBox( qtr( "Controls" ),pBcast ); bcastcontrol = new QGroupBox( qtr( "Controls" ), pBcast );
bcastgbox = new QHBoxLayout( bcastcontrol ); bcastgbox = new QHBoxLayout( bcastcontrol );
bcastplay = new QPushButton( qtr( "Play" ),bcastcontrol ); bcastplay = new QPushButton( qtr( "Play" ), bcastcontrol );
bcastpause = new QPushButton( qtr( "Pause" ),bcastcontrol ); bcastpause = new QPushButton( qtr( "Pause" ), bcastcontrol );
bcaststop = new QPushButton( qtr( "Stop" ),bcastcontrol ); bcaststop = new QPushButton( qtr( "Stop" ), bcastcontrol );
bcastadd = new QPushButton( qtr( "Add" ),pBcast ); bcastadd = new QPushButton( qtr( "Add" ), pBcast );
bcastremove = new QPushButton( qtr( "Remove" ),pBcast ); bcastremove = new QPushButton( qtr( "Remove" ), pBcast );
// Adding all widgets in the QGridLayout // Adding all widgets in the QGridLayout
bcastgbox->addWidget( bcastplay ); bcastgbox->addWidget( bcastplay );
bcastgbox->addWidget( bcastpause ); bcastgbox->addWidget( bcastpause );
bcastgbox->addWidget( bcaststop ); bcastgbox->addWidget( bcaststop );
bcastlayout->addWidget( bcastname,0,0 ); bcastlayout->addWidget( bcastname, 0, 0 );
bcastlayout->addWidget( bcastnameledit,0,1 ); bcastlayout->addWidget( bcastnameledit, 0, 1 );
bcastlayout->addWidget( bcastenable,0,2 ); bcastlayout->addWidget( bcastenable, 0, 2 );
bcastlayout->addWidget( bcastinput,1,0 ); bcastlayout->addWidget( bcastinput, 1, 0 );
bcastlayout->addWidget( bcastinputledit,1,1 ); bcastlayout->addWidget( bcastinputledit, 1, 1 );
bcastlayout->addWidget( bcastinputtbutton,1,2 ); bcastlayout->addWidget( bcastinputtbutton, 1, 2 );
bcastlayout->addWidget( bcastoutput,2,0 ); bcastlayout->addWidget( bcastoutput, 2, 0 );
bcastlayout->addWidget( bcastoutputledit,2,1 ); bcastlayout->addWidget( bcastoutputledit, 2, 1 );
bcastlayout->addWidget( bcastoutputtbutton,2,2 ); bcastlayout->addWidget( bcastoutputtbutton, 2, 2 );
bcastlayout->addWidget( bcastcontrol,3,0,1,3 ); bcastlayout->addWidget( bcastcontrol, 3, 0, 1, 3 );
bcastlayout->addWidget( bcastadd,4,1 ); bcastlayout->addWidget( bcastadd, 4, 1 );
bcastlayout->addWidget( bcastremove,4,2 ); bcastlayout->addWidget( bcastremove, 4, 2 );
} }
void VLMDialog::makeVODPage() void VLMDialog::makeVODPage()
{ {
pVod = new QWidget( ui.groupBox ); pVod = new QWidget( ui.groupBox );
vodlayout = new QGridLayout( pVod ); vodlayout = new QGridLayout( pVod );
vodname = new QLabel( qtr( "Name :" ),pVod ); vodname = new QLabel( qtr( "Name :" ), pVod );
vodnameledit = new QLineEdit( pVod ); vodnameledit = new QLineEdit( pVod );
vodenable = new QCheckBox( qtr( "Enable" ),pVod ); vodenable = new QCheckBox( qtr( "Enable" ), pVod );
vodinput = new QLabel( qtr( "Input :" ),pVod ); vodinput = new QLabel( qtr( "Input :" ), pVod );
vodinputledit = new QLineEdit( pVod ); vodinputledit = new QLineEdit( pVod );
vodinputtbutton = new QToolButton( pVod ); vodinputtbutton = new QToolButton( pVod );
vodoutput = new QLabel( qtr( "Output :" ),pVod ); vodoutput = new QLabel( qtr( "Output :" ), pVod );
vodoutputledit = new QLineEdit( pVod ); vodoutputledit = new QLineEdit( pVod );
vodoutputtbutton = new QToolButton( pVod ); vodoutputtbutton = new QToolButton( pVod );
vodadd = new QPushButton( qtr( "Add" ),pVod ); vodadd = new QPushButton( qtr( "Add" ), pVod );
vodremove = new QPushButton( qtr( "Remove" ),pVod ); vodremove = new QPushButton( qtr( "Remove" ), pVod );
// Adding all widgets in the QGridLayout // Adding all widgets in the QGridLayout
vodlayout->addWidget( vodname,0,0 ); vodlayout->addWidget( vodname, 0, 0 );
vodlayout->addWidget( vodnameledit,0,1 ); vodlayout->addWidget( vodnameledit, 0, 1 );
vodlayout->addWidget( vodenable,0,2 ); vodlayout->addWidget( vodenable, 0, 2 );
vodlayout->addWidget( vodinput,1,0 ); vodlayout->addWidget( vodinput, 1, 0 );
vodlayout->addWidget( vodinputledit,1,1 ); vodlayout->addWidget( vodinputledit, 1, 1 );
vodlayout->addWidget( vodinputtbutton,1,2 ); vodlayout->addWidget( vodinputtbutton, 1, 2 );
vodlayout->addWidget( vodoutput,2,0 ); vodlayout->addWidget( vodoutput, 2, 0 );
vodlayout->addWidget( vodoutputledit,2,1 ); vodlayout->addWidget( vodoutputledit, 2, 1 );
vodlayout->addWidget( vodoutputtbutton,2,2 ); vodlayout->addWidget( vodoutputtbutton, 2, 2 );
vodlayout->addWidget( vodadd,3,1 ); vodlayout->addWidget( vodadd, 3, 1 );
vodlayout->addWidget( vodremove,3,2 ); vodlayout->addWidget( vodremove, 3, 2 );
} }
void VLMDialog::makeSchedulePage() void VLMDialog::makeSchedulePage()
{ {
pSchedule = new QWidget( ui.groupBox ); pSchedule = new QWidget( ui.groupBox );
schelayout = new QGridLayout( pSchedule ); schelayout = new QGridLayout( pSchedule );
schename = new QLabel( qtr( "Name :" ),pSchedule ); schename = new QLabel( qtr( "Name :" ), pSchedule );
schenameledit = new QLineEdit( pSchedule ); schenameledit = new QLineEdit( pSchedule );
scheenable = new QCheckBox( qtr( "Enable" ),pSchedule ); scheenable = new QCheckBox( qtr( "Enable" ), pSchedule );
scheinput = new QLabel( qtr( "Input :" ),pSchedule ); scheinput = new QLabel( qtr( "Input :" ), pSchedule );
scheinputledit = new QLineEdit( pSchedule ); scheinputledit = new QLineEdit( pSchedule );
scheinputtbutton = new QToolButton( pSchedule ); scheinputtbutton = new QToolButton( pSchedule );
scheoutput = new QLabel( qtr( "Output :" ),pSchedule ); scheoutput = new QLabel( qtr( "Output :" ), pSchedule );
scheoutputledit = new QLineEdit( pSchedule ); scheoutputledit = new QLineEdit( pSchedule );
scheoutputtbutton = new QToolButton( pSchedule ); scheoutputtbutton = new QToolButton( pSchedule );
schecontrol = new QGroupBox( qtr( "Time Control" ),pSchedule ); schecontrol = new QGroupBox( qtr( "Time Control" ), pSchedule );
scheadd = new QPushButton( qtr( "Add" ),pSchedule ); scheadd = new QPushButton( qtr( "Add" ), pSchedule );
scheremove = new QPushButton( qtr( "Remove" ),pSchedule ); scheremove = new QPushButton( qtr( "Remove" ), pSchedule );
schetimelayout = new QGridLayout( schecontrol ); schetimelayout = new QGridLayout( schecontrol );
schetimelabel = new QLabel( qtr( "Hours/Minutes/Seconds :" ), schecontrol ); schetimelabel = new QLabel( qtr( "Hours/Minutes/Seconds :" ), schecontrol );
schedatelabel = new QLabel( qtr( "Day/Month/Year :" ), schecontrol ); schedatelabel = new QLabel( qtr( "Day/Month/Year :" ), schecontrol );
...@@ -186,23 +186,23 @@ void VLMDialog::makeSchedulePage() ...@@ -186,23 +186,23 @@ void VLMDialog::makeSchedulePage()
//scheadd->setMaximumWidth( 30 ); //scheadd->setMaximumWidth( 30 );
// Adding all widgets in the QGridLayout // Adding all widgets in the QGridLayout
schetimelayout->addWidget( schetimelabel,0,0 ); schetimelayout->addWidget( schetimelabel, 0, 0 );
schetimelayout->addWidget( time,0,1 ); schetimelayout->addWidget( time, 0, 1 );
schetimelayout->addWidget( schedatelabel,1,0 ); schetimelayout->addWidget( schedatelabel, 1, 0 );
schetimelayout->addWidget( date,1,1 ); schetimelayout->addWidget( date, 1, 1 );
schetimelayout->addWidget( schetimerepeat,2,0 ); schetimelayout->addWidget( schetimerepeat, 2, 0 );
schetimelayout->addWidget( scherepeatnumber,2,1 ); schetimelayout->addWidget( scherepeatnumber, 2, 1 );
schelayout->addWidget( schename,0,0 ); schelayout->addWidget( schename, 0, 0 );
schelayout->addWidget( schenameledit,0,1 ); schelayout->addWidget( schenameledit, 0, 1 );
schelayout->addWidget( scheenable,0,2 ); schelayout->addWidget( scheenable, 0, 2 );
schelayout->addWidget( scheinput,1,0 ); schelayout->addWidget( scheinput, 1, 0 );
schelayout->addWidget( scheinputledit,1,1 ); schelayout->addWidget( scheinputledit, 1, 1 );
schelayout->addWidget( scheinputtbutton,1,2 ); schelayout->addWidget( scheinputtbutton, 1, 2 );
schelayout->addWidget( scheoutput,2,0 ); schelayout->addWidget( scheoutput, 2, 0 );
schelayout->addWidget( scheoutputledit,2,1 ); schelayout->addWidget( scheoutputledit, 2, 1 );
schelayout->addWidget( scheoutputtbutton,2,2 ); schelayout->addWidget( scheoutputtbutton, 2, 2 );
schelayout->addWidget( schecontrol,3,0,1,3 ); schelayout->addWidget( schecontrol, 3, 0, 1, 3 );
schelayout->addWidget( scheadd,4,1 ); schelayout->addWidget( scheadd, 4, 1 );
schelayout->addWidget( scheremove,4,2 ); schelayout->addWidget( scheremove, 4, 2 );
} }
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
virtual ~VLMDialog(); virtual ~VLMDialog();
private: private:
VLMDialog( intf_thread_t *); VLMDialog( intf_thread_t * );
static VLMDialog *instance; static VLMDialog *instance;
Ui::Vlm ui; Ui::Vlm ui;
......
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