Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
bc612f60
Commit
bc612f60
authored
Mar 13, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: menus, simplification
Ref #3406
parent
ceb9edfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+11
-15
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+3
-3
No files found.
modules/gui/qt4/menus.cpp
View file @
bc612f60
...
...
@@ -415,15 +415,15 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QWidget* parent )
* View Menu
* Interface modification, load other interfaces, activate Extensions
**/
QMenu
*
QVLCMenu
::
ViewMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
,
bool
with_intf
)
QMenu
*
QVLCMenu
::
ViewMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
{
QAction
*
action
;
QMenu
*
menu
;
if
(
!
with_intf
)
menu
=
new
QMenu
(
qtr
(
"&View"
),
current
);
if
(
!
current
)
{
menu
=
new
QMenu
(
qtr
(
"&View"
)
);
}
else
{
menu
=
current
;
...
...
@@ -439,18 +439,14 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
menu
->
addSeparator
();
if
(
with_intf
)
{
QMenu
*
intfmenu
=
InterfacesMenu
(
p_intf
,
menu
);
menu
->
addSeparator
();
}
QMenu
*
intfmenu
=
InterfacesMenu
(
p_intf
,
menu
);
menu
->
addSeparator
();
/* Minimal View */
action
=
menu
->
addAction
(
qtr
(
"Mi&nimal View"
)
);
action
->
setShortcut
(
qtr
(
"Ctrl+H"
)
);
action
->
setCheckable
(
true
);
action
->
setChecked
(
!
with_intf
&&
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_HIDDEN
)
);
action
->
setChecked
(
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_HIDDEN
)
);
CONNECT
(
action
,
triggered
(
bool
),
mi
,
toggleMinimalView
(
bool
)
);
CONNECT
(
mi
,
minimalViewToggled
(
bool
),
action
,
setChecked
(
bool
)
);
...
...
@@ -476,7 +472,7 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
action
->
setChecked
(
mi
->
isPlDocked
()
);
CONNECT
(
action
,
triggered
(
bool
),
mi
,
dockPlaylist
(
bool
)
);
if
(
with_intf
)
if
(
!
current
)
// I don't want to manage consistency between menus, so no popup-menu
{
action
=
menu
->
addAction
(
qtr
(
"Quit after Playback"
)
);
...
...
@@ -1037,7 +1033,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
msg_Warn
(
p_intf
,
"could not find parent interface"
);
}
else
menu
->
addMenu
(
ViewMenu
(
p_intf
,
menu
,
false
)
);
menu
->
addMenu
(
ViewMenu
(
p_intf
,
(
QMenu
*
)
NULL
)
);
menu
->
addMenu
(
submenu
);
}
...
...
modules/gui/qt4/menus.hpp
View file @
bc612f60
...
...
@@ -99,8 +99,8 @@ private:
static
QMenu
*
ToolsMenu
(
QMenu
*
);
static
QMenu
*
ToolsMenu
(
QWidget
*
);
static
QMenu
*
ViewMenu
(
intf_thread_t
*
,
QWidget
*
parent
);
static
QMenu
*
ViewMenu
(
intf_thread_t
*
,
QMenu
*
,
bool
with_intf
);
static
QMenu
*
ViewMenu
(
intf_thread_t
*
,
QWidget
*
);
static
QMenu
*
ViewMenu
(
intf_thread_t
*
,
QMenu
*
);
static
QMenu
*
InterfacesMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
);
static
void
ExtensionsMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
);
...
...
@@ -157,7 +157,7 @@ public:
case
1
:
QVLCMenu
::
AudioMenu
(
p_intf
,
menu
);
break
;
case
2
:
QVLCMenu
::
VideoMenu
(
p_intf
,
menu
);
break
;
case
3
:
QVLCMenu
::
RebuildNavigMenu
(
p_intf
,
menu
);
break
;
case
4
:
QVLCMenu
::
ViewMenu
(
p_intf
,
menu
,
true
);
break
;
case
4
:
QVLCMenu
::
ViewMenu
(
p_intf
,
menu
);
break
;
}
}
private:
...
...
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