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
2dc2da86
Commit
2dc2da86
authored
Dec 05, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: menus: rename MenusManager to MenuBar.
as *Manager seems disliked.
parent
7cf467ae
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
68 deletions
+68
-68
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+1
-1
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+1
-1
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+9
-9
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+2
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+10
-10
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+37
-37
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+6
-6
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+2
-2
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
2dc2da86
...
...
@@ -272,7 +272,7 @@ void BackgroundWidget::paintEvent( QPaintEvent *e )
void
BackgroundWidget
::
contextMenuEvent
(
QContextMenuEvent
*
event
)
{
QVLCMenuManage
r
::
PopupMenu
(
p_intf
,
true
);
VLCMenuBa
r
::
PopupMenu
(
p_intf
,
true
);
event
->
accept
();
}
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
2dc2da86
...
...
@@ -120,7 +120,7 @@ void StandardPLPanel::popupPlView( const QPoint &point )
QModelIndexList
list
=
selection
->
selectedIndexes
();
if
(
!
model
->
popup
(
index
,
globalPoint
,
list
)
)
QVLCMenuManage
r
::
PopupMenu
(
p_intf
,
true
);
VLCMenuBa
r
::
PopupMenu
(
p_intf
,
true
);
}
void
StandardPLPanel
::
popupSelectColumn
(
QPoint
)
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
2dc2da86
...
...
@@ -102,10 +102,10 @@ DialogsProvider::~DialogsProvider()
delete
menusUpdateMapper
;
delete
SDMapper
;
QVLCMenuManage
r
::
PopupMenu
(
p_intf
,
false
);
QVLCMenuManage
r
::
AudioPopupMenu
(
p_intf
,
false
);
QVLCMenuManage
r
::
VideoPopupMenu
(
p_intf
,
false
);
QVLCMenuManage
r
::
MiscPopupMenu
(
p_intf
,
false
);
VLCMenuBa
r
::
PopupMenu
(
p_intf
,
false
);
VLCMenuBa
r
::
AudioPopupMenu
(
p_intf
,
false
);
VLCMenuBa
r
::
VideoPopupMenu
(
p_intf
,
false
);
VLCMenuBa
r
::
MiscPopupMenu
(
p_intf
,
false
);
}
void
DialogsProvider
::
quit
()
...
...
@@ -152,13 +152,13 @@ void DialogsProvider::customEvent( QEvent *event )
vlmDialog
();
break
;
#endif
case
INTF_DIALOG_POPUPMENU
:
QVLCMenuManage
r
::
PopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
VLCMenuBa
r
::
PopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
case
INTF_DIALOG_AUDIOPOPUPMENU
:
QVLCMenuManage
r
::
AudioPopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
VLCMenuBa
r
::
AudioPopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
case
INTF_DIALOG_VIDEOPOPUPMENU
:
QVLCMenuManage
r
::
VideoPopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
VLCMenuBa
r
::
VideoPopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
case
INTF_DIALOG_MISCPOPUPMENU
:
QVLCMenuManage
r
::
MiscPopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
VLCMenuBa
r
::
MiscPopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
case
INTF_DIALOG_WIZARD
:
case
INTF_DIALOG_STREAMWIZARD
:
openAndStreamingDialogs
();
break
;
...
...
@@ -724,7 +724,7 @@ void DialogsProvider::loadSubtitlesFile()
void
DialogsProvider
::
menuAction
(
QObject
*
data
)
{
QVLCMenuManage
r
::
DoAction
(
data
);
VLCMenuBa
r
::
DoAction
(
data
);
}
void
DialogsProvider
::
menuUpdateAction
(
QObject
*
data
)
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
2dc2da86
...
...
@@ -83,12 +83,12 @@ enum {
class
QEvent
;
class
QSignalMapper
;
class
QVLCMenuManage
r
;
class
VLCMenuBa
r
;
class
DialogsProvider
:
public
QObject
{
Q_OBJECT
friend
class
QVLCMenuManage
r
;
friend
class
VLCMenuBa
r
;
public:
static
DialogsProvider
*
getInstance
()
...
...
modules/gui/qt4/main_interface.cpp
View file @
2dc2da86
...
...
@@ -146,7 +146,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/************
* Menu Bar *
************/
QVLCMenuManage
r
::
createMenuBar
(
this
,
p_intf
);
VLCMenuBa
r
::
createMenuBar
(
this
,
p_intf
);
CONNECT
(
THEMIM
->
getIM
(),
voutListChanged
(
vout_thread_t
**
,
int
),
this
,
destroyPopupMenu
()
);
...
...
@@ -570,12 +570,12 @@ inline void MainInterface::showTab( QWidget *widget )
void
MainInterface
::
destroyPopupMenu
()
{
QVLCMenuManage
r
::
PopupMenu
(
p_intf
,
false
);
VLCMenuBa
r
::
PopupMenu
(
p_intf
,
false
);
}
void
MainInterface
::
popupMenu
(
const
QPoint
&
)
{
QVLCMenuManage
r
::
PopupMenu
(
p_intf
,
true
);
VLCMenuBa
r
::
PopupMenu
(
p_intf
,
true
);
}
void
MainInterface
::
toggleFSC
()
...
...
@@ -1002,7 +1002,7 @@ void MainInterface::createSystray()
systrayMenu
=
new
QMenu
(
qtr
(
"VLC media player"
),
this
);
systrayMenu
->
setIcon
(
iconVLC
);
QVLCMenuManage
r
::
updateSystrayMenu
(
this
,
p_intf
,
true
);
VLCMenuBa
r
::
updateSystrayMenu
(
this
,
p_intf
,
true
);
sysTray
->
show
();
CONNECT
(
sysTray
,
activated
(
QSystemTrayIcon
::
ActivationReason
),
...
...
@@ -1062,7 +1062,7 @@ void MainInterface::toggleUpdateSystrayMenu()
#endif
}
if
(
sysTray
)
QVLCMenuManage
r
::
updateSystrayMenu
(
this
,
p_intf
);
VLCMenuBa
r
::
updateSystrayMenu
(
this
,
p_intf
);
}
/* First Item of the systray menu */
...
...
@@ -1074,14 +1074,14 @@ void MainInterface::showUpdateSystrayMenu()
showNormal
();
activateWindow
();
QVLCMenuManage
r
::
updateSystrayMenu
(
this
,
p_intf
);
VLCMenuBa
r
::
updateSystrayMenu
(
this
,
p_intf
);
}
/* First Item of the systray menu */
void
MainInterface
::
hideUpdateSystrayMenu
()
{
hide
();
QVLCMenuManage
r
::
updateSystrayMenu
(
this
,
p_intf
);
VLCMenuBa
r
::
updateSystrayMenu
(
this
,
p_intf
);
}
/* Click on systray Icon */
...
...
@@ -1093,7 +1093,7 @@ void MainInterface::handleSystrayClick(
case
QSystemTrayIcon
:
:
Trigger
:
case
QSystemTrayIcon
:
:
DoubleClick
:
#ifdef Q_WS_MAC
QVLCMenuManage
r
::
updateSystrayMenu
(
this
,
p_intf
);
VLCMenuBa
r
::
updateSystrayMenu
(
this
,
p_intf
);
#else
toggleUpdateSystrayMenu
();
#endif
...
...
@@ -1128,7 +1128,7 @@ void MainInterface::updateSystrayTooltipName( const QString& name )
}
}
QVLCMenuManage
r
::
updateSystrayMenu
(
this
,
p_intf
);
VLCMenuBa
r
::
updateSystrayMenu
(
this
,
p_intf
);
}
/**
...
...
@@ -1149,7 +1149,7 @@ void MainInterface::updateSystrayTooltipStatus( int i_status )
sysTray
->
setToolTip
(
qtr
(
"VLC media player"
)
);
break
;
}
QVLCMenuManage
r
::
updateSystrayMenu
(
this
,
p_intf
);
VLCMenuBa
r
::
updateSystrayMenu
(
this
,
p_intf
);
}
void
MainInterface
::
changeEvent
(
QEvent
*
event
)
...
...
modules/gui/qt4/menus.cpp
View file @
2dc2da86
This diff is collapsed.
Click to expand it.
modules/gui/qt4/menus.hpp
View file @
2dc2da86
...
...
@@ -69,7 +69,7 @@ private:
int
i_val_type
;
};
class
QVLCMenuManage
r
:
public
QObject
class
VLCMenuBa
r
:
public
QObject
{
Q_OBJECT
friend
class
MenuFunc
;
...
...
@@ -155,7 +155,7 @@ private:
public
slots
:
static
void
updateRecents
(
intf_thread_t
*
);
};
Q_DECLARE_OPERATORS_FOR_FLAGS
(
QVLCMenuManage
r
::
actionflags
)
Q_DECLARE_OPERATORS_FOR_FLAGS
(
VLCMenuBa
r
::
actionflags
)
class
MenuFunc
:
public
QObject
{
...
...
@@ -169,10 +169,10 @@ public:
{
switch
(
id
)
{
case
1
:
QVLCMenuManage
r
::
AudioMenu
(
p_intf
,
menu
);
break
;
case
2
:
QVLCMenuManage
r
::
VideoMenu
(
p_intf
,
menu
);
break
;
case
3
:
QVLCMenuManage
r
::
RebuildNavigMenu
(
p_intf
,
menu
);
break
;
case
4
:
QVLCMenuManage
r
::
ViewMenu
(
p_intf
,
menu
);
break
;
case
1
:
VLCMenuBa
r
::
AudioMenu
(
p_intf
,
menu
);
break
;
case
2
:
VLCMenuBa
r
::
VideoMenu
(
p_intf
,
menu
);
break
;
case
3
:
VLCMenuBa
r
::
RebuildNavigMenu
(
p_intf
,
menu
);
break
;
case
4
:
VLCMenuBa
r
::
ViewMenu
(
p_intf
,
menu
);
break
;
}
}
private:
...
...
modules/gui/qt4/recents.cpp
View file @
2dc2da86
...
...
@@ -103,7 +103,7 @@ void RecentsMRL::addRecent( const QString &mrl )
if
(
stack
->
count
()
>
RECENTS_LIST_SIZE
)
stack
->
takeLast
();
}
QVLCMenuManage
r
::
updateRecents
(
p_intf
);
VLCMenuBa
r
::
updateRecents
(
p_intf
);
save
();
}
...
...
@@ -113,7 +113,7 @@ void RecentsMRL::clear()
return
;
stack
->
clear
();
if
(
isActive
)
QVLCMenuManage
r
::
updateRecents
(
p_intf
);
if
(
isActive
)
VLCMenuBa
r
::
updateRecents
(
p_intf
);
save
();
}
...
...
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