2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* treeviws.h
|
|
|
|
*
|
2007-01-14 17:36:42 +00:00
|
|
|
* Copyright 2005-2007 Enrico Tröger <enrico.troeger@uvena.de>
|
|
|
|
* Copyright 2006-2007 Nick Treleaven <nick.treleaven@btinternet.com>
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* This program 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 2 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2005-12-11 02:16:02 +00:00
|
|
|
*
|
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GEANY_TREEVIEWS_H
|
|
|
|
#define GEANY_TREEVIEWS_H 1
|
|
|
|
|
|
|
|
|
2007-01-14 12:12:18 +00:00
|
|
|
struct SidebarTreeviews
|
|
|
|
{
|
2005-11-22 12:26:26 +00:00
|
|
|
GtkListStore *store_openfiles;
|
|
|
|
GtkWidget *tree_openfiles;
|
2006-01-14 22:41:35 +00:00
|
|
|
GtkWidget *popup_taglist;
|
2005-11-22 12:26:26 +00:00
|
|
|
GtkWidget *popup_openfiles;
|
2007-01-14 12:12:18 +00:00
|
|
|
} tv;
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
|
2007-02-05 16:17:44 +00:00
|
|
|
void treeviews_update_tag_list(gint idx, gboolean update);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-10-29 13:48:39 +00:00
|
|
|
void treeviews_prepare_openfiles();
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-12-05 10:37:36 +00:00
|
|
|
void treeviews_openfiles_add(gint idx);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-12-05 10:37:36 +00:00
|
|
|
void treeviews_openfiles_update(gint idx);
|
2006-01-14 22:41:35 +00:00
|
|
|
|
2006-10-29 13:48:39 +00:00
|
|
|
void treeviews_openfiles_update_all();
|
2006-07-22 14:36:20 +00:00
|
|
|
|
2006-12-05 10:37:36 +00:00
|
|
|
void treeviews_remove_document(gint idx);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-10-29 13:48:39 +00:00
|
|
|
void treeviews_create_openfiles_popup_menu();
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-10-29 13:48:39 +00:00
|
|
|
void treeviews_create_taglist_popup_menu();
|
2006-01-14 22:41:35 +00:00
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
/* compares the given data (GINT_TO_PONTER(idx)) with the idx from the selected row of openfiles
|
|
|
|
* treeview, in case of a match the row is selected and TRUE is returned
|
|
|
|
* (called indirectly from gtk_tree_model_foreach()) */
|
|
|
|
gboolean treeviews_find_node(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data);
|
|
|
|
|
|
|
|
#endif
|