medit/moo/mooedit/mooedit-private.h

103 lines
2.9 KiB
C
Raw Normal View History

2005-09-06 09:21:05 -07:00
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4; coding: utf-8 -*-
*
2005-09-06 09:21:05 -07:00
* mooedit-private.h
2005-06-22 11:20:32 -07:00
*
* Copyright (C) 2004-2005 by Yevgen Muntyan <muntyan@math.tamu.edu>
*
* 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; either version 2 of the License, or
* (at your option) any later version.
*
* See COPYING file that comes with this distribution.
2005-07-23 21:58:57 -07:00
*/
2005-06-22 11:20:32 -07:00
#ifndef MOOEDIT_COMPILATION
#error "Do not include this file"
#endif
2005-09-06 09:21:05 -07:00
#ifndef __MOO_EDIT_PRIVATE_H__
#define __MOO_EDIT_PRIVATE_H__
2005-06-22 11:20:32 -07:00
#include "mooedit/mooeditor.h"
#include "mooedit/mootextview.h"
2005-06-22 11:20:32 -07:00
G_BEGIN_DECLS
/***********************************************************************/
/* Preferences
/*/
void _moo_edit_set_default_settings (void);
void _moo_edit_apply_settings (MooEdit *edit);
void _moo_edit_apply_style_settings (MooEdit *edit);
void _moo_edit_settings_changed (const char *key,
const GValue *newval,
MooEdit *edit);
2005-06-22 11:20:32 -07:00
/***********************************************************************/
/* File operations
/*/
void _moo_edit_set_filename (MooEdit *edit,
const char *file,
const char *encoding);
char *_moo_edit_filename_to_utf8 (const char *filename);
2005-06-22 11:20:32 -07:00
void _moo_edit_start_file_watch (MooEdit *edit);
void _moo_edit_stop_file_watch (MooEdit *edit);
2005-06-22 11:20:32 -07:00
MooEdit *_moo_edit_new (MooEditor *editor);
2005-06-22 11:20:32 -07:00
typedef enum {
MOO_EDIT_LINE_END_UNIX = 0,
MOO_EDIT_LINE_END_WIN32 = 1,
MOO_EDIT_LINE_END_MAC = 2
} MooEditLineEndType;
struct _MooEditPrivate {
MooEditor *editor;
gulong modified_changed_handler_id;
gboolean enable_indentation;
2005-06-22 11:20:32 -07:00
/***********************************************************************/
/* Document
/*/
char *filename;
char *basename;
char *display_filename;
char *display_basename;
gboolean readonly;
char *encoding;
MooEditLineEndType line_end_type;
2005-09-02 16:27:25 -07:00
MooEditStatus status;
2005-06-22 11:20:32 -07:00
MooEditOnExternalChanges file_watch_policy;
int file_monitor_id;
gulong file_watch_event_handler_id;
2005-06-22 11:20:32 -07:00
gulong focus_in_handler_id;
gboolean modified_on_disk;
gboolean deleted_from_disk;
2005-06-22 11:20:32 -07:00
/***********************************************************************/
/* Language and stuff
2005-06-22 11:20:32 -07:00
/*/
GHashTable *vars;
2005-06-22 11:20:32 -07:00
gboolean lang_custom;
/***********************************************************************/
/* Preferences
/*/
guint prefs_notify;
};
2005-06-22 11:20:32 -07:00
G_END_DECLS
2005-09-06 09:21:05 -07:00
#endif /* __MOO_EDIT_PRIVATE_H__ */