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
59d8e399
Commit
59d8e399
authored
Dec 30, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: MainInterface: namespace visibility property
parent
176df713
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+6
-6
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+3
-2
No files found.
modules/gui/qt4/main_interface.hpp
View file @
59d8e399
...
...
@@ -56,12 +56,6 @@ class QMenu;
class
QSize
;
class
StandardPLPanel
;
enum
{
CONTROLS_VISIBLE
=
0x1
,
CONTROLS_HIDDEN
=
0x2
,
CONTROLS_ADVANCED
=
0x4
,
};
class
MainInterface
:
public
QVLCMW
{
Q_OBJECT
...
...
@@ -85,6 +79,12 @@ public:
QSystemTrayIcon
*
getSysTray
()
{
return
sysTray
;
}
QMenu
*
getSysTrayMenu
()
{
return
systrayMenu
;
}
FullscreenControllerWidget
*
getFullscreenControllerWidget
()
{
return
fullscreenControls
;
}
enum
{
CONTROLS_VISIBLE
=
0x1
,
CONTROLS_HIDDEN
=
0x2
,
CONTROLS_ADVANCED
=
0x4
,
};
int
getControlsVisibilityStatus
();
bool
isPlDocked
()
{
return
(
b_plDocked
!=
false
);
}
bool
isInterfaceFullScreen
()
{
return
b_interfaceFullScreen
;
}
...
...
modules/gui/qt4/menus.cpp
View file @
59d8e399
...
...
@@ -483,7 +483,8 @@ QMenu *VLCMenuBar::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterfac
action
=
menu
->
addAction
(
qtr
(
"Mi&nimal Interface"
)
);
action
->
setShortcut
(
qtr
(
"Ctrl+H"
)
);
action
->
setCheckable
(
true
);
action
->
setChecked
(
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_HIDDEN
)
);
action
->
setChecked
(
(
mi
->
getControlsVisibilityStatus
()
&
MainInterface
::
CONTROLS_HIDDEN
)
);
CONNECT
(
action
,
triggered
(
bool
),
mi
,
toggleMinimalView
(
bool
)
);
CONNECT
(
mi
,
minimalViewToggled
(
bool
),
action
,
setChecked
(
bool
)
);
...
...
@@ -500,7 +501,7 @@ QMenu *VLCMenuBar::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterfac
action
=
menu
->
addAction
(
qtr
(
"&Advanced Controls"
),
mi
,
SLOT
(
toggleAdvancedButtons
()
)
);
action
->
setCheckable
(
true
);
if
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
)
if
(
mi
->
getControlsVisibilityStatus
()
&
MainInterface
::
CONTROLS_ADVANCED
)
action
->
setChecked
(
true
);
/* Docked Playlist */
...
...
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