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-11-07 01:20:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@sourceforge.net>
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05: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
|
|
|
*
|
2008-09-05 17:20:50 -05: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
|
|
|
|
2007-06-10 04:06:03 -05: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
|
|
|
|
|
2010-12-08 01:11:51 -08:00
|
|
|
#define PROGRESS_TIMEOUT 100
|
|
|
|
#define PROGRESS_WIDTH 300
|
|
|
|
#define PROGRESS_HEIGHT 100
|
|
|
|
|
2008-09-15 03:59:22 -05:00
|
|
|
#define MOO_EDIT_IS_UNTITLED(edit) (!(edit)->priv->file)
|
2007-07-07 07:34:41 -05:00
|
|
|
|
2010-12-12 02:29:20 -08:00
|
|
|
struct MooEditPrivate {
|
2005-06-22 18:20:32 +00:00
|
|
|
MooEditor *editor;
|
|
|
|
|
|
|
|
gulong modified_changed_handler_id;
|
2006-04-26 23:04:41 -05:00
|
|
|
guint apply_config_idle;
|
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
|
|
|
|
2006-12-08 14:55:46 -06:00
|
|
|
guint file_monitor_id;
|
2005-10-13 14:08:18 +00:00
|
|
|
gboolean modified_on_disk;
|
|
|
|
gboolean deleted_from_disk;
|
2005-12-11 04:30:02 +00:00
|
|
|
|
2006-06-30 00:58:35 -05:00
|
|
|
/***********************************************************************/
|
2010-12-08 01:11:51 -08:00
|
|
|
/* Progress dialog and stuff
|
2006-12-04 04:54:12 -06:00
|
|
|
*/
|
2006-06-30 00:58:35 -05:00
|
|
|
MooEditState state;
|
2010-12-08 01:11:51 -08:00
|
|
|
guint progress_timeout;
|
|
|
|
GtkWidget *progress;
|
|
|
|
GtkWidget *progressbar;
|
|
|
|
char *progress_text;
|
|
|
|
GDestroyNotify cancel_op;
|
|
|
|
gpointer cancel_data;
|
2006-06-30 00:58:35 -05:00
|
|
|
|
2005-12-11 04:30:02 +00:00
|
|
|
/***********************************************************************/
|
|
|
|
/* Bookmarks
|
2006-12-04 04:54:12 -06:00
|
|
|
*/
|
2005-12-11 04:30:02 +00: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
|
|
|
*/
|
2006-08-15 02:12:41 -05:00
|
|
|
MooActionCollection *actions;
|
2005-09-09 09:40:10 +00:00
|
|
|
};
|
|
|
|
|
2010-12-08 01:11:51 -08:00
|
|
|
|
2005-06-22 18:20:32 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_EDIT_PRIVATE_H */
|