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
b32a1543
Commit
b32a1543
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
completely redo pane struct, more many fields to main zmap struct.
parent
86b5bfd4
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/zmapControl/zmapControl_P.h
+59
-58
59 additions, 58 deletions
src/zmapControl/zmapControl_P.h
with
59 additions
and
58 deletions
src/zmapControl/zmapControl_P.h
+
59
−
58
View file @
b32a1543
...
...
@@ -25,9 +25,9 @@
* Description: Private header for interface that creates/manages/destroys
* instances of ZMaps.
* HISTORY:
* Last edited: Jul
2
18:57 2004 (edgrif)
* Last edited: Jul
13
18:57 2004 (edgrif)
* Created: Thu Jul 24 14:39:06 2003 (edgrif)
* CVS info: $Id: zmapControl_P.h,v 1.
4
2004-07-
02 18:23
:4
2
edgrif Exp $
* CVS info: $Id: zmapControl_P.h,v 1.
5
2004-07-
14 09:08
:4
3
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_CONTROL_P_H
...
...
@@ -59,83 +59,62 @@ typedef struct _ZMapStruct
{
gchar
*
zmap_id
;
/* unique for each zmap.... */
ZmapState
state
;
ZmapState
state
;
/* state of this zmap. */
gboolean
firstTime
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
void
*
app_data
;
ZMapCallbackFunc
destroy_zmap_cb
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
GdkAtom
zmap_atom
;
/* Used for communicating with zmap
windows. */
void
*
app_data
;
/* Data passed back to all callbacks
registered for this ZMap. */
/* Widget stuff for the Zmap. */
GtkWidget
*
toplevel
;
/* top level widget of zmap window. */
GtkWidget
*
toplevel
;
GtkWidget
*
navview_frame
;
/* Holds all the navigator/view stuff. */
/* MOVED HERE FROM zmapWindow/ */
ZMapPane
focuspane
;
GNode
*
panesTree
;
gboolean
firstTime
;
GtkWidget
*
hpane
;
/* allows the user to minimise the navigator pane */
GtkWidget
*
navigator
;
GtkWidget
*
frame
;
GtkWidget
*
vbox
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
GtkItemFactory
*
itemFactory
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
FooCanvas
*
navcanvas
;
GtkWidget
*
displayvbox
;
GtkWidget
*
hbox
;
GtkWidget
*
hpane
;
/* Holds the navigator and the view(s). */
/* The navigator. */
GtkWidget
*
navigator
;
FooCanvas
*
navcanvas
;
/* The panes and views. */
/* I'm not completely sure this is necessary....revisit this later.... */
GtkWidget
*
pane_vbox
;
/* Panes are windows where views get displayed. */
ZMapPane
focuspane
;
GNode
*
panesTree
;
GtkWidget
*
view_parent
;
/* List of views in this zmap. */
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
ZMapView
curr_view
;
GList
*
view_list
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
G
dkAtom
zmap_atom
;
G
List
*
view_list
;
/* caller registers a routine that gets called when this zmap is destroyed. */
ZMapCallbackFunc
app_zmap_destroyed_cb
;
void
*
app_data
;
}
ZMapStruct
;
ZMapWindow
zMapWindow
;
}
ZMapStruct
;
/* Data associated with one scrolling pane. */
typedef
struct
_ZMapPaneStruct
{
ZMap
zmap
;
/* Back ptr to containing zmap. */
ZMapViewWindow
curr_view_window
;
typedef
struct
_ZMapPaneStruct
{
/* Data associated with one scrolling pane. */
GtkWidget
*
pane
;
GtkWidget
*
frame
;
GtkWidget
*
view_parent_box
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
ZMapWindow
window
;
/* parent */
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
ZMap
zmap
;
/* Back ptr to containing zmap. */
}
ZMapPaneStruct
;
GtkWidget
*
graphWidget
;
GtkWidget
*
vbox
;
GtkWidget
*
pane
;
GtkWidget
*
frame
;
GtkWidget
*
scrolledWindow
;
FooCanvas
*
canvas
;
/* where we paint the display */
FooCanvasItem
*
background
;
FooCanvasItem
*
group
;
GtkWidget
*
combo
;
int
basesPerLine
;
InvarCoord
centre
;
int
graphHeight
;
int
dragBox
,
scrollBox
;
GPtrArray
cols
;
GArray
*
box2seg
,
*
box2col
;
int
DNAwidth
;
double
zoomFactor
;
int
step_increment
;
}
ZMapPaneStruct
;
/* Functions internal to zmapControl. */
...
...
@@ -143,6 +122,7 @@ gboolean zmapControlWindowCreate (ZMap zmap, char *zmap_id) ;
GtkWidget
*
zmapControlWindowMakeMenuBar
(
ZMap
zmap
)
;
GtkWidget
*
zmapControlWindowMakeButtons
(
ZMap
zmap
)
;
GtkWidget
*
zmapControlWindowMakeFrame
(
ZMap
zmap
)
;
GtkWidget
*
zmapControlCreateNavigator
(
FooCanvas
**
canvas_out
)
;
void
zmapControlWindowDestroy
(
ZMap
zmap
)
;
void
zmapControlTopLevelKillCB
(
ZMap
zmap
)
;
...
...
@@ -150,6 +130,12 @@ void zmapControlLoadCB (ZMap zmap) ;
void
zmapControlResetCB
(
ZMap
zmap
)
;
void
zmapControlNewCB
(
ZMap
zmap
,
char
*
testing_text
)
;
void
zmapRecordFocus
(
ZMapPane
pane
)
;
ZMapPane
zmapAddPane
(
ZMap
zmap
,
char
orientation
)
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
gboolean
zMapDisplay
(
ZMap
zmap
,
Activate_cb
act_cb
,
Calc_cb
calc_cb
,
...
...
@@ -157,15 +143,30 @@ gboolean zMapDisplay(ZMap zmap,
char
*
seqspec
,
char
*
fromspec
,
gboolean
isOldGraph
);
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
GtkWidget
*
splitPane
(
ZMap
zmap
)
;
GtkWidget
*
splitHPane
(
ZMap
zmap
)
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
/* NOT CALLED FROM ANYWHERE ????? */
void
closePane
(
GtkWidget
*
widget
,
gpointer
data
);
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
void
addPane
(
ZMap
zmap
,
char
orientation
);
void
drawNavigator
(
ZMap
zmap
)
;
void
drawWindow
(
ZMapPane
pane
);
void
zMapZoomToolbar
(
ZMapWindow
window
);
void
navScale
(
FooCanvas
*
canvas
,
float
offset
,
int
start
,
int
end
);
int
recordFocus
(
GtkWidget
*
widget
,
GdkEvent
*
event
,
gpointer
data
);
void
navUpdate
(
GtkAdjustment
*
adj
,
gpointer
p
);
void
navChange
(
GtkAdjustment
*
adj
,
gpointer
p
);
...
...
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