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
Hide 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 )
...
@@ -247,7 +247,6 @@ void ToolbarEditDialog::changeProfile( int i )
void
ToolbarEditDialog
::
close
()
void
ToolbarEditDialog
::
close
()
{
{
msg_Dbg
(
p_intf
,
"Close and save"
);
msg_Dbg
(
p_intf
,
"Close and save"
);
hide
();
getSettings
()
->
setValue
(
"MainWindow/ToolbarPos"
,
getSettings
()
->
setValue
(
"MainWindow/ToolbarPos"
,
positionCombo
->
itemData
(
positionCombo
->
currentIndex
()
).
toInt
()
);
positionCombo
->
itemData
(
positionCombo
->
currentIndex
()
).
toInt
()
);
getSettings
()
->
setValue
(
"MainWindow/MainToolbar1"
,
controller1
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/MainToolbar1"
,
controller1
->
getValue
()
);
...
@@ -255,11 +254,13 @@ void ToolbarEditDialog::close()
...
@@ -255,11 +254,13 @@ void ToolbarEditDialog::close()
getSettings
()
->
setValue
(
"MainWindow/AdvToolbar"
,
controllerA
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/AdvToolbar"
,
controllerA
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/InputToolbar"
,
controller
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/InputToolbar"
,
controller
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/FSCtoolbar"
,
controllerFSC
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/FSCtoolbar"
,
controllerFSC
->
getValue
()
);
getSettings
()
->
sync
();
accept
();
}
}
void
ToolbarEditDialog
::
cancel
()
void
ToolbarEditDialog
::
cancel
()
{
{
hide
();
reject
();
}
}
/************************************************
/************************************************
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
29a015e0
...
@@ -242,7 +242,8 @@ void DialogsProvider::podcastConfigureDialog()
...
@@ -242,7 +242,8 @@ void DialogsProvider::podcastConfigureDialog()
void
DialogsProvider
::
toolbarDialog
()
void
DialogsProvider
::
toolbarDialog
()
{
{
ToolbarEditDialog
*
toolbarEditor
=
new
ToolbarEditDialog
(
(
QWidget
*
)
p_intf
->
p_sys
->
p_mi
,
p_intf
);
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
()
void
DialogsProvider
::
pluginDialog
()
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
29a015e0
...
@@ -193,6 +193,8 @@ private slots:
...
@@ -193,6 +193,8 @@ private slots:
void
menuAction
(
QObject
*
);
void
menuAction
(
QObject
*
);
void
menuUpdateAction
(
QObject
*
);
void
menuUpdateAction
(
QObject
*
);
void
SDMenuAction
(
QString
);
void
SDMenuAction
(
QString
);
signals:
void
toolBarConfUpdated
();
};
};
class
DialogEvent
:
public
QEvent
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 )
...
@@ -221,6 +221,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
}
}
CONNECT
(
this
,
askUpdate
(),
this
,
doComponentsUpdate
()
);
CONNECT
(
this
,
askUpdate
(),
this
,
doComponentsUpdate
()
);
CONNECT
(
THEDP
,
toolBarConfUpdated
(),
this
,
recreateToolbars
()
);
/* Size and placement of interface */
/* Size and placement of interface */
settings
->
beginGroup
(
"MainWindow"
);
settings
->
beginGroup
(
"MainWindow"
);
...
@@ -408,6 +409,24 @@ void MainInterface::setVLCWindowsTitle( QString aTitle )
...
@@ -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
)
void
MainInterface
::
handleMainUi
(
QSettings
*
settings
)
{
{
/* Create the main Widget and the mainLayout */
/* Create the main Widget and the mainLayout */
...
@@ -421,16 +440,7 @@ void MainInterface::handleMainUi( QSettings *settings )
...
@@ -421,16 +440,7 @@ void MainInterface::handleMainUi( QSettings *settings )
mainLayout
->
setSpacing
(
0
);
mainLayout
->
setSpacing
(
0
);
mainLayout
->
setMargin
(
0
);
mainLayout
->
setMargin
(
0
);
/* Create the CONTROLS Widget */
/* Visualisation */
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 */
/* Disabled for now, they SUCK */
#if 0
#if 0
visualSelector = new VisualSelector( p_intf );
visualSelector = new VisualSelector( p_intf );
...
@@ -455,6 +465,16 @@ void MainInterface::handleMainUi( QSettings *settings )
...
@@ -455,6 +465,16 @@ void MainInterface::handleMainUi( QSettings *settings )
if
(
videoEmbeddedFlag
)
if
(
videoEmbeddedFlag
)
videoWidget
=
new
VideoWidget
(
p_intf
);
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 */
/* Add the controls Widget to the main Widget */
mainLayout
->
insertWidget
(
0
,
bgWidget
);
mainLayout
->
insertWidget
(
0
,
bgWidget
);
if
(
videoWidget
)
mainLayout
->
insertWidget
(
0
,
videoWidget
,
10
);
if
(
videoWidget
)
mainLayout
->
insertWidget
(
0
,
videoWidget
,
10
);
...
...
modules/gui/qt4/main_interface.hpp
View file @
29a015e0
...
@@ -166,6 +166,7 @@ public slots:
...
@@ -166,6 +166,7 @@ public slots:
private
slots
:
private
slots
:
void
debug
();
void
debug
();
void
recreateToolbars
();
void
doComponentsUpdate
();
void
doComponentsUpdate
();
void
setName
(
QString
);
void
setName
(
QString
);
void
setVLCWindowsTitle
(
QString
title
=
""
);
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