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
7d3375ab
Commit
7d3375ab
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
Add some comments, code here needs to use window calls to do its stuff not do moving itself.
parent
daebff3c
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/zmapWindowList.c
+21
-10
21 additions, 10 deletions
src/zmapWindow/zmapWindowList.c
with
21 additions
and
10 deletions
src/zmapWindow/zmapWindowList.c
+
21
−
10
View file @
7d3375ab
...
...
@@ -19,18 +19,17 @@
*-------------------------------------------------------------------
* This file is part of the ZMap genome database package
* and was written by
* Rob Clack (Sanger Institute, UK) rnc@sanger.ac.uk,
* Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk and
*
Simon Kelley
(Sanger Institute, UK)
srk
@sanger.ac.uk
*
Rob Clack
(Sanger Institute, UK)
rnc
@sanger.ac.uk
*
* Description: Displays a list of features from which the user may select
*
*
* Exported functions:
* HISTORY:
* Last edited:
Dec
6 1
3
:1
9
200
4
(
rnc
)
* Last edited:
Jan
6 1
5
:1
5
200
5
(
edgrif
)
* Created: Thu Sep 16 10:17 2004 (rnc)
* CVS info: $Id: zmapWindowList.c,v 1.2
2
200
4-12
-0
6
1
4:20:25 rnc
Exp $
* CVS info: $Id: zmapWindowList.c,v 1.2
3
200
5-01
-0
7
1
2:30:16 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -42,7 +41,7 @@
enum
{
NAME
,
START
,
END
,
ID
,
TYPE
,
FEATURE_TYPE
,
X_COORD
,
N_COLUMNS
};
/*
*
ListColStruct structure declaration
/* ListColStruct structure declaration
*
* Used to pass a couple of variables and a GtkTreeStore list
* of feature details through the g_datalist_foreach() call
...
...
@@ -212,6 +211,12 @@ void zMapWindowCreateListWindow(ZMapWindow zmapWindow, ZMapFeatureItem featureIt
/* THE TROUBLE WITH THIS ROUTINE IS THAT WHEN INDIVIDUAL LIST WINDOWS ARE CLOSED BY THE USER
* THEY ARE _NOT_ REMOVED FROM THE ARRAY OF SUCH WINDOWS.....SIGH.........SO THIS ROUTINE
* TRIES TO CLOSE THEM AGAIN........... */
/* Called by zmapControlSplit.c when a split window is closed */
void
zMapWindowDestroyLists
(
ZMapWindow
window
)
{
...
...
@@ -386,6 +391,11 @@ static int tree_selection_changed_cb (GtkTreeSelection *selection, gpointer data
}
/* NO, NO, NO, THIS NEEDS TO USE SOME CENTRALISED FUNCTION TO MOVE THE REGION...SIGH, THIS IS
* JUST REPEATING EXISTING CODE.......AAAAAAAAAAAGGGGGGGGGGGHHHHHHHHHHHHHHHH */
/** \Brief Recalculate the scroll region.
*
* If the selected feature is outside the current scroll region, recalculate
...
...
@@ -424,13 +434,14 @@ static void recalcScrollRegion(ZMapWindow window, double start, double end)
bot
=
(
int
)
y2
;
gtk_object_destroy
(
GTK_OBJECT
(
window
->
scaleBarGroup
));
window
->
scaleBarGroup
=
zmapDrawScale
(
window
->
canvas
,
window
->
scaleBarOffset
,
window
->
zoom_factor
,
top
,
bot
);
window
->
scaleBarOffset
,
window
->
zoom_factor
,
top
,
bot
,
&
(
window
->
major_scale_units
),
&
(
window
->
minor_scale_units
))
;
}
return
;
return
;
}
...
...
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