Commit f56088f1 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

Qt: menus: rename MenusManager to MenuBar.

as *Manager seems disliked.
(cherry picked from commit 2dc2da86b9506620e1eeb657b3a99eeac0b59012)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e89fc639
...@@ -272,7 +272,7 @@ void BackgroundWidget::paintEvent( QPaintEvent *e ) ...@@ -272,7 +272,7 @@ void BackgroundWidget::paintEvent( QPaintEvent *e )
void BackgroundWidget::contextMenuEvent( QContextMenuEvent *event ) void BackgroundWidget::contextMenuEvent( QContextMenuEvent *event )
{ {
QVLCMenuManager::PopupMenu( p_intf, true ); VLCMenuBar::PopupMenu( p_intf, true );
event->accept(); event->accept();
} }
......
...@@ -120,7 +120,7 @@ void StandardPLPanel::popupPlView( const QPoint &point ) ...@@ -120,7 +120,7 @@ void StandardPLPanel::popupPlView( const QPoint &point )
QModelIndexList list = selection->selectedIndexes(); QModelIndexList list = selection->selectedIndexes();
if( !model->popup( index, globalPoint, list ) ) if( !model->popup( index, globalPoint, list ) )
QVLCMenuManager::PopupMenu( p_intf, true ); VLCMenuBar::PopupMenu( p_intf, true );
} }
void StandardPLPanel::popupSelectColumn( QPoint ) void StandardPLPanel::popupSelectColumn( QPoint )
......
...@@ -102,10 +102,10 @@ DialogsProvider::~DialogsProvider() ...@@ -102,10 +102,10 @@ DialogsProvider::~DialogsProvider()
delete menusUpdateMapper; delete menusUpdateMapper;
delete SDMapper; delete SDMapper;
QVLCMenuManager::PopupMenu( p_intf, false ); VLCMenuBar::PopupMenu( p_intf, false );
QVLCMenuManager::AudioPopupMenu( p_intf, false ); VLCMenuBar::AudioPopupMenu( p_intf, false );
QVLCMenuManager::VideoPopupMenu( p_intf, false ); VLCMenuBar::VideoPopupMenu( p_intf, false );
QVLCMenuManager::MiscPopupMenu( p_intf, false ); VLCMenuBar::MiscPopupMenu( p_intf, false );
} }
void DialogsProvider::quit() void DialogsProvider::quit()
...@@ -152,13 +152,13 @@ void DialogsProvider::customEvent( QEvent *event ) ...@@ -152,13 +152,13 @@ void DialogsProvider::customEvent( QEvent *event )
vlmDialog(); break; vlmDialog(); break;
#endif #endif
case INTF_DIALOG_POPUPMENU: case INTF_DIALOG_POPUPMENU:
QVLCMenuManager::PopupMenu( p_intf, (de->i_arg != 0) ); break; VLCMenuBar::PopupMenu( p_intf, (de->i_arg != 0) ); break;
case INTF_DIALOG_AUDIOPOPUPMENU: case INTF_DIALOG_AUDIOPOPUPMENU:
QVLCMenuManager::AudioPopupMenu( p_intf, (de->i_arg != 0) ); break; VLCMenuBar::AudioPopupMenu( p_intf, (de->i_arg != 0) ); break;
case INTF_DIALOG_VIDEOPOPUPMENU: case INTF_DIALOG_VIDEOPOPUPMENU:
QVLCMenuManager::VideoPopupMenu( p_intf, (de->i_arg != 0) ); break; VLCMenuBar::VideoPopupMenu( p_intf, (de->i_arg != 0) ); break;
case INTF_DIALOG_MISCPOPUPMENU: case INTF_DIALOG_MISCPOPUPMENU:
QVLCMenuManager::MiscPopupMenu( p_intf, (de->i_arg != 0) ); break; VLCMenuBar::MiscPopupMenu( p_intf, (de->i_arg != 0) ); break;
case INTF_DIALOG_WIZARD: case INTF_DIALOG_WIZARD:
case INTF_DIALOG_STREAMWIZARD: case INTF_DIALOG_STREAMWIZARD:
openAndStreamingDialogs(); break; openAndStreamingDialogs(); break;
...@@ -724,7 +724,7 @@ void DialogsProvider::loadSubtitlesFile() ...@@ -724,7 +724,7 @@ void DialogsProvider::loadSubtitlesFile()
void DialogsProvider::menuAction( QObject *data ) void DialogsProvider::menuAction( QObject *data )
{ {
QVLCMenuManager::DoAction( data ); VLCMenuBar::DoAction( data );
} }
void DialogsProvider::menuUpdateAction( QObject *data ) void DialogsProvider::menuUpdateAction( QObject *data )
......
...@@ -83,12 +83,12 @@ enum { ...@@ -83,12 +83,12 @@ enum {
class QEvent; class QEvent;
class QSignalMapper; class QSignalMapper;
class QVLCMenuManager; class VLCMenuBar;
class DialogsProvider : public QObject class DialogsProvider : public QObject
{ {
Q_OBJECT Q_OBJECT
friend class QVLCMenuManager; friend class VLCMenuBar;
public: public:
static DialogsProvider *getInstance() static DialogsProvider *getInstance()
......
...@@ -146,7 +146,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -146,7 +146,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/************ /************
* Menu Bar * * Menu Bar *
************/ ************/
QVLCMenuManager::createMenuBar( this, p_intf ); VLCMenuBar::createMenuBar( this, p_intf );
CONNECT( THEMIM->getIM(), voutListChanged( vout_thread_t **, int ), CONNECT( THEMIM->getIM(), voutListChanged( vout_thread_t **, int ),
this, destroyPopupMenu() ); this, destroyPopupMenu() );
...@@ -570,12 +570,12 @@ inline void MainInterface::showTab( QWidget *widget ) ...@@ -570,12 +570,12 @@ inline void MainInterface::showTab( QWidget *widget )
void MainInterface::destroyPopupMenu() void MainInterface::destroyPopupMenu()
{ {
QVLCMenuManager::PopupMenu( p_intf, false ); VLCMenuBar::PopupMenu( p_intf, false );
} }
void MainInterface::popupMenu( const QPoint & ) void MainInterface::popupMenu( const QPoint & )
{ {
QVLCMenuManager::PopupMenu( p_intf, true ); VLCMenuBar::PopupMenu( p_intf, true );
} }
void MainInterface::toggleFSC() void MainInterface::toggleFSC()
...@@ -1002,7 +1002,7 @@ void MainInterface::createSystray() ...@@ -1002,7 +1002,7 @@ void MainInterface::createSystray()
systrayMenu = new QMenu( qtr( "VLC media player" ), this ); systrayMenu = new QMenu( qtr( "VLC media player" ), this );
systrayMenu->setIcon( iconVLC ); systrayMenu->setIcon( iconVLC );
QVLCMenuManager::updateSystrayMenu( this, p_intf, true ); VLCMenuBar::updateSystrayMenu( this, p_intf, true );
sysTray->show(); sysTray->show();
CONNECT( sysTray, activated( QSystemTrayIcon::ActivationReason ), CONNECT( sysTray, activated( QSystemTrayIcon::ActivationReason ),
...@@ -1062,7 +1062,7 @@ void MainInterface::toggleUpdateSystrayMenu() ...@@ -1062,7 +1062,7 @@ void MainInterface::toggleUpdateSystrayMenu()
#endif #endif
} }
if( sysTray ) if( sysTray )
QVLCMenuManager::updateSystrayMenu( this, p_intf ); VLCMenuBar::updateSystrayMenu( this, p_intf );
} }
/* First Item of the systray menu */ /* First Item of the systray menu */
...@@ -1074,14 +1074,14 @@ void MainInterface::showUpdateSystrayMenu() ...@@ -1074,14 +1074,14 @@ void MainInterface::showUpdateSystrayMenu()
showNormal(); showNormal();
activateWindow(); activateWindow();
QVLCMenuManager::updateSystrayMenu( this, p_intf ); VLCMenuBar::updateSystrayMenu( this, p_intf );
} }
/* First Item of the systray menu */ /* First Item of the systray menu */
void MainInterface::hideUpdateSystrayMenu() void MainInterface::hideUpdateSystrayMenu()
{ {
hide(); hide();
QVLCMenuManager::updateSystrayMenu( this, p_intf ); VLCMenuBar::updateSystrayMenu( this, p_intf );
} }
/* Click on systray Icon */ /* Click on systray Icon */
...@@ -1093,7 +1093,7 @@ void MainInterface::handleSystrayClick( ...@@ -1093,7 +1093,7 @@ void MainInterface::handleSystrayClick(
case QSystemTrayIcon::Trigger: case QSystemTrayIcon::Trigger:
case QSystemTrayIcon::DoubleClick: case QSystemTrayIcon::DoubleClick:
#ifdef Q_WS_MAC #ifdef Q_WS_MAC
QVLCMenuManager::updateSystrayMenu( this, p_intf ); VLCMenuBar::updateSystrayMenu( this, p_intf );
#else #else
toggleUpdateSystrayMenu(); toggleUpdateSystrayMenu();
#endif #endif
...@@ -1128,7 +1128,7 @@ void MainInterface::updateSystrayTooltipName( const QString& name ) ...@@ -1128,7 +1128,7 @@ void MainInterface::updateSystrayTooltipName( const QString& name )
} }
} }
QVLCMenuManager::updateSystrayMenu( this, p_intf ); VLCMenuBar::updateSystrayMenu( this, p_intf );
} }
/** /**
...@@ -1149,7 +1149,7 @@ void MainInterface::updateSystrayTooltipStatus( int i_status ) ...@@ -1149,7 +1149,7 @@ void MainInterface::updateSystrayTooltipStatus( int i_status )
sysTray->setToolTip( qtr( "VLC media player" ) ); sysTray->setToolTip( qtr( "VLC media player" ) );
break; break;
} }
QVLCMenuManager::updateSystrayMenu( this, p_intf ); VLCMenuBar::updateSystrayMenu( this, p_intf );
} }
void MainInterface::changeEvent(QEvent *event) void MainInterface::changeEvent(QEvent *event)
......
This diff is collapsed.
...@@ -69,7 +69,7 @@ private: ...@@ -69,7 +69,7 @@ private:
int i_val_type; int i_val_type;
}; };
class QVLCMenuManager : public QObject class VLCMenuBar : public QObject
{ {
Q_OBJECT Q_OBJECT
friend class MenuFunc; friend class MenuFunc;
...@@ -155,7 +155,7 @@ private: ...@@ -155,7 +155,7 @@ private:
public slots: public slots:
static void updateRecents( intf_thread_t * ); static void updateRecents( intf_thread_t * );
}; };
Q_DECLARE_OPERATORS_FOR_FLAGS(QVLCMenuManager::actionflags) Q_DECLARE_OPERATORS_FOR_FLAGS(VLCMenuBar::actionflags)
class MenuFunc : public QObject class MenuFunc : public QObject
{ {
...@@ -169,10 +169,10 @@ public: ...@@ -169,10 +169,10 @@ public:
{ {
switch( id ) switch( id )
{ {
case 1: QVLCMenuManager::AudioMenu( p_intf, menu ); break; case 1: VLCMenuBar::AudioMenu( p_intf, menu ); break;
case 2: QVLCMenuManager::VideoMenu( p_intf, menu ); break; case 2: VLCMenuBar::VideoMenu( p_intf, menu ); break;
case 3: QVLCMenuManager::RebuildNavigMenu( p_intf, menu ); break; case 3: VLCMenuBar::RebuildNavigMenu( p_intf, menu ); break;
case 4: QVLCMenuManager::ViewMenu( p_intf, menu ); break; case 4: VLCMenuBar::ViewMenu( p_intf, menu ); break;
} }
} }
private: private:
......
...@@ -103,7 +103,7 @@ void RecentsMRL::addRecent( const QString &mrl ) ...@@ -103,7 +103,7 @@ void RecentsMRL::addRecent( const QString &mrl )
if( stack->count() > RECENTS_LIST_SIZE ) if( stack->count() > RECENTS_LIST_SIZE )
stack->takeLast(); stack->takeLast();
} }
QVLCMenuManager::updateRecents( p_intf ); VLCMenuBar::updateRecents( p_intf );
save(); save();
} }
...@@ -113,7 +113,7 @@ void RecentsMRL::clear() ...@@ -113,7 +113,7 @@ void RecentsMRL::clear()
return; return;
stack->clear(); stack->clear();
if( isActive ) QVLCMenuManager::updateRecents( p_intf ); if( isActive ) VLCMenuBar::updateRecents( p_intf );
save(); save();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment