Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
50a39558
Commit
50a39558
authored
Sep 20, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Distributor, next pag, prev page and scroll events added
parent
82d88b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
14 deletions
+30
-14
wb/lib/wb/src/wb_wpkgnav.cpp
wb/lib/wb/src/wb_wpkgnav.cpp
+30
-14
No files found.
wb/lib/wb/src/wb_wpkgnav.cpp
View file @
50a39558
...
...
@@ -148,13 +148,9 @@ int WPkgNav::brow_cb( FlowCtx *ctx, flow_tEvent event)
sts
=
brow_GetPrevious
(
wpkgnav
->
brow
->
ctx
,
node_list
[
0
],
&
object
);
if
(
EVEN
(
sts
))
{
sts
=
brow_GetLast
(
wpkgnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
{
if
(
node_count
)
free
(
node_list
);
return
1
;
}
if
(
node_count
)
free
(
node_list
);
return
1
;
}
}
brow_SelectClear
(
wpkgnav
->
brow
->
ctx
);
...
...
@@ -184,13 +180,9 @@ int WPkgNav::brow_cb( FlowCtx *ctx, flow_tEvent event)
sts
=
brow_GetNext
(
wpkgnav
->
brow
->
ctx
,
node_list
[
0
],
&
object
);
if
(
EVEN
(
sts
))
{
sts
=
brow_GetFirst
(
wpkgnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
{
if
(
node_count
)
free
(
node_list
);
return
1
;
}
if
(
node_count
)
free
(
node_list
);
return
1
;
}
}
brow_SelectClear
(
wpkgnav
->
brow
->
ctx
);
...
...
@@ -337,6 +329,22 @@ int WPkgNav::brow_cb( FlowCtx *ctx, flow_tEvent event)
// Add select region
brow_SetSelectInverse
(
wpkgnav
->
brow
->
ctx
);
break
;
case
flow_eEvent_Key_PageDown
:
{
brow_Page
(
wpkgnav
->
brow
->
ctx
,
0.8
);
break
;
}
case
flow_eEvent_Key_PageUp
:
{
brow_Page
(
wpkgnav
->
brow
->
ctx
,
-
0.8
);
break
;
}
case
flow_eEvent_ScrollDown
:
{
brow_Page
(
wpkgnav
->
brow
->
ctx
,
0.1
);
break
;
}
case
flow_eEvent_ScrollUp
:
{
brow_Page
(
wpkgnav
->
brow
->
ctx
,
-
0.1
);
break
;
}
case
flow_eEvent_Map
:
{
wpkgnav
->
displayed
=
1
;
...
...
@@ -431,6 +439,14 @@ void WPkgNav::enable_events()
brow_cb
);
brow_EnableEvent
(
brow
->
ctx
,
flow_eEvent_Key_Left
,
flow_eEventType_CallBack
,
brow_cb
);
brow_EnableEvent
(
brow
->
ctx
,
flow_eEvent_Key_PageUp
,
flow_eEventType_CallBack
,
brow_cb
);
brow_EnableEvent
(
brow
->
ctx
,
flow_eEvent_Key_PageDown
,
flow_eEventType_CallBack
,
brow_cb
);
brow_EnableEvent
(
brow
->
ctx
,
flow_eEvent_ScrollUp
,
flow_eEventType_CallBack
,
brow_cb
);
brow_EnableEvent
(
brow
->
ctx
,
flow_eEvent_ScrollDown
,
flow_eEventType_CallBack
,
brow_cb
);
brow_EnableEvent
(
brow
->
ctx
,
flow_eEvent_Map
,
flow_eEventType_CallBack
,
brow_cb
);
}
...
...
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