2005-11-22 12:26:26 +00:00
|
|
|
/*
|
2007-08-23 11:34:06 +00:00
|
|
|
* treeviews.h - this file is part of Geany, a fast and lightweight IDE
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
2009-01-04 18:30:42 +00:00
|
|
|
* Copyright 2005-2009 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2009 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)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-08-23 11:34:06 +00:00
|
|
|
typedef struct SidebarTreeviews
|
2007-01-14 12:12:18 +00:00
|
|
|
{
|
2005-11-22 12:26:26 +00:00
|
|
|
GtkWidget *tree_openfiles;
|
2007-08-23 11:34:06 +00:00
|
|
|
GtkWidget *default_tag_tree;
|
2006-01-14 22:41:35 +00:00
|
|
|
GtkWidget *popup_taglist;
|
2005-11-22 12:26:26 +00:00
|
|
|
GtkWidget *popup_openfiles;
|
2007-08-23 11:34:06 +00:00
|
|
|
} SidebarTreeviews;
|
|
|
|
|
|
|
|
extern SidebarTreeviews tv;
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2007-07-20 16:33:16 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
SYMBOLS_COLUMN_ICON,
|
|
|
|
SYMBOLS_COLUMN_NAME,
|
2008-11-03 17:25:35 +00:00
|
|
|
SYMBOLS_COLUMN_TAG,
|
2008-11-29 12:50:52 +00:00
|
|
|
SYMBOLS_COLUMN_TOOLTIP,
|
2008-02-20 11:24:23 +00:00
|
|
|
SYMBOLS_N_COLUMNS
|
2007-07-20 16:33:16 +00:00
|
|
|
};
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void treeviews_init(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
void treeviews_update_tag_list(GeanyDocument *doc, gboolean update);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
void treeviews_openfiles_add(GeanyDocument *doc);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
void treeviews_openfiles_update(GeanyDocument *doc);
|
2006-01-14 22:41:35 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void treeviews_openfiles_update_all(void);
|
2006-07-22 14:36:20 +00:00
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
void treeviews_select_openfiles_item(GeanyDocument *doc);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
void treeviews_remove_document(GeanyDocument *doc);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-11-18 13:29:53 +00:00
|
|
|
void sidebar_add_common_menu_items(GtkMenu *menu);
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|