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

Qt4: Just a toggle test for the advanced Panel.

parent 24c3c1a3
...@@ -44,12 +44,27 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -44,12 +44,27 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
ui.Tab->addTab(fileOpenPanel, "File"); ui.Tab->addTab(fileOpenPanel, "File");
ui.Tab->addTab(diskOpenPanel, "Disk"); ui.Tab->addTab(diskOpenPanel, "Disk");
ui.Tab->addTab(netOpenPanel, "Network"); ui.Tab->addTab(netOpenPanel, "Network");
ui.advancedFrame->hide();
BUTTONACT( ui.advancedButton , toggleAdvancedPanel() );
} }
OpenDialog::~OpenDialog() OpenDialog::~OpenDialog()
{ {
} }
void OpenDialog::toggleAdvancedPanel()
{
if (ui.advancedFrame->isVisible())
{
ui.advancedFrame->hide();
}
else
{
ui.advancedFrame->show();
}
}
void OpenDialog::cancel() void OpenDialog::cancel()
{ {
this->toggleVisible(); this->toggleVisible();
...@@ -59,3 +74,4 @@ void OpenDialog::ok() ...@@ -59,3 +74,4 @@ void OpenDialog::ok()
{ {
this->toggleVisible(); this->toggleVisible();
} }
...@@ -57,6 +57,7 @@ private: ...@@ -57,6 +57,7 @@ private:
public slots: public slots:
void cancel(); void cancel();
void ok(); void ok();
void toggleAdvancedPanel();
}; };
#endif #endif
...@@ -13,7 +13,46 @@ ...@@ -13,7 +13,46 @@
<property name="windowTitle" > <property name="windowTitle" >
<string>Dialog</string> <string>Dialog</string>
</property> </property>
<widget class="QFrame" name="frame" > <widget class="QPushButton" name="closeButton" >
<property name="geometry" >
<rect>
<x>520</x>
<y>540</y>
<width>91</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Close</string>
</property>
</widget>
<widget class="QPushButton" name="cancelButton" >
<property name="geometry" >
<rect>
<x>400</x>
<y>540</y>
<width>101</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
<widget class="QTabWidget" name="Tab" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>601</width>
<height>371</height>
</rect>
</property>
<property name="currentIndex" >
<number>-1</number>
</property>
</widget>
<widget class="QFrame" name="advancedFrame" >
<property name="geometry" > <property name="geometry" >
<rect> <rect>
<x>10</x> <x>10</x>
...@@ -121,19 +160,6 @@ p, li { white-space: pre-wrap; } ...@@ -121,19 +160,6 @@ p, li { white-space: pre-wrap; }
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QPushButton" name="closeButton" >
<property name="geometry" >
<rect>
<x>520</x>
<y>540</y>
<width>91</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Close</string>
</property>
</widget>
<widget class="QPushButton" name="advancedButton" > <widget class="QPushButton" name="advancedButton" >
<property name="geometry" > <property name="geometry" >
<rect> <rect>
...@@ -147,32 +173,6 @@ p, li { white-space: pre-wrap; } ...@@ -147,32 +173,6 @@ p, li { white-space: pre-wrap; }
<string>More...</string> <string>More...</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="cancelButton" >
<property name="geometry" >
<rect>
<x>400</x>
<y>540</y>
<width>101</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
<widget class="QTabWidget" name="Tab" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>601</width>
<height>371</height>
</rect>
</property>
<property name="currentIndex" >
<number>-1</number>
</property>
</widget>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>advancedButton</tabstop> <tabstop>advancedButton</tabstop>
...@@ -182,7 +182,6 @@ p, li { white-space: pre-wrap; } ...@@ -182,7 +182,6 @@ p, li { white-space: pre-wrap; }
<tabstop>closeButton</tabstop> <tabstop>closeButton</tabstop>
<tabstop>cancelButton</tabstop> <tabstop>cancelButton</tabstop>
</tabstops> </tabstops>
<includes/>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>
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