Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
29a015e0
Commit
29a015e0
authored
Apr 20, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: no need to restart VLC to get the new toolbars.
parent
11871cfe
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
13 deletions
+38
-13
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+3
-2
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+2
-1
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+2
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+30
-10
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
29a015e0
...
...
@@ -247,7 +247,6 @@ void ToolbarEditDialog::changeProfile( int i )
void
ToolbarEditDialog
::
close
()
{
msg_Dbg
(
p_intf
,
"Close and save"
);
hide
();
getSettings
()
->
setValue
(
"MainWindow/ToolbarPos"
,
positionCombo
->
itemData
(
positionCombo
->
currentIndex
()
).
toInt
()
);
getSettings
()
->
setValue
(
"MainWindow/MainToolbar1"
,
controller1
->
getValue
()
);
...
...
@@ -255,11 +254,13 @@ void ToolbarEditDialog::close()
getSettings
()
->
setValue
(
"MainWindow/AdvToolbar"
,
controllerA
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/InputToolbar"
,
controller
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/FSCtoolbar"
,
controllerFSC
->
getValue
()
);
getSettings
()
->
sync
();
accept
();
}
void
ToolbarEditDialog
::
cancel
()
{
hide
();
reject
();
}
/************************************************
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
29a015e0
...
...
@@ -242,7 +242,8 @@ void DialogsProvider::podcastConfigureDialog()
void
DialogsProvider
::
toolbarDialog
()
{
ToolbarEditDialog
*
toolbarEditor
=
new
ToolbarEditDialog
(
(
QWidget
*
)
p_intf
->
p_sys
->
p_mi
,
p_intf
);
toolbarEditor
->
exec
();
if
(
toolbarEditor
->
exec
()
==
QDialog
::
Accepted
)
emit
toolBarConfUpdated
();
}
void
DialogsProvider
::
pluginDialog
()
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
29a015e0
...
...
@@ -193,6 +193,8 @@ private slots:
void
menuAction
(
QObject
*
);
void
menuUpdateAction
(
QObject
*
);
void
SDMenuAction
(
QString
);
signals:
void
toolBarConfUpdated
();
};
class
DialogEvent
:
public
QEvent
...
...
modules/gui/qt4/main_interface.cpp
View file @
29a015e0
...
...
@@ -221,6 +221,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
}
CONNECT
(
this
,
askUpdate
(),
this
,
doComponentsUpdate
()
);
CONNECT
(
THEDP
,
toolBarConfUpdated
(),
this
,
recreateToolbars
()
);
/* Size and placement of interface */
settings
->
beginGroup
(
"MainWindow"
);
...
...
@@ -408,6 +409,24 @@ void MainInterface::setVLCWindowsTitle( QString aTitle )
}
}
void
MainInterface
::
recreateToolbars
()
{
settings
->
beginGroup
(
"MainWindow"
);
delete
controls
;
delete
inputC
;
controls
=
new
ControlsWidget
(
p_intf
,
false
,
this
);
/* FIXME */
CONNECT
(
controls
,
advancedControlsToggled
(
bool
),
this
,
doComponentsUpdate
()
);
CONNECT
(
controls
,
sizeChanged
(),
this
,
doComponentsUpdate
()
);
inputC
=
new
InputControlsWidget
(
p_intf
,
this
);
mainLayout
->
insertWidget
(
2
,
inputC
,
0
,
Qt
::
AlignBottom
);
mainLayout
->
insertWidget
(
settings
->
value
(
"ToolbarPos"
,
0
).
toInt
()
?
0
:
3
,
controls
,
0
,
Qt
::
AlignBottom
);
settings
->
endGroup
();
}
void
MainInterface
::
handleMainUi
(
QSettings
*
settings
)
{
/* Create the main Widget and the mainLayout */
...
...
@@ -421,15 +440,6 @@ void MainInterface::handleMainUi( QSettings *settings )
mainLayout
->
setSpacing
(
0
);
mainLayout
->
setMargin
(
0
);
/* Create the CONTROLS Widget */
controls
=
new
ControlsWidget
(
p_intf
,
settings
->
value
(
"adv-controls"
,
false
).
toBool
(),
this
);
CONNECT
(
controls
,
advancedControlsToggled
(
bool
),
this
,
doComponentsUpdate
()
);
CONNECT
(
controls
,
sizeChanged
(),
this
,
doComponentsUpdate
()
);
inputC
=
new
InputControlsWidget
(
p_intf
,
this
);
/* Visualisation */
/* Disabled for now, they SUCK */
#if 0
...
...
@@ -455,6 +465,16 @@ void MainInterface::handleMainUi( QSettings *settings )
if
(
videoEmbeddedFlag
)
videoWidget
=
new
VideoWidget
(
p_intf
);
/* Create the CONTROLS Widget */
controls
=
new
ControlsWidget
(
p_intf
,
settings
->
value
(
"adv-controls"
,
false
).
toBool
(),
this
);
CONNECT
(
controls
,
advancedControlsToggled
(
bool
),
this
,
doComponentsUpdate
()
);
CONNECT
(
controls
,
sizeChanged
(),
this
,
doComponentsUpdate
()
);
inputC
=
new
InputControlsWidget
(
p_intf
,
this
);
/* Add the controls Widget to the main Widget */
mainLayout
->
insertWidget
(
0
,
bgWidget
);
if
(
videoWidget
)
mainLayout
->
insertWidget
(
0
,
videoWidget
,
10
);
...
...
modules/gui/qt4/main_interface.hpp
View file @
29a015e0
...
...
@@ -166,6 +166,7 @@ public slots:
private
slots
:
void
debug
();
void
recreateToolbars
();
void
doComponentsUpdate
();
void
setName
(
QString
);
void
setVLCWindowsTitle
(
QString
title
=
""
);
...
...
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