"Fossies" - the Fresh Open Source Software Archive

Member "sitecopy-0.16.6/gnome/tree.h" (24 Apr 2005, 2145 Bytes) of archive /linux/www/sitecopy-0.16.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "tree.h" see the Fossies "Dox" file reference documentation.

    1 /* 
    2  *      XSitecopy, for managing remote web sites with a GNOME interface.
    3  *      Copyright (C) 2000, Lee Mallabone <lee@fonicmonkey.net>
    4  *                                                                        
    5  *      This program is free software; you can redistribute it and/or modify
    6  *      it under the terms of the GNU General Public License as published by
    7  *      the Free Software Foundation; either version 2 of the License, or
    8  *      (at your option) any later version.
    9  *     
   10  *      This program is distributed in the hope that it will be useful,
   11  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  *      GNU General Public License for more details.
   14  *     
   15  *      You should have received a copy of the GNU General Public License
   16  *      along with this program; if not, write to the Free Software
   17  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   18  *  
   19  */
   20 
   21 #ifndef TREE_H
   22 #define TREE_H
   23 
   24 #include <gtk/gtk.h>
   25 #include <malloc.h>
   26 #include "sites.h"
   27 #include "basename.h"
   28 #include "misc.h"
   29 #include "file_widgets.h"
   30 #include "gcommon.h"
   31 #include "site_widgets.h"
   32 
   33 struct site_node_data {
   34     char *name;
   35     struct site_file *file;
   36 };
   37 
   38 void color_site_node(GtkCTreeNode * node, struct site *site);
   39 
   40 /** Tree generation functions */
   41 GtkCTreeNode *add_file(char *name, struct site_file *a_file,
   42                GtkCTreeNode * parent);
   43 gchar *getAppropriateTreeLabel(struct site *a_site);
   44 int add_a_site_to_the_tree(struct site *a_site, gint operation);
   45 void fill_tree_from_all_sites(GtkWidget * a_ctree);
   46 void core_tree_building_function(struct site_file *a_file,
   47                  GNode * tree);
   48 GNode *build_tree_from_site(struct site *a_site);
   49 void gnode_to_gui(GNode * root,
   50           GtkCTreeNode * a_node);
   51 void populate_site_node(GtkCTreeNode * site_node, struct site *current);
   52 
   53 /* Other tree stuff */
   54 void select_ctree_cb(GtkCTree * tree, GtkCTreeNode * node, gpointer data);
   55 void rebuild_node_files(GtkCTreeNode * site_node);
   56 
   57 /* Debugging */
   58 void dump_types(struct site *a_site);
   59 void dump_g_node(GNode * tree);
   60 
   61 #endif /* TREE_H */