2006-12-06 23:02:08 -06:00
|
|
|
/*
|
|
|
|
* mooeditor-private.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2006-12-06 23:02:08 -06: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.
|
2006-12-06 23:02:08 -06: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/>.
|
2006-12-06 23:02:08 -06:00
|
|
|
*/
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_EDITOR_PRIVATE_H
|
|
|
|
#define MOO_EDITOR_PRIVATE_H
|
2006-12-06 23:02:08 -06:00
|
|
|
|
2010-11-23 21:54:39 -08:00
|
|
|
#include "mooedit/mooeditor-impl.h"
|
|
|
|
#include "mooedit/moolangmgr.h"
|
2006-12-06 23:02:08 -06:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2010-11-23 21:54:39 -08:00
|
|
|
typedef enum {
|
|
|
|
OPEN_SINGLE = 1 << 0,
|
|
|
|
ALLOW_EMPTY_WINDOW = 1 << 1,
|
|
|
|
SINGLE_WINDOW = 1 << 2,
|
|
|
|
SAVE_BACKUPS = 1 << 3,
|
|
|
|
STRIP_WHITESPACE = 1 << 4,
|
|
|
|
EMBEDDED = 1 << 5
|
|
|
|
} MooEditorOptions;
|
|
|
|
|
2010-12-12 02:29:20 -08:00
|
|
|
struct MooEditorPrivate {
|
2010-11-23 21:54:39 -08:00
|
|
|
MooEditArray *windowless;
|
|
|
|
MooEditWindowArray *windows;
|
|
|
|
MooUiXml *doc_ui_xml;
|
|
|
|
MooUiXml *ui_xml;
|
2010-12-08 01:17:17 -08:00
|
|
|
MooHistoryMgr *history;
|
2010-11-23 21:54:39 -08:00
|
|
|
MooFileWatch *file_watch;
|
|
|
|
MooEditorOptions opts;
|
|
|
|
|
|
|
|
GType window_type;
|
|
|
|
GType doc_type;
|
|
|
|
|
|
|
|
MooLangMgr *lang_mgr;
|
|
|
|
};
|
2006-12-06 23:02:08 -06:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2015-07-15 02:22:11 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
#include "mooutils/mooutils-cpp.h"
|
|
|
|
|
|
|
|
MOO_DEFINE_FLAGS(MooEditorOptions);
|
|
|
|
|
|
|
|
#endif // __cplusplus
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_EDITOR_PRIVATE_H */
|