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
dd8f7134
Commit
dd8f7134
authored
16 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add developer only menu.
parent
e9168e15
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/zmapWindow/zmapWindowMenus.c
+61
-2
61 additions, 2 deletions
src/zmapWindow/zmapWindowMenus.c
src/zmapWindow/zmapWindow_P.h
+5
-2
5 additions, 2 deletions
src/zmapWindow/zmapWindow_P.h
with
66 additions
and
4 deletions
src/zmapWindow/zmapWindowMenus.c
+
61
−
2
View file @
dd8f7134
...
...
@@ -27,9 +27,9 @@
* Exported functions: ZMap/zmapWindows.h
*
* HISTORY:
* Last edited: Dec
2 15
:0
8
2008 (
rds
)
* Last edited: Dec
15 13
:0
0
2008 (
edgrif
)
* Created: Thu Mar 10 07:56:27 2005 (edgrif)
* CVS info: $Id: zmapWindowMenus.c,v 1.5
0
2008-12-
02
1
5
:0
9:30 rds
Exp $
* CVS info: $Id: zmapWindowMenus.c,v 1.5
1
2008-12-
15
1
4
:0
8:18 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -61,6 +61,9 @@
#define CONTEXT_EXPORT_STR FEATURE_DUMP_STR CONTEXT_STR
#define DEVELOPER_STR "Developer"
/* Choose which way a transcripts dna is dumped... */
enum
...
...
@@ -102,6 +105,7 @@ static void dnaMenuCB(int menu_item_id, gpointer callback_data) ;
static
void
peptideMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
transcriptNavMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
dumpMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
developerMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
blixemMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
FooCanvasGroup
*
getItemsColGroup
(
FooCanvasItem
*
item
)
;
...
...
@@ -918,6 +922,61 @@ static void dumpMenuCB(int menu_item_id, gpointer callback_data)
ZMapGUIMenuItem
zmapWindowMakeMenuDeveloperOps
(
int
*
start_index_inout
,
ZMapGUIMenuItemCallbackFunc
callback_func
,
gpointer
callback_data
)
{
static
ZMapGUIMenuItemStruct
menu
[]
=
{
{
ZMAPGUI_MENU_BRANCH
,
"_"
DEVELOPER_STR
,
0
,
NULL
,
NULL
},
{
ZMAPGUI_MENU_NORMAL
,
DEVELOPER_STR
"/Show Style"
,
1
,
developerMenuCB
,
NULL
},
{
ZMAPGUI_MENU_NONE
,
NULL
,
0
,
NULL
,
NULL
}
}
;
zMapGUIPopulateMenu
(
menu
,
start_index_inout
,
callback_func
,
callback_data
)
;
return
menu
;
}
static
void
developerMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
{
ItemMenuCBData
menu_data
=
(
ItemMenuCBData
)
callback_data
;
ZMapFeatureAny
feature_any
;
feature_any
=
(
ZMapFeatureAny
)
g_object_get_data
(
G_OBJECT
(
menu_data
->
item
),
ITEM_FEATURE_DATA
)
;
switch
(
menu_item_id
)
{
case
1
:
{
if
(
feature_any
->
struct_type
==
ZMAPFEATURE_STRUCT_FEATURESET
)
{
ZMapFeatureSet
feature_set
=
(
ZMapFeatureSet
)
feature_any
;
zmapWindowShowStyle
(
feature_set
->
style
)
;
}
else
if
(
feature_any
->
struct_type
==
ZMAPFEATURE_STRUCT_FEATURE
)
{
ZMapFeature
feature
=
(
ZMapFeature
)
feature_any
;
zmapWindowShowStyle
(
feature
->
style
)
;
}
break
;
}
default:
zMapAssert
(
"Coding error, unrecognised menu item number."
)
;
/* exits... */
break
;
}
g_free
(
menu_data
)
;
return
;
}
/* JAMES HAS MADE THE POINT THAT ANNOTATORS ONLY EVER USE THE "JUST THIS TYPE" OPTION, SO
* I'VE COMMENTED OUT THE TWO MENU OPTIONS AND REPLACED THEM WITH ONE.... */
ZMapGUIMenuItem
zmapWindowMakeMenuDNAHomol
(
int
*
start_index_inout
,
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/zmapWindow_P.h
+
5
−
2
View file @
dd8f7134
...
...
@@ -26,9 +26,9 @@
* Description: Defines internal interfaces/data structures of zMapWindow.
*
* HISTORY:
* Last edited: Dec 1
0
1
7:51
2008 (edgrif)
* Last edited: Dec 1
5
1
2:43
2008 (edgrif)
* Created: Fri Aug 1 16:45:58 2003 (edgrif)
* CVS info: $Id: zmapWindow_P.h,v 1.22
5
2008-12-1
1 09:44:22
edgrif Exp $
* CVS info: $Id: zmapWindow_P.h,v 1.22
6
2008-12-1
5 14:08:18
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_WINDOW_P_H
...
...
@@ -1110,6 +1110,9 @@ ZMapGUIMenuItem zmapWindowMakeMenuPeptideFile(int *start_index_inout,
ZMapGUIMenuItem
zmapWindowMakeMenuDumpOps
(
int
*
start_index_inout
,
ZMapGUIMenuItemCallbackFunc
callback_func
,
gpointer
callback_data
)
;
ZMapGUIMenuItem
zmapWindowMakeMenuDeveloperOps
(
int
*
start_index_inout
,
ZMapGUIMenuItemCallbackFunc
callback_func
,
gpointer
callback_data
)
;
ZMapGUIMenuItem
zmapWindowMakeMenuDNAHomol
(
int
*
start_index_inout
,
ZMapGUIMenuItemCallbackFunc
callback_func
,
gpointer
callback_data
)
;
...
...
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