Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
/*
2
 * Copyright 2008 Vincent Sanders 
3
 *
4
 * This file is part of NetSurf, http://www.netsurf-browser.org/
5
 *
6
 * NetSurf 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; version 2 of the License.
9
 *
10
 * NetSurf is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see .
17
 */
18
 
19
#include "desktop/tree.h"
20
#include "desktop/tree_url_node.h"
21
 
22
const char tree_directory_icon_name[] = "directory.png";
23
const char tree_content_icon_name[] = "content.png";
24
 
25
 
26
 
27
/**
28
 * Translates a content_type to the name of a respective icon
29
 *
30
 * \param content_type	content type
31
 * \param buffer	buffer for the icon name
32
 */
33
void tree_icon_name_from_content_type(char *buffer, content_type type)
34
{
35
	// TODO: design/acquire icons
36
	switch (type) {
37
		case CONTENT_HTML:
38
		case CONTENT_TEXTPLAIN:
39
		case CONTENT_CSS:
40
		case CONTENT_IMAGE:
41
		default:
42
			sprintf(buffer, tree_content_icon_name);
43
			break;
44
	}
45
}