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
ca4c96b1
Commit
ca4c96b1
authored
Mar 19, 2003
by
Emmanuel Puig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fiwing WINDOW_CLOSE and WINDOW_OPEN synchronization
parent
6140784b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
16 deletions
+51
-16
modules/gui/skins/src/event.cpp
modules/gui/skins/src/event.cpp
+4
-4
modules/gui/skins/src/theme.cpp
modules/gui/skins/src/theme.cpp
+13
-6
modules/gui/skins/src/vlcproc.cpp
modules/gui/skins/src/vlcproc.cpp
+3
-3
modules/gui/skins/src/window.cpp
modules/gui/skins/src/window.cpp
+31
-3
No files found.
modules/gui/skins/src/event.cpp
View file @
ca4c96b1
...
...
@@ -2,7 +2,7 @@
* event.cpp: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.cpp,v 1.
1 2003/03/18 02:21:47 ipkiss
Exp $
* $Id: event.cpp,v 1.
2 2003/03/19 18:14:48 karibu
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -296,11 +296,11 @@ void Event::CreateEvent()
break
;
case
WINDOW_OPEN
:
Param
2
=
GetBool
(
para2
);
Param
1
=
GetBool
(
para2
);
break
;
case
WINDOW_CLOSE
:
Param
2
=
GetBool
(
para2
);
Param
1
=
GetBool
(
para2
);
break
;
case
PLAYLIST_ID_DEL
:
...
...
@@ -357,7 +357,7 @@ int Event::GetBool( string expr )
{
return
2
;
}
return
2
;
return
1
;
}
//---------------------------------------------------------------------------
void
Event
::
CreateShortcut
()
...
...
modules/gui/skins/src/theme.cpp
View file @
ca4c96b1
...
...
@@ -2,7 +2,7 @@
* theme.cpp: Theme class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: theme.cpp,v 1.
2 2003/03/19 03:11:14
karibu Exp $
* $Id: theme.cpp,v 1.
3 2003/03/19 18:14:48
karibu Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -87,18 +87,25 @@ void Theme::ShowTheme()
ChangeTaskbar
();
list
<
Window
*>::
const_iterator
win
;
Event
*
evt
;
Event
*
evt1
;
Event
*
evt2
;
// Synchronize control to visible aspect
for
(
win
=
WindowList
.
begin
();
win
!=
WindowList
.
end
();
win
++
)
{
// Synchronize windows visibility
if
(
(
*
win
)
->
OnStartThemeVisible
)
evt
=
(
Event
*
)
new
OSEvent
(
p_intf
,
(
*
win
),
WINDOW_OPEN
,
0
,
1
);
{
evt1
=
(
Event
*
)
new
OSEvent
(
p_intf
,
(
*
win
),
WINDOW_OPEN
,
1
,
0
);
evt2
=
(
Event
*
)
new
OSEvent
(
p_intf
,
(
*
win
),
WINDOW_CLOSE
,
0
,
0
);
}
else
evt
=
(
Event
*
)
new
OSEvent
(
p_intf
,
(
*
win
),
WINDOW_CLOSE
,
0
,
1
);
evt
->
PostSynchroMessage
(
true
);
{
evt1
=
(
Event
*
)
new
OSEvent
(
p_intf
,
(
*
win
),
WINDOW_OPEN
,
0
,
0
);
evt2
=
(
Event
*
)
new
OSEvent
(
p_intf
,
(
*
win
),
WINDOW_CLOSE
,
1
,
0
);
}
evt1
->
PostSynchroMessage
(
true
);
evt2
->
PostSynchroMessage
(
true
);
}
// Initialize magnetism
...
...
modules/gui/skins/src/vlcproc.cpp
View file @
ca4c96b1
...
...
@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.
1 2003/03/18 02:21:47 ipkiss
Exp $
* $Id: vlcproc.cpp,v 1.
2 2003/03/19 18:14:48 karibu
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -78,7 +78,7 @@ bool VlcProc::EventProc( Event *evt )
(
*
win
)
->
OnStartThemeVisible
=
!
(
*
win
)
->
IsHidden
();
}
p_intf
->
p_sys
->
i_close_status
=
(
int
)
evt
->
GetParam1
();
OSAPI_PostMessage
(
NULL
,
WINDOW_CLOSE
,
0
,
0
);
OSAPI_PostMessage
(
NULL
,
WINDOW_CLOSE
,
1
,
0
);
return
true
;
case
VLC_SHOW
:
...
...
@@ -87,7 +87,7 @@ bool VlcProc::EventProc( Event *evt )
win
!=
p_intf
->
p_sys
->
p_theme
->
WindowList
.
end
();
win
++
)
{
if
(
(
*
win
)
->
OnStartThemeVisible
)
OSAPI_PostMessage
(
(
*
win
),
WINDOW_OPEN
,
0
,
0
);
OSAPI_PostMessage
(
(
*
win
),
WINDOW_OPEN
,
1
,
0
);
}
p_intf
->
p_sys
->
b_all_win_closed
=
false
;
return
true
;
...
...
modules/gui/skins/src/window.cpp
View file @
ca4c96b1
...
...
@@ -2,7 +2,7 @@
* window.cpp: Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: window.cpp,v 1.
2 2003/03/19 02:09:56 videolan
Exp $
* $Id: window.cpp,v 1.
3 2003/03/19 18:14:48 karibu
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -185,11 +185,39 @@ bool Window::ProcessEvent( Event *evt )
return
true
;
case
WINDOW_OPEN
:
Open
();
switch
(
p1
)
{
case
0
:
Close
();
break
;
case
1
:
Open
();
break
;
case
2
:
if
(
Hidden
)
Open
();
else
Close
();
break
;
}
return
true
;
case
WINDOW_CLOSE
:
Close
();
switch
(
p1
)
{
case
0
:
Open
();
break
;
case
1
:
Close
();
break
;
case
2
:
if
(
Hidden
)
Open
();
else
Close
();
break
;
}
return
true
;
case
WINDOW_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