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
5dd029ec
Commit
5dd029ec
authored
Jun 17, 2008
by
Jean-Philippe Andre
Committed by
Jean-Baptiste Kempf
Jun 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt menus: popup interface menu
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
5fc62fec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+26
-11
No files found.
modules/gui/qt4/menus.cpp
View file @
5dd029ec
...
...
@@ -62,7 +62,7 @@ void addDPStaticEntry( QMenu *menu,
const
char
*
help
,
const
char
*
icon
,
const
char
*
member
,
const
char
*
shortcut
)
const
char
*
shortcut
=
NULL
)
{
QAction
*
action
=
NULL
;
if
(
!
EMPTY_STR
(
icon
)
>
0
)
...
...
@@ -662,14 +662,16 @@ void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu )
#endif
QMenu
*
openmenu
=
new
QMenu
(
qtr
(
"Open"
),
menu
);
openmenu
->
addAction
(
qtr
(
"Open &File..."
),
THEDP
,
SLOT
(
openFileDialog
()
)
);
openmenu
->
addAction
(
qtr
(
"Open &Disc..."
),
THEDP
,
SLOT
(
openDiscDialog
()
)
);
openmenu
->
addAction
(
qtr
(
"Open &Network..."
),
THEDP
,
SLOT
(
openNetDialog
()
)
);
openmenu
->
addAction
(
qtr
(
"Open &Capture Device..."
),
THEDP
,
SLOT
(
openCaptureDialog
()
)
);
addDPStaticEntry
(
openmenu
,
qtr
(
"&Open File..."
),
""
,
":/pixmaps/file-asym_16px.png"
,
SLOT
(
openFileDialog
()
)
);
addDPStaticEntry
(
openmenu
,
qtr
(
I_OPEN_FOLDER
),
""
,
":/pixmaps/folder-grey_16px.png"
,
SLOT
(
PLAppendDir
()
)
);
addDPStaticEntry
(
openmenu
,
qtr
(
"Open &Disc..."
),
""
,
":/pixmaps/disc_16px.png"
,
SLOT
(
openDiscDialog
()
)
);
addDPStaticEntry
(
openmenu
,
qtr
(
"Open &Network..."
),
""
,
":/pixmaps/network_16px.png"
,
SLOT
(
openNetDialog
()
)
);
addDPStaticEntry
(
openmenu
,
qtr
(
"Open &Capture Device..."
),
""
,
":/pixmaps/capture-card_16px.png"
,
SLOT
(
openCaptureDialog
()
)
);
menu
->
addMenu
(
openmenu
);
menu
->
addSeparator
();
...
...
@@ -679,7 +681,8 @@ void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu )
menu->addMenu( helpmenu );
#endif
addDPStaticEntry
(
menu
,
qtr
(
"Quit"
),
""
,
""
,
SLOT
(
quit
()
)
,
"Ctrl+Q"
);
addDPStaticEntry
(
menu
,
qtr
(
"Quit"
),
""
,
":/pixmaps/menus_quit_16px.png"
,
SLOT
(
quit
()
),
"Ctrl+Q"
);
}
/* Video Tracks and Subtitles tracks */
...
...
@@ -784,7 +787,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
vlc_value_t
val
;
var_Get
(
p_vout
,
"fullscreen"
,
&
val
);
val
.
b_bool
=
!
val
.
b_bool
;
CreateAndConnect
(
menu
,
"fullscreen"
,
qtr
(
"
Toggle f
ullscreen"
),
""
,
CreateAndConnect
(
menu
,
"fullscreen"
,
qtr
(
"
F
ullscreen"
),
""
,
ITEM_CHECK
,
p_vout
->
i_object_id
,
val
,
VLC_VAR_BOOL
,
!
val
.
b_bool
);
b_fullscreen
=
!
val
.
b_bool
;
...
...
@@ -823,6 +826,18 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
submenu
=
new
QMenu
(
qtr
(
"Interface"
),
menu
);
submenu
->
addAction
(
QIcon
(
":/pixmaps/playlist_16px.png"
),
qtr
(
"Show Playlist"
),
mi
,
SLOT
(
togglePlaylist
()
)
);
addDPStaticEntry
(
submenu
,
qtr
(
I_MENU_EXT
),
""
,
":/pixmaps/menus_settings_16px.png"
,
SLOT
(
extendedDialog
()
)
);
action
=
submenu
->
addAction
(
QIcon
(
""
),
qtr
(
"Minimal View..."
),
mi
,
SLOT
(
toggleMinimalView
()
)
);
action
->
setCheckable
(
true
);
action
->
setChecked
(
!
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_VISIBLE
)
);
action
=
submenu
->
addAction
(
QIcon
(
""
),
qtr
(
"Toggle Fullscreen Interface"
),
mi
,
SLOT
(
toggleFullScreen
()
)
);
action
->
setCheckable
(
true
);
action
->
setChecked
(
mi
->
isFullScreen
()
);
menu
->
addMenu
(
submenu
);
}
...
...
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