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
0fda4672
Commit
0fda4672
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
remove old dross and make new sequence button work.
parent
ef641887
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.c
+7
-100
7 additions, 100 deletions
src/zmapControl/zmapControl.c
with
7 additions
and
100 deletions
src/zmapControl/zmapControl.c
+
7
−
100
View file @
0fda4672
...
...
@@ -26,9 +26,9 @@
* the window code and the threaded server code.
* Exported functions: See ZMap.h
* HISTORY:
* Last edited: Jan 2
0
1
6:56
2005 (edgrif)
* Last edited: Jan 2
5
1
7:37
2005 (edgrif)
* Created: Thu Jul 24 16:06:44 2003 (edgrif)
* CVS info: $Id: zmapControl.c,v 1.4
4
2005-01-2
4
1
1:31:39
edgrif Exp $
* CVS info: $Id: zmapControl.c,v 1.4
5
2005-01-2
5
1
7:47:41
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -339,29 +339,6 @@ void zmapControlResetCB(ZMap zmap)
}
/* THIS FUNCTION NO LONGER WORKS AND NEEDS TO BE REDONE..... */
/* Put new data into an existing View. */
void
zmapControlNewCB
(
ZMap
zmap
,
char
*
testing_text
)
{
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
if
(
zmap
->
state
==
ZMAP_INIT
||
zmap
->
state
==
ZMAP_VIEWS
)
{
ZMapView
view
;
if
((
view
=
addView
(
zmap
,
testing_text
)))
status
=
zMapViewConnect
(
view
)
;
}
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
return
;
}
/* Put a new view into a zmap. */
void
zmapControlNewViewCB
(
ZMap
zmap
,
char
*
new_sequence
)
{
...
...
@@ -372,54 +349,11 @@ void zmapControlNewViewCB(ZMap zmap, char *new_sequence)
/* these should be passed in ...... */
int
start
=
1
,
end
=
0
;
/* this is a bit clutzy, it is irrelevant for the first window.... */
GtkOrientation
orientation
=
GTK_ORIENTATION_VERTICAL
;
/* THIS ROUTINE AND THE WHOLE PANE/VIEW INTERFACE NEEDS SOME MAJOR TIDYING UP..... */
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
/* this all needs to do view stuff here and return a parent widget............ */
parent_widget
=
splitPane
(
zmap
)
;
/* At this point split func does the add call to add a window to an existing view, we want
* to add a new view and add a window to that..... */
view_window
=
zMapViewAddWindow
(
zMapViewGetView
(
pane
->
curr_view_window
),
parent_widget
)
;
pane
->
curr_view_window
=
view_window
;
/* new focus window ?? */
/* this code cut/pasted from addView()...needs clearing up.... */
if
((
view
=
zMapViewCreate
(
new_sequence
,
start
,
end
,
(
void
*
)
zmap
))
&&
(
view_window
=
zMapViewAddWindow
(
view
,
pane
->
frame
,
NULL
))
&&
zMapViewConnect
(
view
))
{
/* add to list of views.... */
zmap
->
view_list
=
g_list_append
(
zmap
->
view_list
,
view
)
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
zmap
->
focuspane
->
curr_view_window
=
view_window
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
zmap
->
firstTime
=
FALSE
;
zmap
->
state
=
ZMAP_VIEWS
;
/* Look in focus pane and set title bar/navigator etc......really this should all be
* in one focus routine......which we need to remove from zmapAddPane..... */
/* We've added a view so better update everything... */
gtk_widget_show_all
(
zmap
->
toplevel
)
;
}
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
if
((
view
=
addView
(
zmap
,
new_sequence
,
start
,
end
)))
zMapViewConnect
(
view
)
;
/* return code ???? */
return
;
}
...
...
@@ -508,8 +442,6 @@ static void killZMap(ZMap zmap)
static
ZMapView
addView
(
ZMap
zmap
,
char
*
sequence
,
int
start
,
int
end
)
{
ZMapView
view
=
NULL
;
ZMapViewWindow
view_window
=
NULL
;
GtkWidget
*
curr_view
,
*
new_parent
,
*
view_parent
;
/* this is a bit clutzy, it is irrelevant for the first window.... */
GtkOrientation
orientation
=
GTK_ORIENTATION_VERTICAL
;
...
...
@@ -520,7 +452,7 @@ static ZMapView addView(ZMap zmap, char *sequence, int start, int end)
/* add to list of views.... */
zmap
->
view_list
=
g_list_append
(
zmap
->
view_list
,
view
)
;
zmapControlSplitInsertWindow
(
zmap
,
orientation
)
;
zmapControlSplitInsertWindow
(
zmap
,
view
,
orientation
)
;
zmap
->
state
=
ZMAP_VIEWS
;
}
...
...
@@ -606,31 +538,6 @@ static void leaveCB(ZMapViewWindow view_window, void *app_data, void *view_data)
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
static
gboolean
lookForViewWindow
(
GNode
*
node
,
gpointer
data
)
{
gboolean
found_view_window
=
FALSE
;
ZMapPaneViewSearch
view_search
=
(
ZMapPaneViewSearch
)
data
;
ZMapPane
pane
=
NULL
;
if
(
node
->
data
)
{
pane
=
node
->
data
;
if
(
pane
->
curr_view_window
==
view_search
->
view_window
)
{
view_search
->
parent_pane
=
pane
;
found_view_window
=
TRUE
;
}
}
return
found_view_window
;
}
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
/* Gets called when a ZMapView dies, this is asynchronous because the view has to kill threads
* and wait for them to die and also because the ZMapView my die of its own accord.
* BUT NOTE that when this routine is called by the last ZMapView within the fmap to say that
...
...
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