/* File: belvuTree.h * Author: Gemma Barson, 2011-05-06 * Copyright (c) 2011 - 2012 Genome Research Ltd * --------------------------------------------------------------------------- * SeqTools is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * or see the on-line version at http://www.gnu.org/copyleft/gpl.txt * --------------------------------------------------------------------------- * This file is part of the SeqTools sequence analysis package, * written by * Gemma Barson (Sanger Institute, UK) * * based on original code by * Erik Sonnhammer (SBC, Sweden) * * and utilizing code taken from the AceDB and ZMap packages, written by * Richard Durbin (Sanger Institute, UK) * Jean Thierry-Mieg (CRBM du CNRS, France) * Ed Griffiths (Sanger Institute, UK) * Roy Storey (Sanger Institute, UK) * Malcolm Hinsley (Sanger Institute, UK) * * Description: Takes care of drawing the tree windows for belvu *---------------------------------------------------------------------------- */ #ifndef _belvutree_h_included_ #define _belvutree_h_included_ #include #include #define BELVU_TREE_WINDOW_NAME "BelvuTreeWindow" #define DEFAULT_TREE_SCALE_CORR 0.3 /* default scale for methods using distance correction */ #define DEFAULT_TREE_SCALE_NON_CORR 1.0 /* default scale for methods not using distance correction */ GtkWidget* createAndShowBelvuTree(BelvuContext *bc, const gboolean isMainTree); GtkWidget* createBelvuTreeWindow(BelvuContext *bc, Tree *tree, const gboolean isMainTree); void destroyTreeContents(Tree *tree); void destroyTree(Tree **tree); void belvuTreeRemakeTree(GtkWidget *belvuTree); void onBelvuTreeFontSizeChanged(GtkWidget *belvuTree); GtkActionGroup* belvuTreeGetActionGroup(GtkWidget *belvuTree); void treeBootstrap(BelvuContext *bc); void belvuTreeRedrawAll(gpointer belvuTree, gpointer data); BelvuContext* belvuTreeGetContext(GtkWidget *belvuTree); void showTreeSettingsDialog(GtkWidget *window, BelvuContext *bc); GtkWidget* createTreeSettingsDialogContent(BelvuContext *bc, GtkWidget *dialog, const gboolean isMainTree, double *treeScale, double *lineWidth, gboolean *showBranchLen, gboolean *showOrganism, BelvuPickMode *pickMode, BelvuBuildMethod *buildMethod, BelvuDistCorr *distCorr); void treePrintOrthologs(BelvuContext *bc, GtkWidget *treeWindow); #endif /* _belvutree_h_included_ */