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
45cd73c7
Commit
45cd73c7
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add code to support new featureset to styles mapping.
parent
9eb27bb3
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/zmapView/zmapView.c
+26
-6
26 additions, 6 deletions
src/zmapView/zmapView.c
src/zmapView/zmapView_P.h
+6
-2
6 additions, 2 deletions
src/zmapView/zmapView_P.h
with
32 additions
and
8 deletions
src/zmapView/zmapView.c
+
26
−
6
View file @
45cd73c7
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapView.h
* HISTORY:
* Last edited: Apr
2 08:50
2009 (edgrif)
* Last edited: Apr
16 10:16
2009 (edgrif)
* Created: Thu May 13 15:28:26 2004 (edgrif)
* CVS info: $Id: zmapView.c,v 1.15
5
2009-04-
0
6
13:27:07
edgrif Exp $
* CVS info: $Id: zmapView.c,v 1.15
6
2009-04-
1
6
09:17:21
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -66,6 +66,9 @@ typedef struct
GList
*
required_styles
;
gboolean
server_styles_have_mode
;
GHashTable
*
featureset_2_stylelist
;
/* Mapping of each feature_set to all
the styles it requires. */
GData
*
curr_styles
;
/* Styles for this context. */
ZMapFeatureContext
curr_context
;
...
...
@@ -183,7 +186,6 @@ static gboolean makeStylesDrawable(GData *styles, char **missing_styles_out) ;
static
void
drawableCB
(
GQuark
key_id
,
gpointer
data
,
gpointer
user_data
)
;
/* These callback routines are global because they are set just once for the lifetime of the
* process. */
...
...
@@ -1246,6 +1248,8 @@ void zmapViewLoadFeatures(ZMapView view, ZMapFeatureBlock block_orig, GList *req
connect_data
->
curr_context
=
context
;
connect_data
->
dynamic_loading
=
TRUE
;
connect_data
->
featureset_2_stylelist
=
zMap_g_hashlist_create
()
;
view_con
->
request_data
=
connect_data
;
zmapViewStepListAddServerReq
(
view
->
step_list
,
view_con
,
ZMAP_SERVERREQ_GETSERVERINFO
,
req_any
)
;
...
...
@@ -1962,8 +1966,16 @@ static gboolean dispatchContextRequests(ZMapViewConnection connection, ZMapServe
case
ZMAP_SERVERREQ_CREATE
:
case
ZMAP_SERVERREQ_OPEN
:
case
ZMAP_SERVERREQ_GETSERVERINFO
:
{
break
;
}
case
ZMAP_SERVERREQ_FEATURESETS
:
{
ZMapServerReqFeatureSets
feature_sets
=
(
ZMapServerReqFeatureSets
)
req_any
;
feature_sets
->
featureset_2_stylelist_out
=
connect_data
->
featureset_2_stylelist
;
break
;
}
...
...
@@ -2063,6 +2075,8 @@ static gboolean processDataRequests(ZMapViewConnection view_con, ZMapServerReqAn
connect_data
->
feature_sets
=
feature_sets
->
feature_sets_inout
;
connect_data
->
required_styles
=
feature_sets
->
required_styles_out
;
zmap_view
->
featureset_2_stylelist
=
feature_sets
->
featureset_2_stylelist_out
;
break
;
}
case
ZMAP_SERVERREQ_STYLES
:
...
...
@@ -2078,7 +2092,7 @@ static gboolean processDataRequests(ZMapViewConnection view_con, ZMapServerReqAn
{
gboolean
is_complete_sequence
=
FALSE
;
if
(
is_complete_sequence
)
if
(
is_complete_sequence
)
g_datalist_foreach
(
&
(
zmap_view
->
orig_styles
),
unsetDeferredLoadStylesCB
,
NULL
)
;
g_datalist_foreach
(
&
(
get_styles
->
styles_out
),
unsetDeferredLoadStylesCB
,
NULL
)
;
...
...
@@ -2362,6 +2376,8 @@ static ZMapViewConnection createConnection(ZMapView zmap_view,
connect_data
=
g_new0
(
ConnectionDataStruct
,
1
)
;
connect_data
->
curr_context
=
context
;
connect_data
->
featureset_2_stylelist
=
zMap_g_hashlist_create
()
;
view_con
->
request_data
=
connect_data
;
...
...
@@ -2470,8 +2486,10 @@ static void displayDataWindows(ZMapView zmap_view,
view_window
=
list_item
->
data
;
if
(
!
undisplay
)
zMapWindowDisplayData
(
view_window
->
window
,
NULL
,
all_features
,
new_features
,
view_window
->
parent_view
->
orig_styles
,
new_styles
)
;
zMapWindowDisplayData
(
view_window
->
window
,
NULL
,
all_features
,
new_features
,
view_window
->
parent_view
->
orig_styles
,
new_styles
,
zmap_view
->
featureset_2_stylelist
)
;
else
zMapWindowUnDisplayData
(
view_window
->
window
,
all_features
,
new_features
);
...
...
@@ -3329,3 +3347,5 @@ static void unsetDeferredLoadStylesCB(GQuark key_id, gpointer data, gpointer use
return
;
}
This diff is collapsed.
Click to expand it.
src/zmapView/zmapView_P.h
+
6
−
2
View file @
45cd73c7
...
...
@@ -24,9 +24,9 @@
*
* Description:
* HISTORY:
* Last edited:
Mar 20
10:5
9
2009 (edgrif)
* Last edited:
Apr 14
10:5
3
2009 (edgrif)
* Created: Thu May 13 15:06:21 2004 (edgrif)
* CVS info: $Id: zmapView_P.h,v 1.4
6
2009-0
3-20 12:41:52
edgrif Exp $
* CVS info: $Id: zmapView_P.h,v 1.4
7
2009-0
4-16 09:17:21
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_VIEW_P_H
...
...
@@ -247,6 +247,10 @@ typedef struct _ZMapViewStruct
* passed into window for all update operations. */
GData
*
orig_styles
;
GHashTable
*
featureset_2_stylelist
;
/* Mapping of each feature_set to all
the styles it requires. */
/* We need to know if the user has done a revcomp for a few reasons to do with coord
* transforms and the way annotation is done....*/
gboolean
revcomped_features
;
...
...
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