Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
c059148c
Commit
c059148c
authored
Nov 20, 2006
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Just a toggle test for the advanced Panel.
parent
24c3c1a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
41 deletions
+57
-41
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+16
-0
modules/gui/qt4/dialogs/open.hpp
modules/gui/qt4/dialogs/open.hpp
+1
-0
modules/gui/qt4/ui/open.ui
modules/gui/qt4/ui/open.ui
+40
-41
No files found.
modules/gui/qt4/dialogs/open.cpp
View file @
c059148c
...
@@ -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
();
}
}
modules/gui/qt4/dialogs/open.hpp
View file @
c059148c
...
@@ -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
modules/gui/qt4/ui/open.ui
View file @
c059148c
...
@@ -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>
Write
Preview
Markdown
is supported
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