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
185df25f
Commit
185df25f
authored
19 years ago
by
rnc
Browse files
Options
Downloads
Patches
Plain Diff
added zmapWindowEditor to drop-down menu
parent
6bd75044
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowDrawFeatures.c
+27
-23
27 additions, 23 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
with
27 additions
and
23 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
+
27
−
23
View file @
185df25f
...
...
@@ -26,9 +26,9 @@
*
* Exported functions:
* HISTORY:
* Last edited: Jun 6 1
1:32
2005 (rnc)
* Last edited: Jun 6 1
4:11
2005 (rnc)
* Created: Thu Jul 29 10:45:00 2004 (rnc)
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.6
6
2005-06-0
6
1
1:03:20
rnc Exp $
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.6
7
2005-06-0
8
1
3:17:49
rnc Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -51,7 +51,8 @@ static void makeItemMenu(GdkEventButton *button_event, ZMapWindow window,
FooCanvasItem
*
item
)
;
static
void
itemMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
blixemAllTypesMenuCB
(
int
menu_item_id
,
gpointer
callbackk_data
);
static
void
blixemOneTypeMenuCB
(
int
menu_item_id
,
gpointer
callbackk_data
);
static
void
blixemOneTypeMenuCB
(
int
menu_item_id
,
gpointer
callbackk_data
);
static
void
editorMenuCB
(
int
menu_item_id
,
gpointer
callback_data
);
...
...
@@ -994,8 +995,9 @@ static void makeItemMenu(GdkEventButton *button_event, ZMapWindow window, FooCan
ZMapWindowMenuItemStruct
menu
[]
=
{
{
"Show Feature List"
,
1
,
itemMenuCB
},
{
NULL
,
2
,
blixemAllTypesMenuCB
},
{
NULL
,
3
,
blixemOneTypeMenuCB
},
{
"Edit Details"
,
2
,
editorMenuCB
},
{
NULL
,
3
,
blixemAllTypesMenuCB
},
{
NULL
,
4
,
blixemOneTypeMenuCB
},
{
NULL
,
0
,
NULL
}
}
;
ZMapWindowMenuItem
menu_item
;
...
...
@@ -1009,13 +1011,13 @@ static void makeItemMenu(GdkEventButton *button_event, ZMapWindow window, FooCan
{
if
(
feature
->
feature
.
homol
.
type
==
ZMAPHOMOL_X_HOMOL
)
{
menu
[
1
].
name
=
"Show multiple protein alignment in Blixem"
;
menu
[
2
].
name
=
"Show multiple protein alignment for just this type of homology"
;
menu
[
2
].
name
=
"Show multiple protein alignment in Blixem"
;
menu
[
3
].
name
=
"Show multiple protein alignment for just this type of homology"
;
}
else
{
menu
[
1
].
name
=
"Show multiple dna alignment"
;
menu
[
2
].
name
=
"Show multiple dna alignment for just this type of homology"
;
menu
[
2
].
name
=
"Show multiple dna alignment"
;
menu
[
3
].
name
=
"Show multiple dna alignment for just this type of homology"
;
}
}
...
...
@@ -1037,6 +1039,20 @@ static void makeItemMenu(GdkEventButton *button_event, ZMapWindow window, FooCan
static
void
editorMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
{
ItemMenuCBData
menu_data
=
(
ItemMenuCBData
)
callback_data
;
zmapWindowEditor
(
menu_data
->
window
,
menu_data
->
item
)
;
g_free
(
menu_data
)
;
return
;
}
/* call blixem for all types of homology */
static
void
blixemAllTypesMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
{
ItemMenuCBData
menu_data
=
(
ItemMenuCBData
)
callback_data
;
...
...
@@ -1050,6 +1066,7 @@ static void blixemAllTypesMenuCB(int menu_item_id, gpointer callback_data)
/* call blixem for a single type of homology */
static
void
blixemOneTypeMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
{
ItemMenuCBData
menu_data
=
(
ItemMenuCBData
)
callback_data
;
...
...
@@ -1082,20 +1099,7 @@ static void itemMenuCB(int menu_item_id, gpointer callback_data)
}
case
2
:
{
/* call blixem */
if
(
feature
->
type
==
ZMAPFEATURE_HOMOL
)
zmapWindowCallBlixem
(
menu_data
->
window
,
menu_data
->
item
,
FALSE
)
;
else
printf
(
"Dummy!
\n
"
);
break
;
}
case
3
:
{
/* call blixem for just this method */
if
(
feature
->
type
==
ZMAPFEATURE_HOMOL
)
zmapWindowCallBlixem
(
menu_data
->
window
,
menu_data
->
item
,
TRUE
)
;
else
printf
(
"Dummy!
\n
"
);
printf
(
"Dummy!
\n
"
);
break
;
}
default:
...
...
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