2 * sidebar.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005 The Geany contributors
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef GEANY_SIDEBAR_H
24 #define GEANY_SIDEBAR_H 1
28 #include "gtkcompat.h"
34 typedef struct SidebarTreeviews
36 GtkWidget
*tree_openfiles
;
37 GtkWidget
*default_tag_tree
;
38 GtkWidget
*popup_taglist
;
42 extern SidebarTreeviews tv
;
49 SYMBOLS_COLUMN_TOOLTIP
,
61 /* documents tree model columns */
65 DOCUMENTS_SHORTNAME
, /* dirname for parents, basename for children */
68 DOCUMENTS_FILENAME
, /* full filename */
69 DOCUMENTS_FOLD
, /* fold state stored when folding parent rows */
72 void sidebar_init(void);
74 void sidebar_finalize(void);
76 void sidebar_update_tag_list(GeanyDocument
*doc
, gboolean update
);
78 void sidebar_openfiles_add(GeanyDocument
*doc
);
80 void sidebar_openfiles_update(GeanyDocument
*doc
);
82 void sidebar_openfiles_update_all(void);
84 void sidebar_select_openfiles_item(GeanyDocument
*doc
);
86 void sidebar_remove_document(GeanyDocument
*doc
);
88 void sidebar_add_common_menu_items(GtkMenu
*menu
);
90 void sidebar_focus_openfiles_tab(void);
92 void sidebar_focus_symbols_tab(void);
94 GtkTreeStore
*sidebar_create_store_openfiles(void);
100 #endif /* GEANY_SIDEBAR_H */