Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e9c0cc59
Commit
e9c0cc59
authored
Apr 20, 2003
by
Emmanuel Puig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed support of wheel for playlist with GTK2
* Added support of whell for slider with GTK2
parent
c52797f6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
8 deletions
+34
-8
modules/gui/skins/controls/playlist.cpp
modules/gui/skins/controls/playlist.cpp
+4
-1
modules/gui/skins/controls/slider.cpp
modules/gui/skins/controls/slider.cpp
+23
-1
modules/gui/skins/controls/slider.h
modules/gui/skins/controls/slider.h
+2
-1
modules/gui/skins/gtk2/gtk2_window.cpp
modules/gui/skins/gtk2/gtk2_window.cpp
+3
-3
modules/gui/skins/src/window.cpp
modules/gui/skins/src/window.cpp
+2
-2
No files found.
modules/gui/skins/controls/playlist.cpp
View file @
e9c0cc59
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* playlist.cpp: Playlist control
* playlist.cpp: Playlist control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: playlist.cpp,v 1.
4 2003/04/20 13:14:14 asmax
Exp $
* $Id: playlist.cpp,v 1.
5 2003/04/20 15:00:19 karibu
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -456,6 +456,9 @@ bool ControlPlayList::MouseScroll( int x, int y, int direction )
...
@@ -456,6 +456,9 @@ bool ControlPlayList::MouseScroll( int x, int y, int direction )
if
(
!
Enabled
)
if
(
!
Enabled
)
return
false
;
return
false
;
if
(
!
TextClipRgn
->
Hit
(
x
-
Left
,
y
-
Top
)
&&
!
Slider
->
MouseOver
(
x
,
y
)
)
return
false
;
//long pos = Slider->GetCursorPosition();
//long pos = Slider->GetCursorPosition();
long
pos
=
StartIndex
;
long
pos
=
StartIndex
;
fprintf
(
stderr
,
" scroll %d %d
\n
"
,
pos
,
StartIndex
);
fprintf
(
stderr
,
" scroll %d %d
\n
"
,
pos
,
StartIndex
);
...
...
modules/gui/skins/controls/slider.cpp
View file @
e9c0cc59
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* slider.cpp: Slider control
* slider.cpp: Slider control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: slider.cpp,v 1.
5 2003/04/17 10:53:00
karibu Exp $
* $Id: slider.cpp,v 1.
6 2003/04/20 15:00:19
karibu Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -315,6 +315,28 @@ bool ControlSlider::MouseOver( int x, int y )
...
@@ -315,6 +315,28 @@ bool ControlSlider::MouseOver( int x, int y )
return
false
;
return
false
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
bool
ControlSlider
::
MouseScroll
(
int
x
,
int
y
,
int
direction
)
{
if
(
!
Enabled
||
!
MouseOver
(
x
,
y
)
)
return
false
;
int
val
=
Value
;
switch
(
direction
)
{
case
MOUSE_SCROLL_DOWN
:
if
(
val
>
0
)
val
--
;
break
;
case
MOUSE_SCROLL_UP
:
if
(
val
<
MaxValue
)
val
++
;
break
;
}
MoveCursor
(
val
);
return
true
;
}
//---------------------------------------------------------------------------
bool
ControlSlider
::
ToolTipTest
(
int
x
,
int
y
)
bool
ControlSlider
::
ToolTipTest
(
int
x
,
int
y
)
{
{
if
(
MouseOver
(
x
,
y
)
)
if
(
MouseOver
(
x
,
y
)
)
...
...
modules/gui/skins/controls/slider.h
View file @
e9c0cc59
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* slider.h: Slider control
* slider.h: Slider control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: slider.h,v 1.
2 2003/04/20 13:14:14 asmax
Exp $
* $Id: slider.h,v 1.
3 2003/04/20 15:00:19 karibu
Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -95,6 +95,7 @@ class ControlSlider : public GenericControl
...
@@ -95,6 +95,7 @@ class ControlSlider : public GenericControl
virtual
bool
MouseMove
(
int
x
,
int
y
,
int
button
);
virtual
bool
MouseMove
(
int
x
,
int
y
,
int
button
);
virtual
bool
MouseOver
(
int
x
,
int
y
);
virtual
bool
MouseOver
(
int
x
,
int
y
);
virtual
bool
ToolTipTest
(
int
x
,
int
y
);
virtual
bool
ToolTipTest
(
int
x
,
int
y
);
virtual
bool
MouseScroll
(
int
x
,
int
y
,
int
direction
);
// Slider calls
// Slider calls
void
SetCursorPosition
(
long
Pos
);
void
SetCursorPosition
(
long
Pos
);
...
...
modules/gui/skins/gtk2/gtk2_window.cpp
View file @
e9c0cc59
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class
* gtk2_window.cpp: GTK2 implementation of the Window class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.2
3 2003/04/20 13:14:14 asmax
Exp $
* $Id: gtk2_window.cpp,v 1.2
4 2003/04/20 15:00:19 karibu
Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -240,7 +240,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
...
@@ -240,7 +240,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
case
GDK_DROP_START
:
case
GDK_DROP_START
:
DropObject
->
HandleDropStart
(
(
(
GdkEventDND
*
)
p2
)
->
context
);
DropObject
->
HandleDropStart
(
(
(
GdkEventDND
*
)
p2
)
->
context
);
return
true
;
return
true
;
case
GDK_SCROLL
:
case
GDK_SCROLL
:
switch
(
(
(
GdkEventScroll
*
)
p2
)
->
direction
)
switch
(
(
(
GdkEventScroll
*
)
p2
)
->
direction
)
{
{
...
@@ -256,7 +256,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
...
@@ -256,7 +256,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
break
;
break
;
}
}
return
true
;
return
true
;
default:
default:
return
false
;
return
false
;
}
}
...
...
modules/gui/skins/src/window.cpp
View file @
e9c0cc59
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* window.cpp: Window class
* window.cpp: Window class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: window.cpp,v 1.1
7 2003/04/20 13:14:14 asmax
Exp $
* $Id: window.cpp,v 1.1
8 2003/04/20 15:00:19 karibu
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -405,7 +405,7 @@ void Window::MouseDblClick( int x, int y, int button )
...
@@ -405,7 +405,7 @@ void Window::MouseDblClick( int x, int y, int button )
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
Window
::
MouseScroll
(
int
x
,
int
y
,
int
direction
)
void
Window
::
MouseScroll
(
int
x
,
int
y
,
int
direction
)
{
{
// Checking event in controls
// Checking event in controls
for
(
int
i
=
ControlList
.
size
()
-
1
;
i
>=
0
;
i
--
)
for
(
int
i
=
ControlList
.
size
()
-
1
;
i
>=
0
;
i
--
)
{
{
...
...
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