Desktop

/* $Id: gedi.h,v 1.1 2011/11/28 04:51:40 khorben Exp $ */
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Devel GEDI */
/* This program 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 3 of the License.
*
* This program 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/>. */
#ifndef GEDI_GEDI_H
# define GEDI_GEDI_H
# include <System.h>
# include <gtk/gtk.h>
# include "project.h"
/* GEDI */
/* types */
typedef struct _GEDI GEDI;
/* functions */
GEDI * gedi_new(void);
void gedi_delete(GEDI * gedi);
/* useful */
void gedi_about(GEDI * gedi);
int gedi_error(GEDI * gedi, char const * message, int ret);
void gedi_file_open(GEDI * gedi, char const * filename);
/* project */
int gedi_project_open(GEDI * gedi, char const * filename);
void gedi_project_open_dialog(GEDI * gedi);
int gedi_project_open_project(GEDI * gedi, Project * project);
void gedi_project_properties(GEDI * gedi);
int gedi_project_save(GEDI * gedi);
int gedi_project_save_as(GEDI * gedi, char const * filename);
int gedi_project_save_dialog(GEDI * gedi);
/* interface */
void gedi_show_preferences(GEDI * gedi, gboolean show);
#endif /* !GEDI_GEDI_H */