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
6fa897af
Commit
6fa897af
authored
Jul 29, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bgWidget fix. Close #1743
parent
2e812d10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
+25
-12
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+23
-11
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+2
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
6fa897af
...
@@ -416,18 +416,21 @@ void MainInterface::handleMainUi( QSettings *settings )
...
@@ -416,18 +416,21 @@ void MainInterface::handleMainUi( QSettings *settings )
visualSelector->hide();
visualSelector->hide();
#endif
#endif
/* And video Outputs */
/* Bg Cone */
if
(
i_visualmode
==
QT_ALWAYS_VIDEO_MODE
||
bgWidget
=
new
BackgroundWidget
(
p_intf
);
i_visualmode
==
QT_MINIMAL_MODE
)
bgWidget
->
resize
(
settings
->
value
(
"backgroundSize"
,
QSize
(
300
,
200
)
).
toSize
()
);
bgWidget
->
updateGeometry
();
mainLayout
->
insertWidget
(
0
,
bgWidget
);
CONNECT
(
this
,
askBgWidgetToToggle
(),
bgWidget
,
toggle
()
);
if
(
i_visualmode
!=
QT_ALWAYS_VIDEO_MODE
&&
i_visualmode
!=
QT_MINIMAL_MODE
)
{
{
bgWidget
=
new
BackgroundWidget
(
p_intf
);
bgWidget
->
hide
();
bgWidget
->
resize
(
settings
->
value
(
"backgroundSize"
,
QSize
(
300
,
150
)
).
toSize
()
);
bgWidget
->
updateGeometry
();
mainLayout
->
insertWidget
(
0
,
bgWidget
);
CONNECT
(
this
,
askBgWidgetToToggle
(),
bgWidget
,
toggle
()
);
}
}
/* And video Outputs */
if
(
videoEmbeddedFlag
)
if
(
videoEmbeddedFlag
)
{
{
videoWidget
=
new
VideoWidget
(
p_intf
);
videoWidget
=
new
VideoWidget
(
p_intf
);
...
@@ -652,7 +655,7 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
...
@@ -652,7 +655,7 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
int
*
pi_y
,
unsigned
int
*
pi_width
,
int
*
pi_y
,
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
)
unsigned
int
*
pi_height
)
{
{
b
ool
b
gWasVisible
=
false
;
bgWasVisible
=
false
;
/* Request the videoWidget */
/* Request the videoWidget */
void
*
ret
=
videoWidget
->
request
(
p_nvout
,
pi_x
,
pi_y
,
pi_width
,
pi_height
);
void
*
ret
=
videoWidget
->
request
(
p_nvout
,
pi_x
,
pi_y
,
pi_width
,
pi_height
);
...
@@ -698,8 +701,11 @@ void MainInterface::releaseVideoSlot( void *p_win )
...
@@ -698,8 +701,11 @@ void MainInterface::releaseVideoSlot( void *p_win )
videoWidget
->
release
(
p_win
);
videoWidget
->
release
(
p_win
);
videoWidget
->
hide
();
videoWidget
->
hide
();
if
(
bgWidget
)
// WRONG
if
(
bgWasVisible
)
{
bgWasVisible
=
false
;
bgWidget
->
show
();
bgWidget
->
show
();
}
adjustSize
();
adjustSize
();
videoIsActive
=
false
;
videoIsActive
=
false
;
...
@@ -801,6 +807,12 @@ void MainInterface::toggleMinimalView()
...
@@ -801,6 +807,12 @@ void MainInterface::toggleMinimalView()
{
{
/* HACK for minimalView, see menus.cpp */
/* HACK for minimalView, see menus.cpp */
if
(
!
menuBar
()
->
isVisible
()
)
QVLCMenu
::
minimalViewAction
->
toggle
();
if
(
!
menuBar
()
->
isVisible
()
)
QVLCMenu
::
minimalViewAction
->
toggle
();
if
(
i_visualmode
!=
QT_ALWAYS_VIDEO_MODE
&&
i_visualmode
!=
QT_MINIMAL_MODE
)
{
emit
askBgWidgetToToggle
();
}
TOGGLEV
(
menuBar
()
);
TOGGLEV
(
menuBar
()
);
TOGGLEV
(
controls
);
TOGGLEV
(
controls
);
TOGGLEV
(
statusBar
()
);
TOGGLEV
(
statusBar
()
);
...
...
modules/gui/qt4/main_interface.hpp
View file @
6fa897af
...
@@ -131,7 +131,8 @@ private:
...
@@ -131,7 +131,8 @@ private:
bool
playlistVisible
;
///< Is the playlist visible ?
bool
playlistVisible
;
///< Is the playlist visible ?
bool
visualSelectorEnabled
;
bool
visualSelectorEnabled
;
bool
notificationEnabled
;
/// Systray Notifications
bool
notificationEnabled
;
/// Systray Notifications
bool
b_remainingTime
;
/* showing elapsed or remaining time */
bool
b_remainingTime
;
/* Show elapsed or remaining time */
bool
bgWasVisible
;
int
i_visualmode
;
///< Visual Mode
int
i_visualmode
;
///< Visual Mode
input_thread_t
*
p_input
;
///< Main input associated to the playlist
input_thread_t
*
p_input
;
///< Main input associated to the playlist
...
...
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