ui.Tab->insertTab( OPEN_CAPTURE_TAB, captureOpenPanel,
qtr( "Capture &Device" ) );
+ /* Hide the Slave input widgets */
+ ui.slaveLabel->hide();
+ ui.slaveText->hide();
+ ui.slaveBrowseButton->hide();
+
/* Hide the advancedPanel */
if(! config_GetInt( p_intf, "qt-adv-options") )
- {
ui.advancedFrame->hide();
- }
else
- {
ui.advancedCheckBox->setCheckState( Qt::Checked );
- }
-
- ui.slaveLabel->hide();
- ui.slaveText->hide();
- ui.slaveBrowseButton->hide();
/* Buttons Creation */
QSizePolicy buttonSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );
buttonSizePolicy.setHorizontalStretch(0);
buttonSizePolicy.setVerticalStretch(0);
+ /* Play Button */
playButton = new QToolButton( this );
playButton->setText( qtr( "&Play" ) );
playButton->setSizePolicy( buttonSizePolicy );
playButton->setPopupMode( QToolButton::MenuButtonPopup );
playButton->setToolButtonStyle( Qt::ToolButtonTextOnly );
+ /* Cancel Button */
cancelButton = new QPushButton();
cancelButton->setText( qtr( "&Cancel" ) );
cancelButton->setSizePolicy( buttonSizePolicy );
+ /* Menu for the Play button */
QMenu * openButtonMenu = new QMenu( "Open" );
openButtonMenu->addAction( qtr("&Enqueue"), this, SLOT( enqueue() ),
QKeySequence( "Alt+E") );
CONNECT( fileOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
CONNECT( netOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
CONNECT( discOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
- CONNECT( captureOpenPanel, mrlUpdated( QString ), this,
- updateMRL(QString) );
+ CONNECT( captureOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) );
CONNECT( fileOpenPanel, methodChanged( QString ),
this, newMethod(QString) );
/* At creation time, modify the default buttons */
if ( i_action_flag ) setMenuAction();
-
/* Initialize caching */
storedMethod = "";
newMethod("file-caching");
}
}
-void OpenDialog::showTab(int i_tab=0)
+void OpenDialog::showTab( int i_tab=0 )
{
this->show();
- ui.Tab->setCurrentIndex(i_tab);
+ ui.Tab->setCurrentIndex( i_tab );
}
void OpenDialog::signalCurrent() {
- if (ui.Tab->currentWidget() != NULL) {
- (dynamic_cast<OpenPanel*>(ui.Tab->currentWidget()))->updateMRL();
- }
+ if (ui.Tab->currentWidget() != NULL)
+ (dynamic_cast<OpenPanel *>( ui.Tab->currentWidget() ))->updateMRL();
}
/***********
{
fileOpenPanel->clear();
this->toggleVisible();
- if( isModal() )
- reject();
+ if( isModal() ) reject();
}
/* If EnterKey is pressed */