Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
fdbc43eb
Commit
fdbc43eb
authored
18 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
long item bug fix
parent
510c98a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/zmapWindow/zmapWindowLongItems.c
+35
-3
35 additions, 3 deletions
src/zmapWindow/zmapWindowLongItems.c
src/zmapWindow/zmapWindow_P.h
+3
-2
3 additions, 2 deletions
src/zmapWindow/zmapWindow_P.h
with
38 additions
and
5 deletions
src/zmapWindow/zmapWindowLongItems.c
+
35
−
3
View file @
fdbc43eb
...
...
@@ -34,9 +34,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited:
Nov 28 15:48
2006 (rds)
* Last edited:
Dec 15 11:39
2006 (rds)
* Created: Thu Sep 7 14:56:34 2006 (edgrif)
* CVS info: $Id: zmapWindowLongItems.c,v 1.
7
2006-1
1-28 15:48:5
3 rds Exp $
* CVS info: $Id: zmapWindowLongItems.c,v 1.
8
2006-1
2-15 11:40:0
3 rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -144,6 +144,36 @@ void zmapWindowLongItemSetMaxZoom(ZMapWindowLongItems long_item, double max_zoom
return
;
}
void
zmapWindowLongItemResized
(
ZMapWindowLongItems
long_items
,
FooCanvasItem
*
item
)
{
double
length
,
start
,
end
;
LongFeatureItem
new_item
=
NULL
;
gboolean
created
=
FALSE
;
GList
*
list_long_item
=
NULL
;
foo_canvas_item_get_bounds
(
item
,
NULL
,
&
start
,
NULL
,
&
end
);
if
((
list_long_item
=
g_list_find_custom
(
long_items
->
items
,
item
,
findLongItemCB
)))
{
new_item
=
(
LongFeatureItem
)(
list_long_item
->
data
);
zMapAssert
(
new_item
->
item
==
item
);
if
(
FOO_IS_CANVAS_RE
(
item
))
{
new_item
->
pos
.
box
.
start
=
start
;
new_item
->
pos
.
box
.
end
=
end
;
}
new_item
->
extreme
.
y1
=
start
;
new_item
->
extreme
.
y2
=
end
;
}
else
{
zmapWindowLongItemCheck
(
long_items
,
item
,
start
,
end
);
}
return
;
}
/* n.b. we could get the start/end from the item but perhaps it doesn't matter...and it is
* more efficient + the user could always get the start/end themselves before calling us. */
...
...
@@ -535,7 +565,7 @@ static void printLongItem(gpointer data, gpointer user_data)
{
printf
(
"feature name: %s"
,
g_quark_to_string
(
any_feature
->
unique_id
))
;
}
else
else
if
(
zmapWindowContainerIsValid
(
long_item
->
item
))
{
parent
=
zmapWindowContainerGetParent
(
long_item
->
item
)
;
...
...
@@ -546,6 +576,8 @@ static void printLongItem(gpointer data, gpointer user_data)
else
printf
(
"ugh, no feature data...BAD...."
)
;
}
else
printf
(
"Double ugh, no feature data, no container data ... BAD ...."
);
if
(
any_feature
&&
(
strstr
(
g_quark_to_string
(
any_feature
->
unique_id
),
"wublast"
)))
{
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/zmapWindow_P.h
+
3
−
2
View file @
fdbc43eb
...
...
@@ -26,9 +26,9 @@
* Description: Defines internal interfaces/data structures of zMapWindow.
*
* HISTORY:
* Last edited: Dec 1
4
11:3
2
2006 (rds)
* Last edited: Dec 1
5
11:3
0
2006 (rds)
* Created: Fri Aug 1 16:45:58 2003 (edgrif)
* CVS info: $Id: zmapWindow_P.h,v 1.16
0
2006-12-1
4
11:
55:4
6 rds Exp $
* CVS info: $Id: zmapWindow_P.h,v 1.16
1
2006-12-1
5
11:
39:2
6 rds Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_WINDOW_P_H
...
...
@@ -636,6 +636,7 @@ void zmapWindowSetPageIncr (ZMapWindow window);
ZMapWindowLongItems
zmapWindowLongItemCreate
(
double
max_zoom
)
;
void
zmapWindowLongItemSetMaxZoom
(
ZMapWindowLongItems
long_item
,
double
max_zoom
)
;
void
zmapWindowLongItemResized
(
ZMapWindowLongItems
long_items
,
FooCanvasItem
*
item
);
void
zmapWindowLongItemCheck
(
ZMapWindowLongItems
long_item
,
FooCanvasItem
*
item
,
double
start
,
double
end
)
;
void
zmapWindowLongItemCrop
(
ZMapWindowLongItems
long_items
,
double
x1
,
double
y1
,
double
x2
,
double
y2
)
;
gboolean
zmapWindowLongItemRemove
(
ZMapWindowLongItems
long_item
,
FooCanvasItem
*
item
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment