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
8b456fb7
Commit
8b456fb7
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
display both feature set and source info.
parent
8f0c7094
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/zmapControl/zmapControlWindowInfoPanel.c
+46
-43
46 additions, 43 deletions
src/zmapControl/zmapControlWindowInfoPanel.c
src/zmapControl/zmapControl_P.h
+3
-3
3 additions, 3 deletions
src/zmapControl/zmapControl_P.h
with
49 additions
and
46 deletions
src/zmapControl/zmapControlWindowInfoPanel.c
+
46
−
43
View file @
8b456fb7
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See zmapControl_P.h
* HISTORY:
* Last edited:
Apr
3
1
4:52
2009 (edgrif)
* Last edited:
May
8
1
5:38
2009 (edgrif)
* Created: Tue Jul 18 10:02:04 2006 (edgrif)
* CVS info: $Id: zmapControlWindowInfoPanel.c,v 1.
19
2009-0
4
-0
6
1
3
:4
9:02
edgrif Exp $
* CVS info: $Id: zmapControlWindowInfoPanel.c,v 1.
20
2009-0
5
-0
8
1
4
:4
4:39
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -59,7 +59,7 @@ GtkWidget *zmapControlWindowMakeInfoPanel(ZMap zmap, ZMapInfoPanelLabels labels)
label
[
5
]
=
&
(
labels
->
feature_score
)
;
label
[
6
]
=
&
(
labels
->
feature_type
)
;
label
[
7
]
=
&
(
labels
->
feature_set
)
;
label
[
8
]
=
&
(
labels
->
feature_s
tyl
e
)
;
label
[
8
]
=
&
(
labels
->
feature_s
ourc
e
)
;
hbox
=
gtk_hbox_new
(
FALSE
,
0
)
;
gtk_container_border_width
(
GTK_CONTAINER
(
hbox
),
5
);
...
...
@@ -105,6 +105,7 @@ void zmapControlInfoPanelSetText(ZMap zmap, ZMapInfoPanelLabels labels, ZMapFeat
char
*
tooltip
[
TOTAL_LABELS
]
=
{
NULL
}
;
int
i
;
GString
*
desc_str
;
static
char
*
no_desc
=
"<no description>"
;
label
[
0
]
=
labels
->
feature_name
;
label
[
1
]
=
labels
->
feature_strand
;
...
...
@@ -114,7 +115,7 @@ void zmapControlInfoPanelSetText(ZMap zmap, ZMapInfoPanelLabels labels, ZMapFeat
label
[
5
]
=
labels
->
feature_score
;
label
[
6
]
=
labels
->
feature_type
;
label
[
7
]
=
labels
->
feature_set
;
label
[
8
]
=
labels
->
feature_s
tyl
e
;
label
[
8
]
=
labels
->
feature_s
ourc
e
;
/* If no feature description then blank the info panel. */
...
...
@@ -186,59 +187,61 @@ void zmapControlInfoPanelSetText(ZMap zmap, ZMapInfoPanelLabels labels, ZMapFeat
text
[
5
]
=
feature_desc
->
feature_score
;
text
[
6
]
=
feature_desc
->
feature_type
;
text
[
7
]
=
feature_desc
->
feature_set
;
text
[
8
]
=
feature_desc
->
feature_s
tyl
e
;
text
[
8
]
=
feature_desc
->
feature_s
ourc
e
;
if
(
feature_desc
->
feature_set_description
||
feature_desc
->
feature_description
||
feature_desc
->
feature_locus
)
{
desc_str
=
g_string_new
(
""
)
;
g_string_append_printf
(
desc_str
,
"Feature Name -
\"
%s
\"
"
,
feature_desc
->
feature_name
)
;
desc_str
=
g_string_new
(
""
)
;
if
(
feature_desc
->
feature_known_name
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
g_string_append_printf
(
desc_str
,
"Feature Name -
\"
%s
\"
"
,
feature_desc
->
feature_name
)
;
g_string_append_printf
(
desc_str
,
"F
eature
K
nown
N
ame
-
\"
%s
\"
"
,
feature_desc
->
feature_known_name
)
;
}
if
(
feature_desc
->
f
eature
_k
nown
_n
ame
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
g_string_append_printf
(
desc_str
,
"Feature Known Name -
\"
%s
\"
"
,
feature_desc
->
feature_known_name
)
;
}
if
(
feature_desc
->
feature_query_length
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
if
(
feature_desc
->
feature_query_length
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
g_string_append_printf
(
desc_str
,
"Feature Length -
\"
%s
\"
"
,
feature_desc
->
feature_query_length
)
;
}
g_string_append_printf
(
desc_str
,
"Feature Length -
\"
%s
\"
"
,
feature_desc
->
feature_query_length
)
;
}
g_string_append
(
desc_str
,
"
\n\n
"
)
;
if
(
feature_desc
->
feature_set_description
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
g_string_append_printf
(
desc_str
,
"Feature Set -
\"
%s, %s
\"
"
,
feature_desc
->
feature_set
,
(
feature_desc
->
feature_set_description
?
feature_desc
->
feature_set_description
:
no_desc
))
;
g_string_append_printf
(
desc_str
,
"Description -
\"
%s
\"
"
,
feature_desc
->
feature_set_description
)
;
}
g_string_append
(
desc_str
,
"
\n\n
"
)
;
if
(
feature_desc
->
feature_description
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
g_string_append_printf
(
desc_str
,
"Feature Source -
\"
%s, %s
\"
"
,
feature_desc
->
feature_source
,
(
feature_desc
->
feature_source_description
?
feature_desc
->
feature_source_description
:
no_desc
))
;
g_string_append_printf
(
desc_str
,
"Notes -
\"
%s
\"
"
,
feature_desc
->
feature_description
)
;
}
if
(
feature_desc
->
feature_description
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
if
(
feature_desc
->
feature_locus
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
g_string_append_printf
(
desc_str
,
"Notes -
\"
%s
\"
"
,
feature_desc
->
feature_description
)
;
}
g_string_append_printf
(
desc_str
,
"Locus -
\"
%s
\"
"
,
feature_desc
->
feature_locus
)
;
}
if
(
feature_desc
->
feature_locus
)
{
g_string_append
(
desc_str
,
"
\n\n
"
)
;
tooltip
[
0
]
=
g_string_free
(
desc_str
,
FALSE
)
;
g_string_append_printf
(
desc_str
,
"Locus -
\"
%s
\"
"
,
feature_desc
->
feature_locus
)
;
}
tooltip
[
0
]
=
g_string_free
(
desc_str
,
FALSE
)
;
if
(
feature_desc
->
type
==
ZMAPSTYLE_MODE_ALIGNMENT
)
tooltip
[
1
]
=
"Strand match is aligned to / Strand match is aligned from"
;
...
...
@@ -260,8 +263,8 @@ void zmapControlInfoPanelSetText(ZMap zmap, ZMapInfoPanelLabels labels, ZMapFeat
tooltip
[
4
]
=
"Frame"
;
tooltip
[
5
]
=
"Score"
;
tooltip
[
6
]
=
"Feature Type"
;
tooltip
[
7
]
=
"Feature
Column
"
;
tooltip
[
8
]
=
"Feature Se
t
"
;
tooltip
[
7
]
=
"Feature
Set
"
;
tooltip
[
8
]
=
"Feature S
ourc
e"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/zmapControl/zmapControl_P.h
+
3
−
3
View file @
8b456fb7
...
...
@@ -25,9 +25,9 @@
* Description: Private header for interface that creates/manages/destroys
* instances of ZMaps.
* HISTORY:
* Last edited:
Dec 17 09:21
200
8
(edgrif)
* Last edited:
May 8 14:48
200
9
(edgrif)
* Created: Thu Jul 24 14:39:06 2003 (edgrif)
* CVS info: $Id: zmapControl_P.h,v 1.7
1
200
8-12-18 13:30:43
edgrif Exp $
* CVS info: $Id: zmapControl_P.h,v 1.7
2
200
9-05-08 14:44:39
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_CONTROL_P_H
...
...
@@ -154,7 +154,7 @@ typedef struct
GtkWidget
*
feature_name
,
*
feature_strand
,
*
feature_coords
,
*
sub_feature_coords
,
*
feature_frame
,
*
feature_score
,
*
feature_type
,
*
feature_set
,
*
feature_s
tyl
e
;
*
feature_set
,
*
feature_s
ourc
e
;
GtkWidget
*
hbox
;
...
...
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