Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e84ae528
Commit
e84ae528
authored
Nov 10, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: re-probe the disc drives on each change of FocusPanel()
parent
16f0f6c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+22
-17
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+2
-1
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
e84ae528
...
@@ -336,6 +336,28 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -336,6 +336,28 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
ui
.
deviceCombo
->
setToolTip
(
qtr
(
I_DEVICE_TOOLTIP
)
);
ui
.
deviceCombo
->
setToolTip
(
qtr
(
I_DEVICE_TOOLTIP
)
);
ui
.
deviceCombo
->
setInsertPolicy
(
QComboBox
::
InsertAtTop
);
ui
.
deviceCombo
->
setInsertPolicy
(
QComboBox
::
InsertAtTop
);
/* CONNECTs */
BUTTONACT
(
ui
.
dvdRadioButton
,
updateButtons
()
);
BUTTONACT
(
ui
.
vcdRadioButton
,
updateButtons
()
);
BUTTONACT
(
ui
.
audioCDRadioButton
,
updateButtons
()
);
BUTTONACT
(
ui
.
dvdsimple
,
updateButtons
()
);
BUTTONACT
(
ui
.
browseDiscButton
,
browseDevice
()
);
BUTTON_SET_ACT_I
(
ui
.
ejectButton
,
""
,
toolbar
/
eject
,
qtr
(
"Eject the disc"
),
eject
()
);
CONNECT
(
ui
.
deviceCombo
,
editTextChanged
(
QString
),
this
,
updateMRL
());
CONNECT
(
ui
.
deviceCombo
,
currentIndexChanged
(
QString
),
this
,
updateMRL
());
CONNECT
(
ui
.
titleSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
CONNECT
(
ui
.
chapterSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
CONNECT
(
ui
.
audioSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
CONNECT
(
ui
.
subtitlesSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
/* Run once the updateButtons function in order to fill correctly the comboBoxes */
updateButtons
();
}
void
DiscOpenPanel
::
onFocus
()
{
#ifdef WIN32
/* Disc drives probing for Windows */
#ifdef WIN32
/* Disc drives probing for Windows */
wchar_t
szDrives
[
512
];
wchar_t
szDrives
[
512
];
szDrives
[
0
]
=
'\0'
;
szDrives
[
0
]
=
'\0'
;
...
@@ -375,24 +397,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -375,24 +397,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
POPULATE_WITH_DEVS
(
ppsz_discdevices
,
discCombo
);
POPULATE_WITH_DEVS
(
ppsz_discdevices
,
discCombo
);
#endif
#endif
/* CONNECTs */
BUTTONACT
(
ui
.
dvdRadioButton
,
updateButtons
()
);
BUTTONACT
(
ui
.
vcdRadioButton
,
updateButtons
()
);
BUTTONACT
(
ui
.
audioCDRadioButton
,
updateButtons
()
);
BUTTONACT
(
ui
.
dvdsimple
,
updateButtons
()
);
BUTTONACT
(
ui
.
browseDiscButton
,
browseDevice
()
);
BUTTON_SET_ACT_I
(
ui
.
ejectButton
,
""
,
toolbar
/
eject
,
qtr
(
"Eject the disc"
),
eject
()
);
CONNECT
(
ui
.
deviceCombo
,
editTextChanged
(
QString
),
this
,
updateMRL
());
CONNECT
(
ui
.
deviceCombo
,
currentIndexChanged
(
QString
),
this
,
updateMRL
());
CONNECT
(
ui
.
titleSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
CONNECT
(
ui
.
chapterSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
CONNECT
(
ui
.
audioSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
CONNECT
(
ui
.
subtitlesSpin
,
valueChanged
(
int
),
this
,
updateMRL
());
/* Run once the updateButtons function in order to fill correctly the comboBoxes */
updateButtons
();
}
}
DiscOpenPanel
::~
DiscOpenPanel
()
DiscOpenPanel
::~
DiscOpenPanel
()
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
e84ae528
...
@@ -174,10 +174,11 @@ public:
...
@@ -174,10 +174,11 @@ public:
virtual
~
DiscOpenPanel
();
virtual
~
DiscOpenPanel
();
virtual
void
clear
()
;
virtual
void
clear
()
;
virtual
void
accept
()
;
virtual
void
accept
()
;
void
onFocus
();
private:
private:
Ui
::
OpenDisk
ui
;
Ui
::
OpenDisk
ui
;
char
*
psz_dvddiscpath
,
*
psz_vcddiscpath
,
*
psz_cddadiscpath
;
char
*
psz_dvddiscpath
,
*
psz_vcddiscpath
,
*
psz_cddadiscpath
;
DiscType
m_discType
;
DiscType
m_discType
;
public
slots
:
public
slots
:
virtual
void
updateMRL
()
;
virtual
void
updateMRL
()
;
private
slots
:
private
slots
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment