medit/moo/mooedit/mooedit-private.h

71 lines
1.8 KiB
C
Raw Normal View History

2006-05-21 18:11:05 -05:00
/*
2005-09-06 16:21:05 +00:00
* mooedit-private.h
2005-06-22 18:20:32 +00:00
*
2010-12-21 20:15:45 -08:00
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
2005-06-22 18:20:32 +00:00
*
* This file is part of medit. medit is free software; you can
* redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License,
* or (at your option) any later version.
2005-06-22 18:20:32 +00:00
*
* You should have received a copy of the GNU Lesser General Public
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
2005-07-24 04:58:57 +00:00
*/
2005-06-22 18:20:32 +00:00
#ifndef MOO_EDIT_PRIVATE_H
#define MOO_EDIT_PRIVATE_H
2005-06-22 18:20:32 +00:00
2010-02-01 22:44:03 -08:00
#include "mooedit/mooedit-impl.h"
2005-06-22 18:20:32 +00:00
G_BEGIN_DECLS
2008-09-15 03:59:22 -05:00
#define MOO_EDIT_IS_UNTITLED(edit) (!(edit)->priv->file)
2010-12-12 02:29:20 -08:00
struct MooEditPrivate {
2005-06-22 18:20:32 +00:00
MooEditor *editor;
2011-01-17 03:01:11 -08:00
GtkTextBuffer *buffer;
MooEditViewArray *views;
MooEditView *active_view;
2005-06-22 18:20:32 +00:00
gulong modified_changed_handler_id;
2006-04-26 23:04:41 -05:00
guint apply_config_idle;
2010-12-19 02:26:03 -08:00
gboolean in_recheck_config;
2005-06-22 18:20:32 +00:00
/***********************************************************************/
/* Document
2006-12-04 04:54:12 -06:00
*/
2008-09-15 03:59:22 -05:00
GFile *file;
2005-06-22 18:20:32 +00:00
char *filename;
2010-12-12 02:29:20 -08:00
char *norm_name;
2005-06-22 18:20:32 +00:00
char *display_filename;
char *display_basename;
char *encoding;
2009-12-06 13:54:27 -08:00
MooLineEndType line_end_type;
2005-09-02 23:27:25 +00:00
MooEditStatus status;
2005-06-22 18:20:32 +00:00
guint file_monitor_id;
gboolean modified_on_disk;
gboolean deleted_from_disk;
/***********************************************************************/
/* Bookmarks
2006-12-04 04:54:12 -06:00
*/
gboolean enable_bookmarks;
GSList *bookmarks; /* sorted by line number */
guint update_bookmarks_idle;
2006-04-20 03:57:05 -05:00
/***********************************************************************/
/* Actions
2006-12-04 04:54:12 -06:00
*/
MooActionCollection *actions;
};
2010-12-18 23:58:18 -08:00
void _moo_edit_remove_untitled (MooEdit *doc);
2010-12-08 01:11:51 -08:00
2005-06-22 18:20:32 +00:00
G_END_DECLS
#endif /* MOO_EDIT_PRIVATE_H */