Desktop

/* $Id: editor.h,v 1.7 2006/10/11 07:11:42 khorben Exp $ */
/* Copyright (c) 2006 The DeforaOS Project */
#ifndef EDITOR_EDITOR_H
# define EDITOR_EDITOR_H
# include <gtk/gtk.h>
/* types */
typedef struct _Editor
{
char * filename;
/* widgets */
GtkWidget * window;
GtkWidget * view;
GtkWidget * statusbar;
/* preferences */
GtkWidget * pr_window;
} Editor;
/* functions */
Editor * editor_new(void);
void editor_delete(Editor * editor);
/* useful */
gboolean editor_close(Editor * editor);
void editor_open(Editor * editor, char const * filename);
void editor_open_dialog(Editor * editor);
gboolean editor_save(Editor * editor);
gboolean editor_save_as(Editor * editor, char const * filename);
gboolean editor_save_as_dialog(Editor * editor);
#endif /* !EDITOR_EDITOR_H */