2009-09-23 03:22:01 +00:00
|
|
|
/*
|
|
|
|
* mape - C4 Landscape.txt editor
|
2009-09-21 04:04:52 +00:00
|
|
|
*
|
2009-09-23 03:22:01 +00:00
|
|
|
* Copyright (c) 2005-2009 Armin Burgmeier
|
2009-09-21 04:04:52 +00:00
|
|
|
*
|
2009-09-23 03:22:01 +00:00
|
|
|
* Portions might be copyrighted by other authors who have contributed
|
|
|
|
* to OpenClonk.
|
2009-09-21 04:04:52 +00:00
|
|
|
*
|
2009-09-23 03:22:01 +00:00
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
* See isc_license.txt for full license and disclaimer.
|
|
|
|
*
|
|
|
|
* "Clonk" is a registered trademark of Matthes Bender.
|
|
|
|
* See clonk_trademark_license.txt for full license.
|
2009-09-21 04:04:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INC_MAPE_DISKVIEW_H
|
|
|
|
#define INC_MAPE_DISKVIEW_H
|
|
|
|
|
2009-09-27 02:08:40 +00:00
|
|
|
#include <gtk/gtk.h>
|
2009-09-27 01:54:47 +00:00
|
|
|
|
2009-09-21 04:04:52 +00:00
|
|
|
#include "forward.h"
|
2009-09-27 01:54:47 +00:00
|
|
|
#include "group.h"
|
2009-09-21 04:04:52 +00:00
|
|
|
|
|
|
|
typedef enum MapeDiskViewColumns_ {
|
|
|
|
MAPE_DISK_VIEW_COLUMN_ICON,
|
|
|
|
MAPE_DISK_VIEW_COLUMN_FILE,
|
|
|
|
MAPE_DISK_VIEW_COLUMN_GROUP,
|
|
|
|
|
|
|
|
MAPE_DISK_VIEW_COLUMN_COUNT
|
|
|
|
} MapeDiskViewColumns;
|
|
|
|
|
|
|
|
typedef enum MapeDiskViewError_ {
|
|
|
|
MAPE_DISK_VIEW_ERROR_NOENT,
|
|
|
|
|
|
|
|
MAPE_DISK_VIEW_ERROR_FAILED
|
|
|
|
} MapeDiskViewError;
|
|
|
|
|
|
|
|
struct MapeDiskView_ {
|
|
|
|
GtkWidget* window;
|
|
|
|
GtkWidget* view;
|
|
|
|
|
|
|
|
GtkTreeModel* tree_store;
|
|
|
|
|
|
|
|
GtkCellRenderer* renderer_icon;
|
|
|
|
GtkCellRenderer* renderer_file;
|
|
|
|
|
|
|
|
GtkTreeViewColumn* col_file;
|
|
|
|
|
|
|
|
MapeMatTexView* mat_tex;
|
|
|
|
MapeEditView* edit_view;
|
|
|
|
|
|
|
|
MapeFileIconSet* icon_set;
|
|
|
|
MapeGroup* group_top;
|
|
|
|
MapeConfigFile* config;
|
|
|
|
};
|
|
|
|
|
|
|
|
MapeDiskView* mape_disk_view_new(MapeFileIconSet* icon_set,
|
|
|
|
MapeMatTexView* mat_tex,
|
|
|
|
MapeEditView* edit_view,
|
|
|
|
MapeConfigFile* config,
|
|
|
|
GError** error);
|
|
|
|
void mape_disk_view_destroy(MapeDiskView* disk_view);
|
|
|
|
|
|
|
|
gboolean mape_disk_view_extend_to_path(MapeDiskView* disk_view,
|
|
|
|
const gchar* filepath,
|
|
|
|
GError** error);
|
|
|
|
|
|
|
|
#endif /* INC_MAPE_DISKVIEW_H */
|