2 * properties.h Copyright (C) 2000 Kh. Naba Kumar Singh
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc., 59
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef _PROPERTIES_H_
20 #define _PROPERTIES_H_
30 /* Editor preferences */
31 #define DISABLE_SYNTAX_HILIGHTING "disable-syntax-hilighting"
33 #define INDENT_AUTOMATIC "indent-automatic"
35 #define USE_TABS "use-tabs"
36 #define BRACES_CHECK "braces-check"
37 #define DOS_EOL_CHECK "editor-doseol"
38 #define WRAP_BOOKMARKS "editor-wrapbookmarks"
39 #define TAB_SIZE "tabsize"
40 #define INDENT_SIZE "indent-size"
42 #define INDENT_OPENING "indent-opening"
43 #define INDENT_CLOSING "indent-closing"
45 #define INDENT_MAINTAIN "indent-maintain"
47 #define TAB_INDENTS "tab-indents"
48 #define BACKSPACE_UNINDENTS "backspace-unindents"
50 #define FOLD_SYMBOLS "fold-symbols"
51 #define FOLD_UNDERLINE "fold-underline"
53 #define STRIP_TRAILING_SPACES "strip-trailing-spaces"
54 #define FOLD_ON_OPEN "fold-on-open"
55 #define CARET_FORE_COLOR "caret.fore"
56 #define CALLTIP_BACK_COLOR "calltip.back"
57 #define SELECTION_FORE_COLOR "selection.fore"
58 #define SELECTION_BACK_COLOR "selection.back"
60 #define VIEW_LINENUMBERS_MARGIN "margin-linenumber-visible"
61 #define VIEW_MARKER_MARGIN "margin-marker-visible"
62 #define VIEW_FOLD_MARGIN "margin-fold-visible"
63 #define VIEW_INDENTATION_GUIDES "view-indentation-guides"
64 #define VIEW_WHITE_SPACES "view-whitespace"
65 #define VIEW_EOL "view-eol"
66 #define VIEW_LINE_WRAP "view-line-wrap"
67 #define EDGE_COLUMN "edge-column"
72 PropsID
sci_prop_set_new (void);
73 void sci_prop_set_destroy (PropsID p
);
74 gpointer
sci_prop_get_pointer (PropsID p
);
76 void sci_prop_set_with_key (PropsID p
, const gchar
*key
, const gchar
*val
);
77 void sci_prop_set_int_with_key (PropsID p
, const gchar
*key
, int val
);
78 void sci_prop_set (PropsID p
, const gchar
*keyval
);
79 gchar
* sci_prop_get (PropsID p
, const gchar
*key
);
80 gchar
* sci_prop_get_expanded (PropsID p
, const gchar
*key
);
81 gchar
* sci_prop_expand (PropsID p
, const gchar
*withvars
);
82 int sci_prop_get_int (PropsID p
, const gchar
*key
, gint defaultValue
);
83 gchar
* sci_prop_get_wild (PropsID p
, const gchar
*keybase
, const gchar
*filename
);
84 gchar
* sci_prop_get_new_expand (PropsID p
, const gchar
*keybase
, const gchar
*filename
);
85 void sci_prop_clear (PropsID p
);
86 void sci_prop_read_from_memory (PropsID p
, const gchar
*data
,
87 gint len
, const gchar
*directoryForImports
);
88 void sci_prop_read (PropsID p
, const gchar
*filename
, const gchar
*directoryForImports
);
89 void sci_prop_set_parent (PropsID p1
, PropsID p2
);
90 GList
* sci_prop_glist_from_data (guint props
, const gchar
* id
);
96 #endif /* _PROPERTIES_H_ */