medit/moo/mooedit/mooeditor-private.h

61 lines
1.5 KiB
C
Raw Normal View History

/*
* mooeditor-private.h
*
2016-10-02 21:14:12 -07:00
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
*
* 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.
*
* You should have received a copy of the GNU Lesser General Public
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
*/
2016-10-02 21:14:12 -07:00
#ifndef MOO_EDITOR_PRIVATE_H
#define MOO_EDITOR_PRIVATE_H
2010-11-23 21:54:39 -08:00
#include "mooedit/mooeditor-impl.h"
2016-10-22 13:10:01 -07:00
#ifndef MOO_USE_SCI
#include "mooedit/native/moolangmgr.h"
#endif // !MOO_USE_SCI
2016-10-02 21:14:12 -07:00
G_BEGIN_DECLS
typedef enum {
2010-11-23 21:54:39 -08:00
OPEN_SINGLE = 1 << 0,
ALLOW_EMPTY_WINDOW = 1 << 1,
SINGLE_WINDOW = 1 << 2,
SAVE_BACKUPS = 1 << 3,
STRIP_WHITESPACE = 1 << 4,
2016-10-02 21:14:12 -07:00
EMBEDDED = 1 << 5
} MooEditorOptions;
struct MooEditorPrivate {
MooEditArray *windowless;
MooEditWindowArray *windows;
MooUiXml *doc_ui_xml;
MooUiXml *ui_xml;
MooHistoryMgr *history;
MooFileWatch *file_watch;
MooEditorOptions opts;
GType window_type;
GType doc_type;
MooLangMgr *lang_mgr;
2010-11-23 21:54:39 -08:00
};
2016-10-02 21:14:12 -07:00
G_END_DECLS
2015-07-15 02:22:11 -07:00
2016-10-02 21:14:12 -07:00
#ifdef __cplusplus
#include "mooutils/mooutils-cpp.h"
2016-10-02 21:14:12 -07:00
MOO_DEFINE_FLAGS(MooEditorOptions);
2016-10-02 21:14:12 -07:00
#endif // __cplusplus
2015-07-15 02:22:11 -07:00
2016-10-02 21:14:12 -07:00
#endif /* MOO_EDITOR_PRIVATE_H */