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
57bde117
Commit
57bde117
authored
19 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
revamp column menus to use new column handling code.
parent
aaf0a5a5
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/zmapWindowMenus.c
+40
-10
40 additions, 10 deletions
src/zmapWindow/zmapWindowMenus.c
with
40 additions
and
10 deletions
src/zmapWindow/zmapWindowMenus.c
+
40
−
10
View file @
57bde117
...
...
@@ -27,9 +27,9 @@
* Exported functions: ZMap/zmapWindows.h
*
* HISTORY:
* Last edited:
Jan 12 15
:2
9
2006 (edgrif)
* Last edited:
Mar 3 08
:2
2
2006 (edgrif)
* Created: Thu Mar 10 07:56:27 2005 (edgrif)
* CVS info: $Id: zmapWindowMenus.c,v 1.
7
2006-0
2-21 10:48:02 rds
Exp $
* CVS info: $Id: zmapWindowMenus.c,v 1.
8
2006-0
3-03 08:23:44 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -41,7 +41,7 @@
#include
<zmapWindowContainer.h>
static
void
configureMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
bumpMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
dumpMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
static
void
blixemMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
;
...
...
@@ -68,6 +68,7 @@ static void dumpContext(ZMapWindow window) ;
*/
/* Probably it would be wise to pass in the callback function, the start index for the item
* identifier and perhaps the callback data...... */
ZMapGUIMenuItem
zmapWindowMakeMenuBump
(
int
*
start_index_inout
,
...
...
@@ -76,20 +77,47 @@ ZMapGUIMenuItem zmapWindowMakeMenuBump(int *start_index_inout,
{
static
ZMapGUIMenuItemStruct
menu
[]
=
{
{
"_Bump"
,
0
,
NULL
,
NULL
},
{
"Bump/Column UnBump"
,
ZMAPOVERLAP_COMPLETE
,
bumpMenuCB
,
NULL
},
{
"Bump/Column Bump Position"
,
ZMAPOVERLAP_POSITION
,
bumpMenuCB
,
NULL
},
{
"Bump/Column Bump Overlap"
,
ZMAPOVERLAP_OVERLAP
,
bumpMenuCB
,
NULL
},
{
"Bump/Column Bump Name"
,
ZMAPOVERLAP_NAME
,
bumpMenuCB
,
NULL
},
{
"Bump/Column Bump Simple"
,
ZMAPOVERLAP_SIMPLE
,
bumpMenuCB
,
NULL
},
{
"_Column"
,
0
,
NULL
,
NULL
},
{
"Column/Hide"
,
ZMAPWWINDOWCOLUMN_HIDE
,
configureMenuCB
,
NULL
},
{
"_Column/_Bump"
,
0
,
NULL
,
NULL
},
{
"Column/Bump/UnBump"
,
ZMAPOVERLAP_COMPLETE
,
bumpMenuCB
,
NULL
},
{
"Column/Bump/Position"
,
ZMAPOVERLAP_POSITION
,
bumpMenuCB
,
NULL
},
{
"Column/Bump/Overlap"
,
ZMAPOVERLAP_OVERLAP
,
bumpMenuCB
,
NULL
},
{
"Column/Bump/Name"
,
ZMAPOVERLAP_NAME
,
bumpMenuCB
,
NULL
},
{
"Column/Bump/Simple"
,
ZMAPOVERLAP_SIMPLE
,
bumpMenuCB
,
NULL
},
{
"Column/Configure"
,
ZMAPWWINDOWCOLUMN_CONFIGURE
,
configureMenuCB
,
NULL
},
{
"Column/Configure All"
,
ZMAPWWINDOWCOLUMN_CONFIGURE_ALL
,
configureMenuCB
,
NULL
},
{
NULL
,
0
,
NULL
,
NULL
}
}
;
ItemMenuCBData
menu_data
=
(
ItemMenuCBData
)
callback_data
;
zMapGUIPopulateMenu
(
menu
,
start_index_inout
,
callback_func
,
callback_data
)
;
return
menu
;
}
/* Configure a column, may mean repositioning the other columns. */
static
void
configureMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
{
ItemMenuCBData
menu_data
=
(
ItemMenuCBData
)
callback_data
;
ZMapWindowColConfigureMode
configure_mode
=
(
ZMapWindowColConfigureMode
)
menu_item_id
;
FooCanvasGroup
*
column_group
;
/* did user click on an item or on the column background ? */
if
(
menu_data
->
item_cb
)
column_group
=
getItemsColGroup
(
menu_data
->
item
)
;
else
column_group
=
FOO_CANVAS_GROUP
(
menu_data
->
item
)
;
zmapWindowColumnConfigure
(
menu_data
->
window
,
column_group
,
configure_mode
)
;
g_free
(
menu_data
)
;
return
;
}
/* Bump a column and reposition the other columns. */
static
void
bumpMenuCB
(
int
menu_item_id
,
gpointer
callback_data
)
{
...
...
@@ -103,7 +131,8 @@ static void bumpMenuCB(int menu_item_id, gpointer callback_data)
column_group
=
FOO_CANVAS_GROUP
(
menu_data
->
item
)
;
zmapWindowColumnBump
(
column_group
,
bump_type
)
;
zmapWindowColumnReposition
(
column_group
)
;
zmapWindowNewReposition
(
menu_data
->
window
)
;
g_free
(
menu_data
)
;
...
...
@@ -111,6 +140,7 @@ static void bumpMenuCB(int menu_item_id, gpointer callback_data)
}
ZMapGUIMenuItem
zmapWindowMakeMenuDumpOps
(
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