2010-12-21 03:35:42 -08:00
|
|
|
#include "mooedit-enums.h"
|
2010-08-30 22:19:58 -07:00
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* enum:MooActionCheckType
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_action_check_type_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_ACTION_CHECK_SENSITIVE, (char*) "MOO_ACTION_CHECK_SENSITIVE", (char*) "check-sensitive" },
|
|
|
|
{ MOO_ACTION_CHECK_VISIBLE, (char*) "MOO_ACTION_CHECK_VISIBLE", (char*) "check-visible" },
|
|
|
|
{ MOO_ACTION_CHECK_ACTIVE, (char*) "MOO_ACTION_CHECK_ACTIVE", (char*) "check-active" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_enum_register_static ("MooActionCheckType", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* enum:MooTextCursor
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_text_cursor_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_TEXT_CURSOR_NONE, (char*) "MOO_TEXT_CURSOR_NONE", (char*) "none" },
|
|
|
|
{ MOO_TEXT_CURSOR_TEXT, (char*) "MOO_TEXT_CURSOR_TEXT", (char*) "text" },
|
|
|
|
{ MOO_TEXT_CURSOR_ARROW, (char*) "MOO_TEXT_CURSOR_ARROW", (char*) "arrow" },
|
|
|
|
{ MOO_TEXT_CURSOR_LINK, (char*) "MOO_TEXT_CURSOR_LINK", (char*) "link" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_enum_register_static ("MooTextCursor", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* enum:MooEditConfigSource
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_edit_config_source_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_EDIT_CONFIG_SOURCE_USER, (char*) "MOO_EDIT_CONFIG_SOURCE_USER", (char*) "user" },
|
|
|
|
{ MOO_EDIT_CONFIG_SOURCE_FILE, (char*) "MOO_EDIT_CONFIG_SOURCE_FILE", (char*) "file" },
|
|
|
|
{ MOO_EDIT_CONFIG_SOURCE_FILENAME, (char*) "MOO_EDIT_CONFIG_SOURCE_FILENAME", (char*) "filename" },
|
|
|
|
{ MOO_EDIT_CONFIG_SOURCE_LANG, (char*) "MOO_EDIT_CONFIG_SOURCE_LANG", (char*) "lang" },
|
|
|
|
{ MOO_EDIT_CONFIG_SOURCE_AUTO, (char*) "MOO_EDIT_CONFIG_SOURCE_AUTO", (char*) "auto" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_enum_register_static ("MooEditConfigSource", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* enum:MooEditSaveResponse
|
|
|
|
**/
|
2010-12-19 03:29:16 -08:00
|
|
|
GType
|
|
|
|
moo_edit_save_response_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_EDIT_SAVE_RESPONSE_CONTINUE, (char*) "MOO_EDIT_SAVE_RESPONSE_CONTINUE", (char*) "continue" },
|
|
|
|
{ MOO_EDIT_SAVE_RESPONSE_CANCEL, (char*) "MOO_EDIT_SAVE_RESPONSE_CANCEL", (char*) "cancel" },
|
2010-12-19 03:29:16 -08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_enum_register_static ("MooEditSaveResponse", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* enum:MooTextSelectionType
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_text_selection_type_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_TEXT_SELECT_CHARS, (char*) "MOO_TEXT_SELECT_CHARS", (char*) "chars" },
|
|
|
|
{ MOO_TEXT_SELECT_WORDS, (char*) "MOO_TEXT_SELECT_WORDS", (char*) "words" },
|
|
|
|
{ MOO_TEXT_SELECT_LINES, (char*) "MOO_TEXT_SELECT_LINES", (char*) "lines" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_enum_register_static ("MooTextSelectionType", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* enum:MooEditState
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_edit_state_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_EDIT_STATE_NORMAL, (char*) "MOO_EDIT_STATE_NORMAL", (char*) "normal" },
|
|
|
|
{ MOO_EDIT_STATE_LOADING, (char*) "MOO_EDIT_STATE_LOADING", (char*) "loading" },
|
|
|
|
{ MOO_EDIT_STATE_SAVING, (char*) "MOO_EDIT_STATE_SAVING", (char*) "saving" },
|
|
|
|
{ MOO_EDIT_STATE_PRINTING, (char*) "MOO_EDIT_STATE_PRINTING", (char*) "printing" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_enum_register_static ("MooEditState", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* enum:MooLineEndType
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_line_end_type_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_LE_NONE, (char*) "MOO_LE_NONE", (char*) "none" },
|
|
|
|
{ MOO_LE_UNIX, (char*) "MOO_LE_UNIX", (char*) "unix" },
|
|
|
|
{ MOO_LE_WIN32, (char*) "MOO_LE_WIN32", (char*) "win32" },
|
|
|
|
{ MOO_LE_MAC, (char*) "MOO_LE_MAC", (char*) "mac" },
|
|
|
|
{ MOO_LE_MIX, (char*) "MOO_LE_MIX", (char*) "mix" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_enum_register_static ("MooLineEndType", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* flags:MooTextSearchFlags
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_text_search_flags_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GFlagsValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_TEXT_SEARCH_CASELESS, (char*) "MOO_TEXT_SEARCH_CASELESS", (char*) "caseless" },
|
|
|
|
{ MOO_TEXT_SEARCH_REGEX, (char*) "MOO_TEXT_SEARCH_REGEX", (char*) "regex" },
|
|
|
|
{ MOO_TEXT_SEARCH_WHOLE_WORDS, (char*) "MOO_TEXT_SEARCH_WHOLE_WORDS", (char*) "whole-words" },
|
|
|
|
{ MOO_TEXT_SEARCH_REPL_LITERAL, (char*) "MOO_TEXT_SEARCH_REPL_LITERAL", (char*) "repl-literal" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_flags_register_static ("MooTextSearchFlags", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* flags:MooFindFlags
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_find_flags_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GFlagsValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_FIND_REGEX, (char*) "MOO_FIND_REGEX", (char*) "regex" },
|
|
|
|
{ MOO_FIND_CASELESS, (char*) "MOO_FIND_CASELESS", (char*) "caseless" },
|
|
|
|
{ MOO_FIND_IN_SELECTED, (char*) "MOO_FIND_IN_SELECTED", (char*) "in-selected" },
|
|
|
|
{ MOO_FIND_BACKWARDS, (char*) "MOO_FIND_BACKWARDS", (char*) "backwards" },
|
|
|
|
{ MOO_FIND_WHOLE_WORDS, (char*) "MOO_FIND_WHOLE_WORDS", (char*) "whole-words" },
|
|
|
|
{ MOO_FIND_FROM_CURSOR, (char*) "MOO_FIND_FROM_CURSOR", (char*) "from-cursor" },
|
|
|
|
{ MOO_FIND_DONT_PROMPT, (char*) "MOO_FIND_DONT_PROMPT", (char*) "dont-prompt" },
|
|
|
|
{ MOO_FIND_REPL_LITERAL, (char*) "MOO_FIND_REPL_LITERAL", (char*) "repl-literal" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_flags_register_static ("MooFindFlags", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* flags:MooEditStatus
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_edit_status_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GFlagsValue values[] = {
|
2010-12-19 15:35:46 -08:00
|
|
|
{ MOO_EDIT_STATUS_NORMAL, (char*) "MOO_EDIT_STATUS_NORMAL", (char*) "normal" },
|
|
|
|
{ MOO_EDIT_MODIFIED_ON_DISK, (char*) "MOO_EDIT_MODIFIED_ON_DISK", (char*) "modified-on-disk" },
|
|
|
|
{ MOO_EDIT_DELETED, (char*) "MOO_EDIT_DELETED", (char*) "delteted" },
|
|
|
|
{ MOO_EDIT_CHANGED_ON_DISK, (char*) "MOO_EDIT_CHANGED_ON_DISK", (char*) "changed-on-disk" },
|
|
|
|
{ MOO_EDIT_MODIFIED, (char*) "MOO_EDIT_MODIFIED", (char*) "modified" },
|
|
|
|
{ MOO_EDIT_NEW, (char*) "MOO_EDIT_NEW", (char*) "new" },
|
|
|
|
{ MOO_EDIT_CLEAN, (char*) "MOO_EDIT_CLEAN", (char*) "clean" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_flags_register_static ("MooEditStatus", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
2010-12-19 15:35:46 -08:00
|
|
|
/**
|
|
|
|
* flags:MooDrawWhitespaceFlags
|
|
|
|
**/
|
2010-08-30 22:19:58 -07:00
|
|
|
GType
|
|
|
|
moo_draw_whitespace_flags_get_type (void)
|
|
|
|
{
|
|
|
|
static GType etype;
|
|
|
|
if (G_UNLIKELY (!etype))
|
|
|
|
{
|
|
|
|
static const GFlagsValue values[] = {
|
2010-12-20 23:02:34 -08:00
|
|
|
{ MOO_DRAW_NO_WHITESPACE, (char*) "MOO_DRAW_NO_WHITESPACE", (char*) "MOO_DRAW_NO_WHITESPACE" },
|
|
|
|
{ MOO_DRAW_SPACES, (char*) "MOO_DRAW_SPACES", (char*) "MOO_DRAW_SPACES" },
|
|
|
|
{ MOO_DRAW_TABS, (char*) "MOO_DRAW_TABS", (char*) "MOO_DRAW_TABS" },
|
|
|
|
{ MOO_DRAW_TRAILING_SPACES, (char*) "MOO_DRAW_TRAILING_SPACES", (char*) "MOO_DRAW_TRAILING_SPACES" },
|
2010-08-30 22:19:58 -07:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
etype = g_flags_register_static ("MooDrawWhitespaceFlags", values);
|
|
|
|
}
|
|
|
|
return etype;
|
|
|
|
}
|
|
|
|
|
|
|
|
|