Commit 5364ae67 authored by Rafaël Carré's avatar Rafaël Carré

Simplification of Advanced Open

Control & Playback buttons have the same size
parent 32616498
...@@ -41,9 +41,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -41,9 +41,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
OpenPanel( _parent, _p_intf ) OpenPanel( _parent, _p_intf )
{ {
ui.setupUi( this ); ui.setupUi( this );
ui.audioGroupBox->hide();
BUTTONACT( ui.extraAudioButton, toggleExtraAudio() );
BUTTONACT( ui.fileBrowseButton, browseFile() ); BUTTONACT( ui.fileBrowseButton, browseFile() );
BUTTONACT( ui.subBrowseButton, browseFileSub() ); BUTTONACT( ui.subBrowseButton, browseFileSub() );
BUTTONACT( ui.audioBrowseButton, browseFileAudio() ); BUTTONACT( ui.audioBrowseButton, browseFileAudio() );
...@@ -108,18 +106,6 @@ QString FileOpenPanel::getUpdatedMRL() ...@@ -108,18 +106,6 @@ QString FileOpenPanel::getUpdatedMRL()
return ui.fileInput->currentText(); return ui.fileInput->currentText();
} }
void FileOpenPanel::toggleExtraAudio()
{
if (ui.audioGroupBox->isVisible())
{
ui.audioGroupBox->hide();
}
else
{
ui.audioGroupBox->show();
}
}
void FileOpenPanel::clear() void FileOpenPanel::clear()
{ {
ui.fileInput->setEditText( ""); ui.fileInput->setEditText( "");
......
...@@ -62,7 +62,6 @@ private: ...@@ -62,7 +62,6 @@ private:
void updateSubsMRL(); void updateSubsMRL();
public slots: public slots:
virtual void sendUpdate() ; virtual void sendUpdate() ;
void toggleExtraAudio() ;
void updateMRL(); void updateMRL();
void browseFile(); void browseFile();
void browseFileSub(); void browseFileSub();
...@@ -79,7 +78,7 @@ public: ...@@ -79,7 +78,7 @@ public:
virtual ~NetOpenPanel(); virtual ~NetOpenPanel();
virtual QString getUpdatedMRL(); virtual QString getUpdatedMRL();
private: private:
Ui::OpenNet ui; Ui::OpenNetwork ui;
public slots: public slots:
virtual void sendUpdate() ; virtual void sendUpdate() ;
signals: signals:
...@@ -103,6 +102,4 @@ signals: ...@@ -103,6 +102,4 @@ signals:
}; };
#endif #endif
...@@ -39,6 +39,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -39,6 +39,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
{ {
setWindowTitle( qtr("Open" ) ); setWindowTitle( qtr("Open" ) );
ui.setupUi( this ); ui.setupUi( this );
ui.vboxLayout->setSizeConstraint(QLayout::SetFixedSize);
fileOpenPanel = new FileOpenPanel(this , _p_intf ); fileOpenPanel = new FileOpenPanel(this , _p_intf );
diskOpenPanel = new DiskOpenPanel(this , _p_intf ); diskOpenPanel = new DiskOpenPanel(this , _p_intf );
netOpenPanel = new NetOpenPanel(this , _p_intf ); netOpenPanel = new NetOpenPanel(this , _p_intf );
......
...@@ -164,7 +164,7 @@ void MainInterface::handleMainUi( QSettings *settings ) ...@@ -164,7 +164,7 @@ void MainInterface::handleMainUi( QSettings *settings )
ui.setupUi( centralWidget() ); ui.setupUi( centralWidget() );
slider = new InputSlider( Qt::Horizontal, NULL ); slider = new InputSlider( Qt::Horizontal, NULL );
ui.hboxLayout->insertWidget( 0, slider ); ui.vboxLayout->insertWidget( 0, slider );
ui.discFrame->hide(); ui.discFrame->hide();
BUTTON_SET_IMG( ui.prevSectionButton, "", previous.png, "" ); BUTTON_SET_IMG( ui.prevSectionButton, "", previous.png, "" );
BUTTON_SET_IMG( ui.nextSectionButton, "", next.png, "" ); BUTTON_SET_IMG( ui.nextSectionButton, "", next.png, "" );
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>819</width> <width>502</width>
<height>384</height> <height>201</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy" >
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</property> </property>
<property name="maximumSize" > <property name="maximumSize" >
<size> <size>
<width>35</width> <width>45</width>
<height>26</height> <height>26</height>
</size> </size>
</property> </property>
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
</property> </property>
<property name="maximumSize" > <property name="maximumSize" >
<size> <size>
<width>35</width> <width>45</width>
<height>26</height> <height>26</height>
</size> </size>
</property> </property>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</property> </property>
<property name="maximumSize" > <property name="maximumSize" >
<size> <size>
<width>35</width> <width>45</width>
<height>26</height> <height>26</height>
</size> </size>
</property> </property>
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
</property> </property>
<property name="maximumSize" > <property name="maximumSize" >
<size> <size>
<width>35</width> <width>45</width>
<height>26</height> <height>26</height>
</size> </size>
</property> </property>
...@@ -193,8 +193,8 @@ ...@@ -193,8 +193,8 @@
</property> </property>
<property name="sizeHint" > <property name="sizeHint" >
<size> <size>
<width>40</width> <width>80</width>
<height>20</height> <height>27</height>
</size> </size>
</property> </property>
</spacer> </spacer>
...@@ -229,6 +229,20 @@ ...@@ -229,6 +229,20 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="playlistButton" > <widget class="QPushButton" name="playlistButton" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>4</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>45</width>
<height>26</height>
</size>
</property>
<property name="text" > <property name="text" >
<string/> <string/>
</property> </property>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>435</width> <width>435</width>
<height>339</height> <height>441</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
...@@ -25,6 +25,20 @@ ...@@ -25,6 +25,20 @@
</property> </property>
<item> <item>
<widget class="QTabWidget" name="Tab" > <widget class="QTabWidget" name="Tab" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>417</width>
<height>290</height>
</size>
</property>
<property name="currentIndex" > <property name="currentIndex" >
<number>-1</number> <number>-1</number>
</property> </property>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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