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
c5e11d0e
Commit
c5e11d0e
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
move some tests and critical warnings.
parent
bcee465e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowDrawFeatures.c
+34
-20
34 additions, 20 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
with
34 additions
and
20 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
+
34
−
20
View file @
c5e11d0e
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
*
*
* Exported functions:
* Exported functions:
* HISTORY:
* HISTORY:
* Last edited: Apr 2
0
1
1:54
2009 (
rds
)
* Last edited: Apr 2
2
1
7:28
2009 (
edgrif
)
* Created: Thu Jul 29 10:45:00 2004 (rnc)
* Created: Thu Jul 29 10:45:00 2004 (rnc)
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.23
7
2009-04-2
0
1
1:06:40 rds
Exp $
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.23
8
2009-04-2
2
1
6:28:41 edgrif
Exp $
*-------------------------------------------------------------------
*-------------------------------------------------------------------
*/
*/
...
@@ -1098,6 +1098,16 @@ static FooCanvasGroup *find_or_create_column(ZMapCanvasData canvas_data,
...
@@ -1098,6 +1098,16 @@ static FooCanvasGroup *find_or_create_column(ZMapCanvasData canvas_data,
ZMapWindow
window
;
ZMapWindow
window
;
double
top
,
bottom
;
double
top
,
bottom
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
printf
(
"doing: %s
\n
"
,
g_quark_to_string
(
feature_set_id
))
;
if
(
g_ascii_strcasecmp
(
"assembly_path"
,
g_quark_to_string
(
feature_set_id
))
==
0
||
g_ascii_strcasecmp
(
"eds_column"
,
g_quark_to_string
(
feature_set_id
))
==
0
)
printf
(
"found it
\n
"
)
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
/* distill zmapWindowCreateSetColumns */
/* distill zmapWindowCreateSetColumns */
if
(
strand_container
!=
NULL
)
if
(
strand_container
!=
NULL
)
...
@@ -1149,13 +1159,16 @@ static FooCanvasGroup *find_or_create_column(ZMapCanvasData canvas_data,
...
@@ -1149,13 +1159,16 @@ static FooCanvasGroup *find_or_create_column(ZMapCanvasData canvas_data,
zmapWindowSeq2CanExtZero
(
&
top
,
&
bottom
)
;
zmapWindowSeq2CanExtZero
(
&
top
,
&
bottom
)
;
/* need to create the column */
/* need to create the column */
new_column
=
createColumnFull
(
strand_container
,
if
(
!
(
new_column
=
createColumnFull
(
strand_container
,
window
,
alignment
,
block
,
window
,
alignment
,
block
,
NULL
,
feature_set_id
,
style
,
NULL
,
feature_set_id
,
style
,
column_strand
,
column_frame
,
FALSE
,
column_strand
,
column_frame
,
FALSE
,
0
.
0
,
top
,
bottom
);
0
.
0
,
top
,
bottom
)))
{
if
(
new_column
)
zMapLogCritical
(
"Column '%s', frame '%d', strand '%d', not created."
,
g_quark_to_string
(
feature_set_id
),
column_frame
,
column_strand
);
}
else
{
{
set_data
=
g_object_get_data
(
G_OBJECT
(
new_column
),
ITEM_FEATURE_SET_DATA
);
set_data
=
g_object_get_data
(
G_OBJECT
(
new_column
),
ITEM_FEATURE_SET_DATA
);
...
@@ -1168,16 +1181,9 @@ static FooCanvasGroup *find_or_create_column(ZMapCanvasData canvas_data,
...
@@ -1168,16 +1181,9 @@ static FooCanvasGroup *find_or_create_column(ZMapCanvasData canvas_data,
valid_frame
=
TRUE
;
valid_frame
=
TRUE
;
else
if
(
column_strand
==
ZMAPSTRAND_FORWARD
||
window
->
show_3_frame_reverse
)
else
if
(
column_strand
==
ZMAPSTRAND_FORWARD
||
window
->
show_3_frame_reverse
)
valid_frame
=
zmapWindowItemFeatureSetIsFrameSpecific
(
set_data
,
&
frame_mode
);
valid_frame
=
zmapWindowItemFeatureSetIsFrameSpecific
(
set_data
,
&
frame_mode
);
}
else
{
zMapLogWarning
(
"Column '%s', frame '%d', strand '%d', not created."
,
g_quark_to_string
(
feature_set_id
),
column_frame
,
column_strand
);
}
}
if
(
valid_frame
&&
valid_strand
)
if
(
valid_frame
&&
valid_strand
)
existing_column
=
new_column
;
existing_column
=
new_column
;
}
}
}
}
...
@@ -1525,6 +1531,8 @@ static ZMapFeatureContextExecuteStatus windowDrawContextCB(GQuark key_id,
...
@@ -1525,6 +1531,8 @@ static ZMapFeatureContextExecuteStatus windowDrawContextCB(GQuark key_id,
}
}
canvas_data
->
curr_forward_group
=
zmapWindowContainerGetFeatures
(
forward_group
)
;
canvas_data
->
curr_forward_group
=
zmapWindowContainerGetFeatures
(
forward_group
)
;
/* We create the columns here now. */
/* We create the columns here now. */
/* Why? So that we always have the column, even though it's empty... */
/* Why? So that we always have the column, even though it's empty... */
g_list_foreach
(
window
->
feature_set_names
,
g_list_foreach
(
window
->
feature_set_names
,
...
@@ -1683,6 +1691,8 @@ static FooCanvasGroup *createColumnFull(FooCanvasGroup *parent_group,
...
@@ -1683,6 +1691,8 @@ static FooCanvasGroup *createColumnFull(FooCanvasGroup *parent_group,
GdkColor
*
colour
;
GdkColor
*
colour
;
gboolean
status
;
gboolean
status
;
/* Roy, these should surely be Asserts ?? */
/* We _must_ have an align and a block... */
/* We _must_ have an align and a block... */
g_return_val_if_fail
(
align
!=
NULL
,
group
);
g_return_val_if_fail
(
align
!=
NULL
,
group
);
g_return_val_if_fail
(
block
!=
NULL
,
group
);
g_return_val_if_fail
(
block
!=
NULL
,
group
);
...
@@ -1690,10 +1700,11 @@ static FooCanvasGroup *createColumnFull(FooCanvasGroup *parent_group,
...
@@ -1690,10 +1700,11 @@ static FooCanvasGroup *createColumnFull(FooCanvasGroup *parent_group,
g_return_val_if_fail
((
feature_set
!=
NULL
)
||
g_return_val_if_fail
((
feature_set
!=
NULL
)
||
(
feature_set_unique_id
!=
0
),
group
);
(
feature_set_unique_id
!=
0
),
group
);
/* First thing we now do is get the unqiue id from the feature set
/* First thing we now do is get the unqiue id from the feature set
* if the feature set was passed in. Below we should then be using
* if the feature set was passed in. Below we should then be using
* feature_set_unique_id instead of feature_set->unique_id */
* feature_set_unique_id instead of feature_set->unique_id */
if
(
feature_set
)
if
(
feature_set
)
feature_set_unique_id
=
feature_set
->
unique_id
;
feature_set_unique_id
=
feature_set
->
unique_id
;
/* Add a background colouring for the column. */
/* Add a background colouring for the column. */
...
@@ -1738,8 +1749,11 @@ static FooCanvasGroup *createColumnFull(FooCanvasGroup *parent_group,
...
@@ -1738,8 +1749,11 @@ static FooCanvasGroup *createColumnFull(FooCanvasGroup *parent_group,
}
}
}
}
if
((
style_list
=
zmapWindowFeatureSetStyles
(
window
,
window
->
display_styles
,
if
(
!
(
style_list
=
zmapWindowFeatureSetStyles
(
window
,
window
->
display_styles
,
feature_set_unique_id
)))
feature_set_unique_id
)))
{
zMapLogCritical
(
"Styles list for Column '%s' not found."
,
g_quark_to_string
(
feature_set_unique_id
))
;
}
else
{
{
group
=
zmapWindowContainerCreate
(
parent_group
,
ZMAPCONTAINER_LEVEL_FEATURESET
,
group
=
zmapWindowContainerCreate
(
parent_group
,
ZMAPCONTAINER_LEVEL_FEATURESET
,
window
->
config
.
feature_spacing
,
window
->
config
.
feature_spacing
,
...
...
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