Changeset 2d38cb093a261738b59dbcc4e050b0256e5df46f
- Timestamp:
- 10/19/07 02:30:49
(10 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1192753849 +0000
- git-parent:
[c854ce9a04d72dce63c76302a13f11c8adbc361a]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1192753849 +0000
- Message:
Qt4 - make the Browse Device button to actually do something. Fix Trax#49. This has to be checked when you want to open a VIDEO_TS folder (reading V_T or V_T/.. ?)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r90f42f4 |
r2d38cb0 |
|
| 248 | 248 | |
|---|
| 249 | 249 | /* CONNECTs */ |
|---|
| 250 | | BUTTONACT( ui.dvdRadioButton, updateButtons()); |
|---|
| 251 | | BUTTONACT( ui.vcdRadioButton, updateButtons()); |
|---|
| 252 | | BUTTONACT( ui.audioCDRadioButton, updateButtons()); |
|---|
| 253 | | BUTTONACT( ui.dvdsimple, updateButtons()); |
|---|
| | 250 | BUTTONACT( ui.dvdRadioButton, updateButtons() ); |
|---|
| | 251 | BUTTONACT( ui.vcdRadioButton, updateButtons() ); |
|---|
| | 252 | BUTTONACT( ui.audioCDRadioButton, updateButtons() ); |
|---|
| | 253 | BUTTONACT( ui.dvdsimple, updateButtons() ); |
|---|
| | 254 | BUTTONACT( ui.browseDiscButton, browseDevice() ); |
|---|
| 254 | 255 | |
|---|
| 255 | 256 | CONNECT( ui.deviceCombo, editTextChanged( QString ), this, updateMRL()); |
|---|
| … | … | |
| 349 | 350 | } |
|---|
| 350 | 351 | |
|---|
| | 352 | void DiscOpenPanel::browseDevice() |
|---|
| | 353 | { |
|---|
| | 354 | QString dir = QFileDialog::getExistingDirectory( 0, |
|---|
| | 355 | qtr("Open a device or a VIDEO_TS directory") ); |
|---|
| | 356 | if (!dir.isEmpty()) { |
|---|
| | 357 | ui.deviceCombo->setEditText( dir ); |
|---|
| | 358 | } |
|---|
| | 359 | updateMRL(); |
|---|
| | 360 | } |
|---|
| 351 | 361 | |
|---|
| 352 | 362 | /************************************************************************** |
|---|
| r90f42f4 |
r2d38cb0 |
|
| 140 | 140 | virtual void updateMRL() ; |
|---|
| 141 | 141 | virtual void updateButtons() ; |
|---|
| | 142 | private slots: |
|---|
| | 143 | void browseDevice(); |
|---|
| 142 | 144 | }; |
|---|
| 143 | 145 | |
|---|
| r948158b |
r2d38cb0 |
|
| 55 | 55 | </item> |
|---|
| 56 | 56 | <item row="3" column="7" > |
|---|
| 57 | | <widget class="QToolButton" name="toolButton" > |
|---|
| | 57 | <widget class="QPushButton" name="browseDiscButton" > |
|---|
| 58 | 58 | <property name="toolTip" > |
|---|
| 59 | 59 | <string>_("Select the device")</string> |
|---|