#include <QUrl>
#include <QSettings>
+#define I_DEVICE_TOOLTIP "Select the device or the VIDEO_TS directory"
+
/**************************************************************************
* Open Files and subtitles *
**************************************************************************/
b_firstvcd = true;
b_firstcdda = true;
+ ui.browseDiscButton->setToolTip( I_DEVICE_TOOLTIP );
+ ui.deviceCombo->setToolTip( I_DEVICE_TOOLTIP );
+
#if WIN32 /* Disc drives probing for Windows */
char szDrives[512];
szDrives[0] = '\0';
BUTTONACT( ui.audioCDRadioButton, updateButtons() );
BUTTONACT( ui.dvdsimple, updateButtons() );
BUTTONACT( ui.browseDiscButton, browseDevice() );
- BUTTONACT( ui.ejectButton, eject() );
+ BUTTON_SET_ACT_I( ui.ejectButton, "", eject, qtr( "Eject the disc" ),
+ eject() );
CONNECT( ui.deviceCombo, editTextChanged( QString ), this, updateMRL());
CONNECT( ui.titleSpin, valueChanged( int ), this, updateMRL());
void DiscOpenPanel::browseDevice()
{
QString dir = QFileDialog::getExistingDirectory( 0,
- qtr("Open a device or a VIDEO_TS directory") );
+ qtr( I_DEVICE_TOOLTIP ) );
if (!dir.isEmpty()) {
ui.deviceCombo->setEditText( dir );
}