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
d7cb06d6
Commit
d7cb06d6
authored
Nov 10, 2009
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensions/Qt: buildsystem + menu entries
You can now play with extensions, from the menu View > Extensions
parent
58f43231
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
0 deletions
+58
-0
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+6
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+4
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+46
-0
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+2
-0
No files found.
modules/gui/qt4/Modules.am
View file @
d7cb06d6
...
@@ -20,6 +20,7 @@ nodist_SOURCES_qt4 = \
...
@@ -20,6 +20,7 @@ nodist_SOURCES_qt4 = \
dialogs_provider.moc.cpp \
dialogs_provider.moc.cpp \
input_manager.moc.cpp \
input_manager.moc.cpp \
actions_manager.moc.cpp \
actions_manager.moc.cpp \
extensions_manager.moc.cpp \
recents.moc.cpp \
recents.moc.cpp \
variables.moc.cpp \
variables.moc.cpp \
dialogs/playlist.moc.cpp \
dialogs/playlist.moc.cpp \
...
@@ -41,6 +42,7 @@ nodist_SOURCES_qt4 = \
...
@@ -41,6 +42,7 @@ nodist_SOURCES_qt4 = \
dialogs/podcast_configuration.moc.cpp \
dialogs/podcast_configuration.moc.cpp \
dialogs/vlm.moc.cpp \
dialogs/vlm.moc.cpp \
dialogs/firstrun.moc.cpp \
dialogs/firstrun.moc.cpp \
dialogs/extensions.moc.cpp \
components/extended_panels.moc.cpp \
components/extended_panels.moc.cpp \
components/info_panels.moc.cpp \
components/info_panels.moc.cpp \
components/preferences_widgets.moc.cpp \
components/preferences_widgets.moc.cpp \
...
@@ -210,6 +212,7 @@ SOURCES_qt4 = qt4.cpp \
...
@@ -210,6 +212,7 @@ SOURCES_qt4 = qt4.cpp \
dialogs_provider.cpp \
dialogs_provider.cpp \
input_manager.cpp \
input_manager.cpp \
actions_manager.cpp \
actions_manager.cpp \
extensions_manager.cpp \
recents.cpp \
recents.cpp \
variables.cpp \
variables.cpp \
dialogs/playlist.cpp \
dialogs/playlist.cpp \
...
@@ -231,6 +234,7 @@ SOURCES_qt4 = qt4.cpp \
...
@@ -231,6 +234,7 @@ SOURCES_qt4 = qt4.cpp \
dialogs/vlm.cpp \
dialogs/vlm.cpp \
dialogs/firstrun.cpp \
dialogs/firstrun.cpp \
dialogs/podcast_configuration.cpp \
dialogs/podcast_configuration.cpp \
dialogs/extensions.cpp \
components/extended_panels.cpp \
components/extended_panels.cpp \
components/info_panels.cpp \
components/info_panels.cpp \
components/preferences_widgets.cpp \
components/preferences_widgets.cpp \
...
@@ -258,6 +262,7 @@ noinst_HEADERS = \
...
@@ -258,6 +262,7 @@ noinst_HEADERS = \
dialogs_provider.hpp \
dialogs_provider.hpp \
input_manager.hpp \
input_manager.hpp \
actions_manager.hpp \
actions_manager.hpp \
extensions_manager.hpp \
recents.hpp \
recents.hpp \
variables.hpp \
variables.hpp \
dialogs/playlist.hpp \
dialogs/playlist.hpp \
...
@@ -279,6 +284,7 @@ noinst_HEADERS = \
...
@@ -279,6 +284,7 @@ noinst_HEADERS = \
dialogs/vlm.hpp \
dialogs/vlm.hpp \
dialogs/firstrun.hpp \
dialogs/firstrun.hpp \
dialogs/podcast_configuration.hpp \
dialogs/podcast_configuration.hpp \
dialogs/extensions.hpp \
components/extended_panels.hpp \
components/extended_panels.hpp \
components/info_panels.hpp \
components/info_panels.hpp \
components/preferences_widgets.hpp \
components/preferences_widgets.hpp \
...
...
modules/gui/qt4/main_interface.cpp
View file @
d7cb06d6
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include "main_interface.hpp"
#include "main_interface.hpp"
#include "input_manager.hpp"
#include "input_manager.hpp"
#include "actions_manager.hpp"
#include "actions_manager.hpp"
#include "extensions_manager.hpp" // killInstance
#include "util/customwidgets.hpp"
#include "util/customwidgets.hpp"
#include "util/qt_dirs.hpp"
#include "util/qt_dirs.hpp"
...
@@ -318,6 +319,9 @@ MainInterface::~MainInterface()
...
@@ -318,6 +319,9 @@ MainInterface::~MainInterface()
/* Be sure to kill the actionsManager... FIXME */
/* Be sure to kill the actionsManager... FIXME */
ActionsManager
::
killInstance
();
ActionsManager
::
killInstance
();
/* Idem, FIXME */
ExtensionsManager
::
killInstance
();
/* Delete the FSC controller */
/* Delete the FSC controller */
delete
fullscreenControls
;
delete
fullscreenControls
;
...
...
modules/gui/qt4/menus.cpp
View file @
d7cb06d6
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#include "input_manager.hpp"
/* Input Management */
#include "input_manager.hpp"
/* Input Management */
#include "recents.hpp"
/* Recent Items */
#include "recents.hpp"
/* Recent Items */
#include "actions_manager.hpp"
#include "actions_manager.hpp"
#include "extensions_manager.hpp"
#include <QMenu>
#include <QMenu>
#include <QMenuBar>
#include <QMenuBar>
...
@@ -471,6 +472,13 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
...
@@ -471,6 +472,13 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
":/menu/preferences"
,
SLOT
(
toolbarDialog
()
)
);
":/menu/preferences"
,
SLOT
(
toolbarDialog
()
)
);
menu
->
addSeparator
();
menu
->
addSeparator
();
/* Extensions */
menu
->
addSeparator
();
QMenu
*
extmenu
=
ExtensionsMenu
(
p_intf
,
menu
);
MenuFunc
*
f
=
new
MenuFunc
(
menu
,
5
);
CONNECT
(
menu
,
aboutToShow
(),
THEDP
->
menusUpdateMapper
,
map
()
);
THEDP
->
menusUpdateMapper
->
setMapping
(
menu
,
f
);
return
menu
;
return
menu
;
}
}
...
@@ -487,6 +495,44 @@ QMenu *QVLCMenu::InterfacesMenu( intf_thread_t *p_intf, QMenu *current )
...
@@ -487,6 +495,44 @@ QMenu *QVLCMenu::InterfacesMenu( intf_thread_t *p_intf, QMenu *current )
return
Populate
(
p_intf
,
current
,
varnames
,
objects
);
return
Populate
(
p_intf
,
current
,
varnames
,
objects
);
}
}
/**
* Extensions Sub-Menu
* EXPERIMENTAL
**/
QMenu
*
QVLCMenu
::
ExtensionsMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
{
QMenu
*
extMenu
=
NULL
;
QAction
*
extAction
=
NULL
;
foreach
(
QAction
*
action
,
current
->
actions
()
)
{
if
(
action
->
text
()
==
qtr
(
"&Extensions"
)
)
{
extAction
=
action
;
break
;
}
}
ExtensionsManager
*
extMgr
=
ExtensionsManager
::
getInstance
(
p_intf
);
extMenu
=
new
QMenu
(
qtr
(
"&Extensions"
)
);
if
(
extMgr
->
isLoaded
()
)
{
/* Let the ExtensionsManager build itself the menu */
extMgr
->
menu
(
extMenu
);
}
else
{
extMenu
->
addAction
(
qtr
(
"&Load extensions"
),
extMgr
,
SLOT
(
loadExtensions
()
)
);
}
if
(
extAction
)
extAction
->
setMenu
(
extMenu
);
else
current
->
addMenu
(
extMenu
);
}
/**
/**
* Main Audio Menu
* Main Audio Menu
**/
**/
...
...
modules/gui/qt4/menus.hpp
View file @
d7cb06d6
...
@@ -109,6 +109,7 @@ private:
...
@@ -109,6 +109,7 @@ private:
static
QMenu
*
ViewMenu
(
intf_thread_t
*
,
MainInterface
*
,
static
QMenu
*
ViewMenu
(
intf_thread_t
*
,
MainInterface
*
,
bool
with
=
true
);
bool
with
=
true
);
static
QMenu
*
InterfacesMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
);
static
QMenu
*
InterfacesMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
);
static
QMenu
*
ExtensionsMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
);
static
QMenu
*
NavigMenu
(
intf_thread_t
*
,
QMenu
*
);
static
QMenu
*
NavigMenu
(
intf_thread_t
*
,
QMenu
*
);
static
QMenu
*
NavigMenu
(
intf_thread_t
*
,
QWidget
*
);
static
QMenu
*
NavigMenu
(
intf_thread_t
*
,
QWidget
*
);
...
@@ -163,6 +164,7 @@ public:
...
@@ -163,6 +164,7 @@ public:
case
2
:
QVLCMenu
::
VideoMenu
(
p_intf
,
menu
);
break
;
case
2
:
QVLCMenu
::
VideoMenu
(
p_intf
,
menu
);
break
;
case
3
:
QVLCMenu
::
RebuildNavigMenu
(
p_intf
,
menu
);
break
;
case
3
:
QVLCMenu
::
RebuildNavigMenu
(
p_intf
,
menu
);
break
;
case
4
:
QVLCMenu
::
InterfacesMenu
(
p_intf
,
menu
);
break
;
case
4
:
QVLCMenu
::
InterfacesMenu
(
p_intf
,
menu
);
break
;
case
5
:
QVLCMenu
::
ExtensionsMenu
(
p_intf
,
menu
);
break
;
}
}
}
}
private:
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