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
3f6e3c48
Commit
3f6e3c48
authored
Dec 12, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: debug only if you want to.
parent
14a0e3f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+19
-2
No files found.
modules/gui/qt4/main_interface.cpp
View file @
3f6e3c48
...
...
@@ -71,6 +71,7 @@
#include <vlc_vout_window.h>
#include <vlc_vout.h>
// #define DEBUG_INTF
/* Callback prototypes */
static
int
PopupMenuCB
(
vlc_object_t
*
p_this
,
const
char
*
psz_variable
,
vlc_value_t
old_val
,
vlc_value_t
new_val
,
void
*
param
);
...
...
@@ -725,11 +726,15 @@ void MainInterface::debug()
inline
void
MainInterface
::
showTab
(
int
i_tab
)
{
#ifdef DEBUG_INTF
msg_Err
(
p_intf
,
"showTab %i"
,
i_tab
);
msg_Warn
(
p_intf
,
"Old stackCentralOldState %i"
,
stackCentralOldState
);
#endif
stackCentralOldState
=
stackCentralW
->
isVisible
()
?
stackCentralW
->
currentIndex
()
:
HIDDEN_TAB
;
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"State change %i %i"
,
stackCentralW
->
currentIndex
(),
i_tab
);
#endif
if
(
i_visualmode
==
QT_NORMAL_MODE
)
{
...
...
@@ -741,12 +746,16 @@ inline void MainInterface::showTab( int i_tab )
stackCentralW
->
setCurrentIndex
(
i_tab
);
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"New stackCentralOldState %i"
,
stackCentralOldState
);
#endif
}
inline
void
MainInterface
::
restoreStackOldWidget
()
{
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"Old stackCentralOldState %i"
,
stackCentralOldState
);
#endif
int
temp
=
stackCentralW
->
isVisible
()
?
stackCentralW
->
currentIndex
()
:
HIDDEN_TAB
;
stackCentralW
->
setCurrentIndex
(
stackCentralOldState
);
...
...
@@ -757,8 +766,9 @@ inline void MainInterface::restoreStackOldWidget()
}
stackCentralOldState
=
temp
;
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"Debug %i %i"
,
temp
,
stackCentralW
->
currentIndex
()
);
#endif
}
void
MainInterface
::
destroyPopupMenu
()
...
...
@@ -920,9 +930,13 @@ void MainInterface::createPlaylist( bool b_show )
}
else
{
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"Here %i"
,
stackCentralW
->
currentIndex
()
);
#endif
stackCentralW
->
insertWidget
(
PLAYL_TAB
,
playlistWidget
);
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"Here %i"
,
stackCentralW
->
currentIndex
()
);
#endif
}
if
(
b_show
)
...
...
@@ -934,19 +948,22 @@ void MainInterface::createPlaylist( bool b_show )
void
MainInterface
::
togglePlaylist
()
{
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"Here toggling %i %i"
,
stackCentralW
->
currentIndex
(),
stackCentralOldState
);
#endif
if
(
!
playlistWidget
)
{
createPlaylist
(
true
);
}
#ifdef DEBUG_INTF
msg_Warn
(
p_intf
,
"Here toggling %i %i"
,
stackCentralW
->
currentIndex
(),
stackCentralOldState
);
#endif
if
(
i_pl_dock
!=
PL_UNDOCKED
)
{
/* Playlist not visible */
if
(
stackCentralW
->
currentIndex
()
!=
PLAYL_TAB
)
{
msg_Warn
(
p_intf
,
"Here 42"
);
showTab
(
PLAYL_TAB
);
stackCentralW
->
show
();
}
...
...
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