sidebar.h 1.83 KB
Newer Older
Enrico Tröger's avatar
Enrico Tröger committed
1
/*
2
 *      sidebar.h - this file is part of Geany, a fast and lightweight IDE
Enrico Tröger's avatar
Enrico Tröger committed
3
 *
4 5
 *      Copyright 2005-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
 *      Copyright 2006-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Enrico Tröger's avatar
Enrico Tröger committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
 *
 *      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.
20 21
 *
 * $Id$
Enrico Tröger's avatar
Enrico Tröger committed
22 23 24 25
 */



26 27
#ifndef GEANY_SIDEBAR_H
#define GEANY_SIDEBAR_H 1
Enrico Tröger's avatar
Enrico Tröger committed
28 29


30
typedef struct SidebarTreeviews
31
{
Enrico Tröger's avatar
Enrico Tröger committed
32
	GtkWidget		*tree_openfiles;
33
	GtkWidget		*default_tag_tree;
34
	GtkWidget		*popup_taglist;
35 36
}
SidebarTreeviews;
37 38

extern SidebarTreeviews tv;
Enrico Tröger's avatar
Enrico Tröger committed
39

40 41 42 43
enum
{
	SYMBOLS_COLUMN_ICON,
	SYMBOLS_COLUMN_NAME,
44
	SYMBOLS_COLUMN_TAG,
45
	SYMBOLS_COLUMN_TOOLTIP,
46
	SYMBOLS_N_COLUMNS
47
};
Enrico Tröger's avatar
Enrico Tröger committed
48

49
void sidebar_init(void);
Enrico Tröger's avatar
Enrico Tröger committed
50

51
void sidebar_finalize(void);
52

53
void sidebar_update_tag_list(GeanyDocument *doc, gboolean update);
Enrico Tröger's avatar
Enrico Tröger committed
54

55
void sidebar_openfiles_add(GeanyDocument *doc);
Enrico Tröger's avatar
Enrico Tröger committed
56

57
void sidebar_openfiles_update(GeanyDocument *doc);
58

59
void sidebar_openfiles_update_all(void);
60

61
void sidebar_select_openfiles_item(GeanyDocument *doc);
Enrico Tröger's avatar
Enrico Tröger committed
62

63
void sidebar_remove_document(GeanyDocument *doc);
Enrico Tröger's avatar
Enrico Tröger committed
64

65 66
void sidebar_add_common_menu_items(GtkMenu *menu);

67 68 69 70
void sidebar_focus_openfiles_tab(void);

void sidebar_focus_symbols_tab(void);

Enrico Tröger's avatar
Enrico Tröger committed
71
#endif