Commit f68dfa08 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: ExtraAudioToggle

parent a4d92cb2
......@@ -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
......
......@@ -59,9 +59,9 @@ private:
Ui::OpenFile ui;
public slots:
virtual void sendUpdate() ;
void toggleExtraAudio() ;
signals:
void dataUpdated( QString, QString ) ;
};
class NetOpenPanel: public OpenPanel
......
......@@ -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() );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment