2004-12-09 13:30:44 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
|
2010-10-05 23:14:46 +04:00
|
|
|
* Copyright 2010 Stephen Fryatt <stevef@netsurf-browser.org>
|
2007-08-08 20:16:03 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf 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; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf 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, see <http://www.gnu.org/licenses/>.
|
2004-12-09 13:30:44 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* Generic tree handling (interface).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_TREEVIEW_H_
|
|
|
|
#define _NETSURF_RISCOS_TREEVIEW_H_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2010-10-05 23:14:46 +04:00
|
|
|
#include <oslib/help.h>
|
|
|
|
#include <oslib/wimp.h>
|
|
|
|
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "desktop/tree.h"
|
2004-12-09 13:30:44 +03:00
|
|
|
|
2010-12-14 03:18:24 +03:00
|
|
|
/* defined in front end code */
|
|
|
|
extern const char tree_directory_icon_name[];
|
|
|
|
extern const char tree_content_icon_name[];
|
|
|
|
|
2010-10-05 23:14:46 +04:00
|
|
|
typedef struct ro_treeview ro_treeview;
|
2004-12-09 13:30:44 +03:00
|
|
|
|
2010-10-05 23:14:46 +04:00
|
|
|
struct ro_treeview_table {
|
|
|
|
void (*open_menu)(wimp_pointer *pointer);
|
2004-12-09 13:30:44 +03:00
|
|
|
};
|
|
|
|
|
2010-10-05 23:14:46 +04:00
|
|
|
ro_treeview *ro_treeview_create(wimp_w window, struct toolbar *toolbar,
|
|
|
|
unsigned int flags);
|
|
|
|
void ro_treeview_destroy(ro_treeview *tv);
|
|
|
|
|
|
|
|
struct tree *ro_treeview_get_tree(ro_treeview *tv);
|
|
|
|
wimp_w ro_treeview_get_window(ro_treeview *tv);
|
|
|
|
bool ro_treeview_has_selection(ro_treeview *tv);
|
|
|
|
|
|
|
|
void ro_treeview_set_origin(ro_treeview *tv, int x, int y);
|
2010-12-19 21:22:09 +03:00
|
|
|
void ro_treeview_mouse_at(wimp_pointer *pointer);
|
2010-12-19 13:45:13 +03:00
|
|
|
void ro_treeview_drag_end(wimp_dragged *drag);
|
2010-10-05 23:14:46 +04:00
|
|
|
void ro_treeview_update_theme(ro_treeview *tv);
|
2010-10-25 01:52:16 +04:00
|
|
|
void ro_treeview_update_toolbar(ro_treeview *tv);
|
2010-10-05 23:14:46 +04:00
|
|
|
int ro_treeview_get_help(help_full_message_request *message_data);
|
2004-12-09 13:30:44 +03:00
|
|
|
|
|
|
|
#endif
|
2010-10-05 23:14:46 +04:00
|
|
|
|