ui.Tab->addTab(fileOpenPanel, "File");
ui.Tab->addTab(diskOpenPanel, "Disk");
ui.Tab->addTab(netOpenPanel, "Network");
+ ui.advancedFrame->hide();
+
+ BUTTONACT( ui.advancedButton , toggleAdvancedPanel() );
}
OpenDialog::~OpenDialog()
{
}
+void OpenDialog::toggleAdvancedPanel()
+{
+ if (ui.advancedFrame->isVisible())
+ {
+ ui.advancedFrame->hide();
+ }
+ else
+ {
+ ui.advancedFrame->show();
+ }
+}
+
void OpenDialog::cancel()
{
this->toggleVisible();
{
this->toggleVisible();
}
+
<property name="windowTitle" >
<string>Dialog</string>
</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" >
<rect>
<x>10</x>
</item>
</layout>
</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" >
<property name="geometry" >
<rect>
<string>More...</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>
<tabstops>
<tabstop>advancedButton</tabstop>
<tabstop>closeButton</tabstop>
<tabstop>cancelButton</tabstop>
</tabstops>
- <includes/>
<resources/>
<connections/>
</ui>