Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
f68dfa08
Commit
f68dfa08
authored
Nov 21, 2006
by
Jean-Baptiste Kempf
Browse files
Qt4: ExtraAudioToggle
parent
a4d92cb2
Changes
3
Show whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/open.cpp
View file @
f68dfa08
...
...
@@ -22,6 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include
"qt4.hpp"
#include
"components/open.hpp"
/**************************************************************************
...
...
@@ -38,6 +40,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
OpenPanel
(
_parent
,
_p_intf
)
{
ui
.
setupUi
(
this
);
BUTTONACT
(
ui
.
extraAudioButton
,
toggleExtraAudio
()
);
}
FileOpenPanel
::~
FileOpenPanel
()
...
...
@@ -51,6 +54,18 @@ QString FileOpenPanel::getUpdatedMRL()
return
ui
.
fileInput
->
currentText
();
}
void
FileOpenPanel
::
toggleExtraAudio
()
{
if
(
ui
.
audioGroupBox
->
isVisible
())
{
ui
.
audioGroupBox
->
hide
();
}
else
{
ui
.
audioGroupBox
->
show
();
}
}
/**************************************************************************
* Disk open
...
...
modules/gui/qt4/components/open.hpp
View file @
f68dfa08
...
...
@@ -59,9 +59,9 @@ private:
Ui
::
OpenFile
ui
;
public
slots
:
virtual
void
sendUpdate
()
;
void
toggleExtraAudio
()
;
signals:
void
dataUpdated
(
QString
,
QString
)
;
};
class
NetOpenPanel
:
public
OpenPanel
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
f68dfa08
...
...
@@ -46,6 +46,8 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
ui
.
Tab
->
addTab
(
netOpenPanel
,
"Network"
);
ui
.
advancedFrame
->
hide
();
BUTTONACT
(
ui
.
closeButton
,
ok
());
BUTTONACT
(
ui
.
cancelButton
,
cancel
());
BUTTONACT
(
ui
.
advancedButton
,
toggleAdvancedPanel
()
);
}
...
...
Write
Preview
Supports
Markdown
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