1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Main Page - Header</title>
<link href="inti.css" rel="stylesheet" type="text/css">
<meta name="description" content="Reference Manual">
<meta name="author" content="The Inti Development Team">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(231, 232, 231);"
link="#000099" vlink="#990099" alink="#000099">
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
<tbody>
<tr
style="color: rgb(255, 255, 204); font-family: helvetica,arial,sans-serif; font-weight: bold;">
<td
style="vertical-align: top; background-color: rgb(0, 55, 85); text-align: center;">
<font size="+1">Reference Manual</font> </td>
</tr>
<tr>
<td valign="top" height="116" background="../images/top-fade.png"
align="center"><img src="../images/inti-logo.png" alt="Inti Logo"> <br>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>sourceview.h</h1><a href="sourceview_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* Inti-SourceView: Integrated Foundation Classes</span>
00002 <span class="comment"> * Copyright (C) 2003 The Inti Development Team.</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
00005 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00006 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
00007 <span class="comment"> * (at your option) any later version.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00012 <span class="comment"> * GNU Library General Public License for more details.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> * You should have received a copy of the GNU Library General Public License</span>
00015 <span class="comment"> * along with this program; if not, write to the Free Software</span>
00016 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00017 <span class="comment"> */</span>
00018
00024
00025 <span class="preprocessor">#ifndef INTI_GTK_SOURCE_VIEW_H</span>
00026 <span class="preprocessor"></span><span class="preprocessor">#define INTI_GTK_SOURCE_VIEW_H</span>
00027 <span class="preprocessor"></span>
00028 <span class="preprocessor">#ifndef INTI_GTK_TEXT_VIEW_H</span>
00029 <span class="preprocessor"></span><span class="preprocessor">#include <inti/gtk/textview.h></span>
00030 <span class="preprocessor">#endif</span>
00031 <span class="preprocessor"></span>
00032 <span class="preprocessor">#ifndef INTI_GTK_SOURCE_BUFFER_H</span>
00033 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="sourcebuffer_8h.html">inti/gtk-sourceview/sourcebuffer.h</a>></span>
00034 <span class="preprocessor">#endif</span>
00035 <span class="preprocessor"></span>
00036 <span class="preprocessor">#ifndef __GTK_SOURCE_VIEW_H__</span>
00037 <span class="preprocessor"></span><span class="preprocessor">#include <gtksourceview/gtksourceview.h></span>
00038 <span class="preprocessor">#endif</span>
00039 <span class="preprocessor"></span>
00040 <span class="keyword">namespace </span>Inti {
00041
00042 <span class="keyword">namespace </span>Gdk {
00043 <span class="keyword">class </span>Pixbuf;
00044 }
00045
00046 <span class="keyword">namespace </span>Gtk {
00047
00048 <span class="keyword">class </span>SourceViewClass;
00049
00055
<a name="l00056"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html">00056</a> <span class="keyword">class </span><a class="code" href="classInti_1_1Gtk_1_1SourceView.html">SourceView</a> : <span class="keyword">public</span> TextView
00057 {
00058 <span class="keyword">friend</span> <span class="keyword">class </span>G::Object;
00059 <span class="keyword">friend</span> <span class="keyword">class </span>SourceViewClass;
00060
00061 <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z60_0">SourceView</a>(<span class="keyword">const</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html">SourceView</a>&);
00062 <a class="code" href="classInti_1_1Gtk_1_1SourceView.html">SourceView</a>& operator=(<span class="keyword">const</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html">SourceView</a>&);
00063
00064 <span class="keyword">protected</span>:
00067
00068 <span class="keyword">explicit</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z60_0">SourceView</a>(GtkSourceView *view, <span class="keywordtype">bool</span> reference = <span class="keyword">false</span>);
00075
00077 <span class="comment">// Properties</span>
00078
00079 <span class="keyword">typedef</span> G::Property<bool> ShowLineNumbersPropertyType;
00080 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, ShowLineNumbersPropertyType> ShowLineNumbersPropertyProxy;
00081 <span class="keyword">static</span> <span class="keyword">const</span> ShowLineNumbersPropertyType show_line_numbers_property;
00082
00083 <span class="keyword">typedef</span> G::Property<bool> ShowLineMarkersPropertyType;
00084 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, ShowLineMarkersPropertyType> ShowLineMarkersPropertyProxy;
00085 <span class="keyword">static</span> <span class="keyword">const</span> ShowLineMarkersPropertyType show_line_markers_property;
00086
00087 <span class="keyword">typedef</span> G::Property<unsigned int> TabsWidthPropertyType;
00088 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, TabsWidthPropertyType> TabsWidthPropertyProxy;
00089 <span class="keyword">static</span> <span class="keyword">const</span> TabsWidthPropertyType tabs_width_property;
00090
00091 <span class="keyword">typedef</span> G::Property<bool> AutoIndentPropertyType;
00092 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, AutoIndentPropertyType> AutoIndentPropertyProxy;
00093 <span class="keyword">static</span> <span class="keyword">const</span> AutoIndentPropertyType auto_indent_property;
00094
00095 <span class="keyword">typedef</span> G::Property<bool> InsertSpacesPropertyType;
00096 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, InsertSpacesPropertyType> InsertSpacesPropertyProxy;
00097 <span class="keyword">static</span> <span class="keyword">const</span> InsertSpacesPropertyType insert_spaces_property;
00098
00099 <span class="keyword">typedef</span> G::Property<bool> ShowMarginPropertyType;
00100 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, ShowMarginPropertyType> ShowMarginPropertyProxy;
00101 <span class="keyword">static</span> <span class="keyword">const</span> ShowMarginPropertyType show_margin_property;
00102
00103 <span class="keyword">typedef</span> G::Property<unsigned int> MarginPropertyType;
00104 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, MarginPropertyType> MarginPropertyProxy;
00105 <span class="keyword">static</span> <span class="keyword">const</span> MarginPropertyType margin_property;
00106
00107 <span class="keyword">typedef</span> G::Property<bool> SmartHomeEndPropertyType;
00108 <span class="keyword">typedef</span> G::PropertyProxy<G::Object, SmartHomeEndPropertyType> SmartHomeEndPropertyProxy;
00109 <span class="keyword">static</span> <span class="keyword">const</span> SmartHomeEndPropertyType smart_home_end_property;
00110
00111 <span class="keyword">public</span>:
00114
00115 <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z60_0">SourceView</a>();
00117
00118 <span class="keyword">explicit</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z60_0">SourceView</a>(<a class="code" href="classInti_1_1Gtk_1_1SourceBuffer.html">SourceBuffer</a>& buffer);
00124
00125 <span class="keyword">virtual</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z60_2">~SourceView</a>();
00127
00131
<a name="l00132"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_0">00132</a> GtkSourceView* <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_0">gtk_source_view</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (GtkSourceView*)instance; }
00134
00135 GtkSourceViewClass* <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_1">gtk_source_view_class</a>() <span class="keyword">const</span>;
00137
00138 <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_2">operator GtkSourceView* </a>() <span class="keyword">const</span>;
00140
00141 <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_3">is_gtk_source_view</a>() <span class="keyword">const</span>;
00143
00144 SourceBuffer* <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_4">get_source_buffer</a>() <span class="keyword">const</span>;
00146
00147 <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_5">get_show_line_numbers</a>() <span class="keyword">const</span>;
00149
00150 <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_6">get_show_line_markers</a>() <span class="keyword">const</span>;
00152
00153 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_7">get_tabs_width</a>() <span class="keyword">const</span>;
00155
00156 <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_8">get_auto_indent</a>() <span class="keyword">const</span>;
00158
00159 <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_9">get_insert_spaces_instead_of_tabs</a>() <span class="keyword">const</span>;
00161
00162 <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_10">get_show_margin</a>() <span class="keyword">const</span>;
00164
00165 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_11">get_margin</a>() <span class="keyword">const</span>;
00167
00168 Pointer<Gdk::Pixbuf> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_12">get_marker_pixbuf</a>(<span class="keyword">const</span> String& marker_type) <span class="keyword">const</span>;
00172
00173 <span class="keywordtype">bool</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z61_13">get_smart_home_end</a>() <span class="keyword">const</span>;
00176
00180
00181 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_0">set_show_line_numbers</a>(<span class="keywordtype">bool</span> show);
00184
00185 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_1">set_show_line_markers</a>(<span class="keywordtype">bool</span> show);
00188
00189 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_2">set_tabs_width</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width);
00192
00193 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_3">set_auto_indent</a>(<span class="keywordtype">bool</span> enable);
00196
00197 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_4">set_insert_spaces_instead_of_tabs</a>(<span class="keywordtype">bool</span> enable);
00200
00201 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_5">set_show_margin</a>(<span class="keywordtype">bool</span> show);
00204
00205 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_6">set_margin</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> margin);
00208
00209 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_7">set_marker_pixbuf</a>(<span class="keyword">const</span> String& marker_type, Gdk::Pixbuf *pixbuf);
00213
00214 <span class="keywordtype">void</span> <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z62_8">set_smart_home_end</a>(<span class="keywordtype">bool</span> enable);
00218
00222
<a name="l00223"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_0">00223</a> <span class="keyword">const</span> ShowLineNumbersPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_0">prop_show_line_numbers</a>()
00224 {
00225 <span class="keywordflow">return</span> ShowLineNumbersPropertyProxy(<span class="keyword">this</span>, &show_line_numbers_property);
00226 }
00228
<a name="l00229"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_1">00229</a> <span class="keyword">const</span> ShowLineMarkersPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_1">prop_show_line_markers</a>()
00230 {
00231 <span class="keywordflow">return</span> ShowLineMarkersPropertyProxy(<span class="keyword">this</span>, &show_line_markers_property);
00232 }
00234
<a name="l00235"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_2">00235</a> <span class="keyword">const</span> TabsWidthPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_2">prop_tabs_width</a>()
00236 {
00237 <span class="keywordflow">return</span> TabsWidthPropertyProxy(<span class="keyword">this</span>, &tabs_width_property);
00238 }
00240
<a name="l00241"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_3">00241</a> <span class="keyword">const</span> AutoIndentPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_3">prop_auto_indent</a>()
00242 {
00243 <span class="keywordflow">return</span> AutoIndentPropertyProxy(<span class="keyword">this</span>, &auto_indent_property);
00244 }
00246
<a name="l00247"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_4">00247</a> <span class="keyword">const</span> InsertSpacesPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_4">prop_insert_spaces</a>()
00248 {
00249 <span class="keywordflow">return</span> InsertSpacesPropertyProxy(<span class="keyword">this</span>, &insert_spaces_property);
00250 }
00252
<a name="l00253"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_5">00253</a> <span class="keyword">const</span> ShowMarginPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_5">prop_show_margin</a>()
00254 {
00255 <span class="keywordflow">return</span> ShowMarginPropertyProxy(<span class="keyword">this</span>, &show_margin_property);
00256 }
00258
<a name="l00259"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_6">00259</a> <span class="keyword">const</span> MarginPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_6">prop_margin</a>()
00260 {
00261 <span class="keywordflow">return</span> MarginPropertyProxy(<span class="keyword">this</span>, &margin_property);
00262 }
00264
<a name="l00265"></a><a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_7">00265</a> <span class="keyword">const</span> SmartHomeEndPropertyProxy <a class="code" href="classInti_1_1Gtk_1_1SourceView.html#z63_7">prop_smart_home_end</a>()
00266 {
00267 <span class="keywordflow">return</span> SmartHomeEndPropertyProxy(<span class="keyword">this</span>, &smart_home_end_property);
00268 }
00271 };
00272
00273 } <span class="comment">// namespace Gtk</span>
00274
00275 } <span class="comment">// namespace Inti</span>
00276
00277 <span class="preprocessor">#endif // INTI_GTK_SOURCE_VIEW_H</span>
00278 <span class="preprocessor"></span>
</pre></div><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Main Page - Footer</title>
<meta name="description" content="Reference Manual">
<meta name="author" content="The Inti Development Team">
</head>
<body>
<br>
<br>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
<tbody>
<tr>
<td valign="top">
<hr></td>
</tr>
<tr>
<td valign="top" height="116"
background="../images/bottom-fade.png">
<address><small>Generated on Wed Aug 27 21:17:27 2003 for Inti-SourceView by <a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" align="middle" border="0" width="110" height="53"> </a>
1.3.2 written by <a href="mailto:dimitri@stack.nl">Dimitri
van Heesch</a>, © 1997-2002</small></address>
</td>
</tr>
<tr>
<td style="vertical-align: top; background-color: rgb(0, 55, 85);"><br>
</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>
|