context 0.0.16 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/AUTHORS +1 -0
  2. data/COPYING +679 -0
  3. data/README +188 -0
  4. data/Rakefile.rb +64 -18
  5. data/lib/Context/Bridge.rb +7 -6
  6. data/lib/Context/Context.rb +14 -35
  7. data/lib/Context/Gtk/Widget.rb +139 -33
  8. data/lib/Context/Log.rb +10 -0
  9. data/lib/Context/Publisher.rb +108 -0
  10. data/lib/Context/Spec.rb +8 -0
  11. data/lib/Context/Version.rb +1 -1
  12. data/lib/Context/View.rb +16 -15
  13. data/lib/Context/Views/Gtk/PageView.rb +3 -23
  14. data/lib/Context/Views/Gtk/Widgets/MainWindow.rb +70 -0
  15. data/lib/Context/Views/Gtk/Widgets/VBox.rb +29 -0
  16. data/lib/Context/Widget.rb +18 -27
  17. data/spec/Context/Bridge_spec.rb +19 -20
  18. data/spec/Context/Context_spec.rb +77 -63
  19. data/spec/Context/Gtk/Widget_spec.rb +23 -23
  20. data/spec/Context/Publisher_spec.rb +53 -0
  21. data/spec/Context/View_spec.rb +10 -14
  22. data/spec/Context/Views/Gtk/PageView_spec.rb +25 -9
  23. data/spec/Context/require_all_spec.rb +14 -7
  24. data/test_results.html +84 -121
  25. metadata +74 -128
  26. data/coverage/-usr-local-lib-site_ruby-1_8-atk_rb.html +0 -612
  27. data/coverage/-usr-local-lib-site_ruby-1_8-gdk_pixbuf2_rb.html +0 -637
  28. data/coverage/-usr-local-lib-site_ruby-1_8-glib2_rb.html +0 -829
  29. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2-base_rb.html +0 -709
  30. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2_rb.html +0 -623
  31. data/coverage/-usr-local-lib-site_ruby-1_8-pango_rb.html +0 -665
  32. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-color_rb.html +0 -865
  33. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-colors_rb.html +0 -1266
  34. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-constants_rb.html +0 -632
  35. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-blur_rb.html +0 -655
  36. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-circle_rb.html +0 -619
  37. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-color_rb.html +0 -621
  38. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-path_rb.html +0 -726
  39. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-rectangle_rb.html +0 -643
  40. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-triangle_rb.html +0 -622
  41. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context_rb.html +0 -639
  42. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-paper_rb.html +0 -793
  43. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-papers_rb.html +0 -651
  44. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-path_rb.html +0 -625
  45. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-point_rb.html +0 -617
  46. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo_rb.html +0 -756
  47. data/coverage/index.html +0 -1170
  48. data/coverage/lib-Context-Bridge_rb.html +0 -673
  49. data/coverage/lib-Context-Context_rb.html +0 -756
  50. data/coverage/lib-Context-EnumeratedType_rb.html +0 -661
  51. data/coverage/lib-Context-ExecutionProxy_rb.html +0 -671
  52. data/coverage/lib-Context-Gtk-App_rb.html +0 -638
  53. data/coverage/lib-Context-Gtk-Key_rb.html +0 -664
  54. data/coverage/lib-Context-Gtk-Widget_rb.html +0 -667
  55. data/coverage/lib-Context-KeyAssignment_rb.html +0 -641
  56. data/coverage/lib-Context-KeyMap_rb.html +0 -653
  57. data/coverage/lib-Context-Key_rb.html +0 -667
  58. data/coverage/lib-Context-View_rb.html +0 -659
  59. data/coverage/lib-Context-Views-Gtk-PageView_rb.html +0 -660
  60. data/coverage/lib-Context-Views-PageView_rb.html +0 -627
  61. data/coverage/lib-Context-Widget_rb.html +0 -650
  62. data/coverage/lib-Context-require_all_rb.html +0 -623
  63. data/doc/classes/Context.html +0 -174
  64. data/doc/classes/Context/Bridge.html +0 -296
  65. data/doc/classes/Context/Context.html +0 -564
  66. data/doc/classes/Context/EnumeratedType.html +0 -283
  67. data/doc/classes/Context/ExecutionProxy.html +0 -228
  68. data/doc/classes/Context/Gtk.html +0 -126
  69. data/doc/classes/Context/Gtk/App.html +0 -217
  70. data/doc/classes/Context/Gtk/Key.html +0 -292
  71. data/doc/classes/Context/Gtk/PageView.html +0 -245
  72. data/doc/classes/Context/Gtk/PageView/MainWindow.html +0 -200
  73. data/doc/classes/Context/Gtk/Widget.html +0 -311
  74. data/doc/classes/Context/Key.html +0 -305
  75. data/doc/classes/Context/Key/Modifier.html +0 -117
  76. data/doc/classes/Context/KeyAssignment.html +0 -234
  77. data/doc/classes/Context/KeyMap.html +0 -273
  78. data/doc/classes/Context/PageView.html +0 -180
  79. data/doc/classes/Context/View.html +0 -334
  80. data/doc/classes/Context/Widget.html +0 -298
  81. data/doc/classes/Kernel.html +0 -148
  82. data/doc/classes/Object.html +0 -196
  83. data/doc/created.rid +0 -1
  84. data/doc/files/lib/Context/Bridge_rb.html +0 -108
  85. data/doc/files/lib/Context/Context_rb.html +0 -109
  86. data/doc/files/lib/Context/EnumeratedType_rb.html +0 -101
  87. data/doc/files/lib/Context/ExecutionProxy_rb.html +0 -101
  88. data/doc/files/lib/Context/Gtk/App_rb.html +0 -110
  89. data/doc/files/lib/Context/Gtk/Key_rb.html +0 -109
  90. data/doc/files/lib/Context/Gtk/Widget_rb.html +0 -109
  91. data/doc/files/lib/Context/KeyAssignment_rb.html +0 -108
  92. data/doc/files/lib/Context/KeyMap_rb.html +0 -109
  93. data/doc/files/lib/Context/Key_rb.html +0 -108
  94. data/doc/files/lib/Context/Version_rb.html +0 -101
  95. data/doc/files/lib/Context/View_rb.html +0 -101
  96. data/doc/files/lib/Context/Views/Gtk/PageView_rb.html +0 -111
  97. data/doc/files/lib/Context/Views/PageView_rb.html +0 -108
  98. data/doc/files/lib/Context/Widget_rb.html +0 -101
  99. data/doc/files/lib/Context/require_all_rb.html +0 -101
  100. data/doc/fr_class_index.html +0 -46
  101. data/doc/fr_file_index.html +0 -42
  102. data/doc/fr_method_index.html +0 -103
  103. data/doc/index.html +0 -24
  104. data/doc/rdoc-style.css +0 -208
  105. data/lib/Context/EnumeratedType.rb +0 -51
  106. data/lib/Context/ExecutionProxy.rb +0 -61
  107. data/lib/Context/Gtk/Key.rb +0 -54
  108. data/lib/Context/Key.rb +0 -57
  109. data/lib/Context/KeyAssignment.rb +0 -31
  110. data/lib/Context/KeyMap.rb +0 -43
  111. data/spec/Context/EnumeratedType_spec.rb +0 -51
  112. data/spec/Context/ExecutionProxy_spec.rb +0 -28
  113. data/spec/Context/Gtk/Key_spec.rb +0 -45
  114. data/spec/Context/KeyAssignment_spec.rb +0 -26
  115. data/spec/Context/KeyMap_spec.rb +0 -64
  116. data/spec/Context/Key_spec.rb +0 -22
  117. data/spec/Context/Widget_spec.rb +0 -15
@@ -1,245 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Context::Gtk::PageView</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Context::Gtk::PageView</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/Context/Views/Gtk/PageView_rb.html">
59
- lib/Context/Views/Gtk/PageView.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../PageView.html">
69
- Context::PageView
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000009">emitDestroyEvent</a>&nbsp;&nbsp;
92
- <a href="#M000008">getWidget</a>&nbsp;&nbsp;
93
- <a href="#M000006">new</a>&nbsp;&nbsp;
94
- <a href="#M000007">open</a>&nbsp;&nbsp;
95
- </div>
96
- </div>
97
-
98
- </div>
99
-
100
-
101
- <!-- if includes -->
102
-
103
- <div id="section">
104
-
105
- <div id="class-list">
106
- <h3 class="section-bar">Classes and Modules</h3>
107
-
108
- Class <a href="PageView/MainWindow.html" class="link">Context::Gtk::PageView::MainWindow</a><br />
109
-
110
- </div>
111
-
112
-
113
-
114
-
115
- <div id="attribute-list">
116
- <h3 class="section-bar">Attributes</h3>
117
-
118
- <div class="name-list">
119
- <table>
120
- <tr class="top-aligned-row context-row">
121
- <td class="context-item-name">mainWindow</td>
122
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
123
- <td class="context-item-desc"></td>
124
- </tr>
125
- </table>
126
- </div>
127
- </div>
128
-
129
-
130
-
131
- <!-- if method_list -->
132
- <div id="methods">
133
- <h3 class="section-bar">Public Class methods</h3>
134
-
135
- <div id="method-M000006" class="method-detail">
136
- <a name="M000006"></a>
137
-
138
- <div class="method-heading">
139
- <a href="#M000006" class="method-signature">
140
- <span class="method-name">new</span><span class="method-args">(context, title=&quot;No Title&quot;)</span>
141
- </a>
142
- </div>
143
-
144
- <div class="method-description">
145
- <p><a class="source-toggle" href="#"
146
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
147
- <div class="method-source-code" id="M000006-source">
148
- <pre>
149
- <span class="ruby-comment cmt"># File lib/Context/Views/Gtk/PageView.rb, line 30</span>
150
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">context</span>, <span class="ruby-identifier">title</span>=<span class="ruby-value str">&quot;No Title&quot;</span>)
151
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">context</span>)
152
- <span class="ruby-ivar">@mainWindow</span> = <span class="ruby-constant">MainWindow</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-keyword kw">self</span>)
153
- <span class="ruby-ivar">@mainWindow</span>.<span class="ruby-identifier">set_default_size</span>(<span class="ruby-value">600</span>, <span class="ruby-value">400</span>)
154
- <span class="ruby-ivar">@widget</span> = <span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Widget</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mainWindow</span>)
155
- <span class="ruby-keyword kw">end</span>
156
- </pre>
157
- </div>
158
- </div>
159
- </div>
160
-
161
- <h3 class="section-bar">Public Instance methods</h3>
162
-
163
- <div id="method-M000009" class="method-detail">
164
- <a name="M000009"></a>
165
-
166
- <div class="method-heading">
167
- <a href="#M000009" class="method-signature">
168
- <span class="method-name">emitDestroyEvent</span><span class="method-args">()</span>
169
- </a>
170
- </div>
171
-
172
- <div class="method-description">
173
- <p><a class="source-toggle" href="#"
174
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
175
- <div class="method-source-code" id="M000009-source">
176
- <pre>
177
- <span class="ruby-comment cmt"># File lib/Context/Views/Gtk/PageView.rb, line 46</span>
178
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">emitDestroyEvent</span>
179
- <span class="ruby-ivar">@mainWindow</span>.<span class="ruby-identifier">signal_emit</span>(<span class="ruby-value str">&quot;destroy&quot;</span>)
180
- <span class="ruby-keyword kw">end</span>
181
- </pre>
182
- </div>
183
- </div>
184
- </div>
185
-
186
- <div id="method-M000008" class="method-detail">
187
- <a name="M000008"></a>
188
-
189
- <div class="method-heading">
190
- <a href="#M000008" class="method-signature">
191
- <span class="method-name">getWidget</span><span class="method-args">()</span>
192
- </a>
193
- </div>
194
-
195
- <div class="method-description">
196
- <p><a class="source-toggle" href="#"
197
- onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
198
- <div class="method-source-code" id="M000008-source">
199
- <pre>
200
- <span class="ruby-comment cmt"># File lib/Context/Views/Gtk/PageView.rb, line 42</span>
201
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getWidget</span>
202
- <span class="ruby-ivar">@widget</span>
203
- <span class="ruby-keyword kw">end</span>
204
- </pre>
205
- </div>
206
- </div>
207
- </div>
208
-
209
- <div id="method-M000007" class="method-detail">
210
- <a name="M000007"></a>
211
-
212
- <div class="method-heading">
213
- <a href="#M000007" class="method-signature">
214
- <span class="method-name">open</span><span class="method-args">()</span>
215
- </a>
216
- </div>
217
-
218
- <div class="method-description">
219
- <p><a class="source-toggle" href="#"
220
- onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
221
- <div class="method-source-code" id="M000007-source">
222
- <pre>
223
- <span class="ruby-comment cmt"># File lib/Context/Views/Gtk/PageView.rb, line 37</span>
224
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>
225
- <span class="ruby-ivar">@mainWindow</span>.<span class="ruby-identifier">show_all</span>
226
- <span class="ruby-ivar">@mainWindow</span>.<span class="ruby-identifier">grab_focus</span>
227
- <span class="ruby-keyword kw">end</span>
228
- </pre>
229
- </div>
230
- </div>
231
- </div>
232
-
233
-
234
- </div>
235
-
236
-
237
- </div>
238
-
239
-
240
- <div id="validator-badges">
241
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
242
- </div>
243
-
244
- </body>
245
- </html>
@@ -1,200 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Context::Gtk::PageView::MainWindow</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Context::Gtk::PageView::MainWindow</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../../files/lib/Context/Views/Gtk/PageView_rb.html">
59
- lib/Context/Views/Gtk/PageView.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Gtk::Window
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000012">closeView</a>&nbsp;&nbsp;
90
- <a href="#M000011">connectSignals</a>&nbsp;&nbsp;
91
- <a href="#M000010">new</a>&nbsp;&nbsp;
92
- </div>
93
- </div>
94
-
95
- </div>
96
-
97
-
98
- <!-- if includes -->
99
-
100
- <div id="section">
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
- <!-- if method_list -->
110
- <div id="methods">
111
- <h3 class="section-bar">Public Class methods</h3>
112
-
113
- <div id="method-M000010" class="method-detail">
114
- <a name="M000010"></a>
115
-
116
- <div class="method-heading">
117
- <a href="#M000010" class="method-signature">
118
- <span class="method-name">new</span><span class="method-args">(title, view)</span>
119
- </a>
120
- </div>
121
-
122
- <div class="method-description">
123
- <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000010-source">
126
- <pre>
127
- <span class="ruby-comment cmt"># File lib/Context/Views/Gtk/PageView.rb, line 11</span>
128
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">view</span>)
129
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">title</span>)
130
- <span class="ruby-ivar">@view</span> = <span class="ruby-identifier">view</span>
131
- <span class="ruby-identifier">connectSignals</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">nil?</span>
132
- <span class="ruby-keyword kw">end</span>
133
- </pre>
134
- </div>
135
- </div>
136
- </div>
137
-
138
- <h3 class="section-bar">Public Instance methods</h3>
139
-
140
- <div id="method-M000012" class="method-detail">
141
- <a name="M000012"></a>
142
-
143
- <div class="method-heading">
144
- <a href="#M000012" class="method-signature">
145
- <span class="method-name">closeView</span><span class="method-args">()</span>
146
- </a>
147
- </div>
148
-
149
- <div class="method-description">
150
- <p><a class="source-toggle" href="#"
151
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
152
- <div class="method-source-code" id="M000012-source">
153
- <pre>
154
- <span class="ruby-comment cmt"># File lib/Context/Views/Gtk/PageView.rb, line 23</span>
155
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closeView</span>
156
- <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">close</span>
157
- <span class="ruby-keyword kw">end</span>
158
- </pre>
159
- </div>
160
- </div>
161
- </div>
162
-
163
- <div id="method-M000011" class="method-detail">
164
- <a name="M000011"></a>
165
-
166
- <div class="method-heading">
167
- <a href="#M000011" class="method-signature">
168
- <span class="method-name">connectSignals</span><span class="method-args">()</span>
169
- </a>
170
- </div>
171
-
172
- <div class="method-description">
173
- <p><a class="source-toggle" href="#"
174
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
175
- <div class="method-source-code" id="M000011-source">
176
- <pre>
177
- <span class="ruby-comment cmt"># File lib/Context/Views/Gtk/PageView.rb, line 17</span>
178
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connectSignals</span>
179
- <span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'destroy'</span>) <span class="ruby-keyword kw">do</span>
180
- <span class="ruby-identifier">closeView</span>
181
- <span class="ruby-keyword kw">end</span>
182
- <span class="ruby-keyword kw">end</span>
183
- </pre>
184
- </div>
185
- </div>
186
- </div>
187
-
188
-
189
- </div>
190
-
191
-
192
- </div>
193
-
194
-
195
- <div id="validator-badges">
196
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
197
- </div>
198
-
199
- </body>
200
- </html>
@@ -1,311 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Context::Gtk::Widget</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Context::Gtk::Widget</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/Context/Gtk/Widget_rb.html">
59
- lib/Context/Gtk/Widget.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../Widget.html">
69
- Context::Widget
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000016">add</a>&nbsp;&nbsp;
92
- <a href="#M000013">inTests</a>&nbsp;&nbsp;
93
- <a href="#M000015">isAMainWindow</a>&nbsp;&nbsp;
94
- <a href="#M000014">new</a>&nbsp;&nbsp;
95
- <a href="#M000017">remove</a>&nbsp;&nbsp;
96
- </div>
97
- </div>
98
-
99
- </div>
100
-
101
-
102
- <!-- if includes -->
103
-
104
- <div id="section">
105
-
106
-
107
-
108
-
109
-
110
- <div id="attribute-list">
111
- <h3 class="section-bar">Attributes</h3>
112
-
113
- <div class="name-list">
114
- <table>
115
- <tr class="top-aligned-row context-row">
116
- <td class="context-item-name">expandHeight</td>
117
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
118
- <td class="context-item-desc"></td>
119
- </tr>
120
- <tr class="top-aligned-row context-row">
121
- <td class="context-item-name">expandHeight</td>
122
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
123
- <td class="context-item-desc"></td>
124
- </tr>
125
- <tr class="top-aligned-row context-row">
126
- <td class="context-item-name">expandWidth</td>
127
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
128
- <td class="context-item-desc"></td>
129
- </tr>
130
- <tr class="top-aligned-row context-row">
131
- <td class="context-item-name">expandWidth</td>
132
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
133
- <td class="context-item-desc"></td>
134
- </tr>
135
- <tr class="top-aligned-row context-row">
136
- <td class="context-item-name">mainWindow</td>
137
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
138
- <td class="context-item-desc"></td>
139
- </tr>
140
- <tr class="top-aligned-row context-row">
141
- <td class="context-item-name">mainWindow</td>
142
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
143
- <td class="context-item-desc"></td>
144
- </tr>
145
- </table>
146
- </div>
147
- </div>
148
-
149
-
150
-
151
- <!-- if method_list -->
152
- <div id="methods">
153
- <h3 class="section-bar">Public Class methods</h3>
154
-
155
- <div id="method-M000013" class="method-detail">
156
- <a name="M000013"></a>
157
-
158
- <div class="method-heading">
159
- <a href="#M000013" class="method-signature">
160
- <span class="method-name">inTests</span><span class="method-args">()</span>
161
- </a>
162
- </div>
163
-
164
- <div class="method-description">
165
- <p>
166
- Redefine this in tests so that the widgets don&#8216;t get displayed on the
167
- screen.
168
- </p>
169
- <p><a class="source-toggle" href="#"
170
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
171
- <div class="method-source-code" id="M000013-source">
172
- <pre>
173
- <span class="ruby-comment cmt"># File lib/Context/Gtk/Widget.rb, line 13</span>
174
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inTests</span>
175
- <span class="ruby-keyword kw">false</span>
176
- <span class="ruby-keyword kw">end</span>
177
- </pre>
178
- </div>
179
- </div>
180
- </div>
181
-
182
- <div id="method-M000014" class="method-detail">
183
- <a name="M000014"></a>
184
-
185
- <div class="method-heading">
186
- <a href="#M000014" class="method-signature">
187
- <span class="method-name">new</span><span class="method-args">(delegate)</span>
188
- </a>
189
- </div>
190
-
191
- <div class="method-description">
192
- <p><a class="source-toggle" href="#"
193
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
194
- <div class="method-source-code" id="M000014-source">
195
- <pre>
196
- <span class="ruby-comment cmt"># File lib/Context/Gtk/Widget.rb, line 18</span>
197
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">delegate</span>)
198
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">delegate</span>)
199
- <span class="ruby-ivar">@mainWindow</span> = <span class="ruby-keyword kw">nil</span>
200
- <span class="ruby-comment cmt"># Packing hints for the container</span>
201
- <span class="ruby-ivar">@expandHeight</span> = <span class="ruby-keyword kw">false</span>
202
- <span class="ruby-ivar">@expandWidth</span> = <span class="ruby-keyword kw">false</span>
203
- <span class="ruby-keyword kw">end</span>
204
- </pre>
205
- </div>
206
- </div>
207
- </div>
208
-
209
- <h3 class="section-bar">Public Instance methods</h3>
210
-
211
- <div id="method-M000016" class="method-detail">
212
- <a name="M000016"></a>
213
-
214
- <div class="method-heading">
215
- <a href="#M000016" class="method-signature">
216
- <span class="method-name">add</span><span class="method-args">(widget)</span>
217
- </a>
218
- </div>
219
-
220
- <div class="method-description">
221
- <p><a class="source-toggle" href="#"
222
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
223
- <div class="method-source-code" id="M000016-source">
224
- <pre>
225
- <span class="ruby-comment cmt"># File lib/Context/Gtk/Widget.rb, line 30</span>
226
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">widget</span>)
227
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">widget</span>.<span class="ruby-identifier">delegate</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Window</span>)
228
- <span class="ruby-identifier">widget</span>.<span class="ruby-identifier">mainWindow</span> = <span class="ruby-ivar">@mainWindow</span>
229
- <span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">widget</span>.<span class="ruby-identifier">delegate</span>)
230
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Widget</span>.<span class="ruby-identifier">inTests</span>
231
- <span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">show_all</span>
232
- <span class="ruby-keyword kw">end</span>
233
- <span class="ruby-keyword kw">else</span>
234
- <span class="ruby-identifier">widget</span>.<span class="ruby-identifier">isAMainWindow</span>
235
- <span class="ruby-identifier">widget</span>.<span class="ruby-identifier">delegate</span>.<span class="ruby-identifier">set_transient_for</span>(<span class="ruby-ivar">@mainWindow</span>)
236
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Widget</span>.<span class="ruby-identifier">inTests</span>
237
- <span class="ruby-identifier">widget</span>.<span class="ruby-identifier">delegate</span>.<span class="ruby-identifier">show_all</span>
238
- <span class="ruby-keyword kw">end</span>
239
- <span class="ruby-keyword kw">end</span>
240
- <span class="ruby-keyword kw">end</span>
241
- </pre>
242
- </div>
243
- </div>
244
- </div>
245
-
246
- <div id="method-M000015" class="method-detail">
247
- <a name="M000015"></a>
248
-
249
- <div class="method-heading">
250
- <a href="#M000015" class="method-signature">
251
- <span class="method-name">isAMainWindow</span><span class="method-args">()</span>
252
- </a>
253
- </div>
254
-
255
- <div class="method-description">
256
- <p><a class="source-toggle" href="#"
257
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
258
- <div class="method-source-code" id="M000015-source">
259
- <pre>
260
- <span class="ruby-comment cmt"># File lib/Context/Gtk/Widget.rb, line 26</span>
261
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">isAMainWindow</span>
262
- <span class="ruby-ivar">@mainWindow</span> = <span class="ruby-ivar">@delegate</span>
263
- <span class="ruby-keyword kw">end</span>
264
- </pre>
265
- </div>
266
- </div>
267
- </div>
268
-
269
- <div id="method-M000017" class="method-detail">
270
- <a name="M000017"></a>
271
-
272
- <div class="method-heading">
273
- <a href="#M000017" class="method-signature">
274
- <span class="method-name">remove</span><span class="method-args">(widget)</span>
275
- </a>
276
- </div>
277
-
278
- <div class="method-description">
279
- <p><a class="source-toggle" href="#"
280
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
281
- <div class="method-source-code" id="M000017-source">
282
- <pre>
283
- <span class="ruby-comment cmt"># File lib/Context/Gtk/Widget.rb, line 46</span>
284
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">widget</span>)
285
- <span class="ruby-identifier">widget</span>.<span class="ruby-identifier">mainWindow</span> = <span class="ruby-keyword kw">nil</span>
286
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">widget</span>.<span class="ruby-identifier">delegate</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Window</span>)
287
- <span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">widget</span>.<span class="ruby-identifier">delegate</span>)
288
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Widget</span>.<span class="ruby-identifier">inTests</span>
289
- <span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">show_all</span>
290
- <span class="ruby-keyword kw">end</span>
291
- <span class="ruby-keyword kw">end</span>
292
- <span class="ruby-ivar">@delegate</span>.<span class="ruby-identifier">grab_focus</span>
293
- <span class="ruby-keyword kw">end</span>
294
- </pre>
295
- </div>
296
- </div>
297
- </div>
298
-
299
-
300
- </div>
301
-
302
-
303
- </div>
304
-
305
-
306
- <div id="validator-badges">
307
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
308
- </div>
309
-
310
- </body>
311
- </html>