Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
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 )
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
();
...
...
@@ -59,3 +74,4 @@ void OpenDialog::ok()
{
this
->
toggleVisible
();
}
modules/gui/qt4/dialogs/open.hpp
View file @
c059148c
...
...
@@ -57,6 +57,7 @@ private:
public
slots
:
void
cancel
();
void
ok
();
void
toggleAdvancedPanel
();
};
#endif
modules/gui/qt4/ui/open.ui
View file @
c059148c
...
...
@@ -13,7 +13,46 @@
<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>
...
...
@@ -121,19 +160,6 @@ p, li { white-space: pre-wrap; }
</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>
...
...
@@ -147,32 +173,6 @@ p, li { white-space: pre-wrap; }
<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>
...
...
@@ -182,7 +182,6 @@ p, li { white-space: pre-wrap; }
<tabstop>closeButton</tabstop>
<tabstop>cancelButton</tabstop>
</tabstops>
<includes/>
<resources/>
<connections/>
</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