my_yard 0.0.3 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +5 -5
  2. data/lib/GlobalSettings.rb +23 -0
  3. data/{src → lib}/MyYard.rb +47 -52
  4. data/{src → lib}/YardTheme.rb +12 -9
  5. data/{src → lib}/glade/MyYard.glade +151 -213
  6. data/{src → lib}/glade/YardTheme.glade +314 -407
  7. data/lib/my_yard.rb +7 -0
  8. data/my_yard +59 -34
  9. metadata +21 -148
  10. data/README.md +0 -25
  11. data/doc/GlobalSettings.html +0 -552
  12. data/doc/MyYard.html +0 -1201
  13. data/doc/TreeContext/Alternator.html +0 -297
  14. data/doc/TreeContext.html +0 -467
  15. data/doc/YardTheme.html +0 -746
  16. data/doc/YardThemeDefaults.html +0 -498
  17. data/doc/_index.html +0 -170
  18. data/doc/class_and_method_list.html +0 -322
  19. data/doc/class_list.html +0 -51
  20. data/doc/css/common.css +0 -45
  21. data/doc/css/full_list.css +0 -58
  22. data/doc/css/style.css +0 -474
  23. data/doc/file.README.html +0 -100
  24. data/doc/file_list.html +0 -56
  25. data/doc/frames.html +0 -17
  26. data/doc/img/logo.png +0 -0
  27. data/doc/index.html +0 -100
  28. data/doc/js/app.js +0 -243
  29. data/doc/js/full_list.js +0 -216
  30. data/doc/js/jquery.js +0 -4
  31. data/doc/just_file_list.html +0 -40
  32. data/doc/method_list.html +0 -843
  33. data/doc/top-level-namespace.html +0 -118
  34. data/home_my_yard/templates/visualruby/class/dot/superklass.erb +0 -3
  35. data/home_my_yard/templates/visualruby/class/html/constructor_details.erb +0 -8
  36. data/home_my_yard/templates/visualruby/class/html/subclasses.erb +0 -4
  37. data/home_my_yard/templates/visualruby/class/text/subclasses.erb +0 -5
  38. data/home_my_yard/templates/visualruby/constant/text/header.erb +0 -11
  39. data/home_my_yard/templates/visualruby/docstring/html/abstract.erb +0 -4
  40. data/home_my_yard/templates/visualruby/docstring/html/deprecated.erb +0 -1
  41. data/home_my_yard/templates/visualruby/docstring/html/index.erb +0 -5
  42. data/home_my_yard/templates/visualruby/docstring/html/note.erb +0 -6
  43. data/home_my_yard/templates/visualruby/docstring/html/private.erb +0 -4
  44. data/home_my_yard/templates/visualruby/docstring/html/returns_void.erb +0 -1
  45. data/home_my_yard/templates/visualruby/docstring/html/text.erb +0 -1
  46. data/home_my_yard/templates/visualruby/docstring/html/todo.erb +0 -6
  47. data/home_my_yard/templates/visualruby/docstring/text/abstract.erb +0 -2
  48. data/home_my_yard/templates/visualruby/docstring/text/deprecated.erb +0 -2
  49. data/home_my_yard/templates/visualruby/docstring/text/index.erb +0 -2
  50. data/home_my_yard/templates/visualruby/docstring/text/note.erb +0 -4
  51. data/home_my_yard/templates/visualruby/docstring/text/private.erb +0 -2
  52. data/home_my_yard/templates/visualruby/docstring/text/returns_void.erb +0 -1
  53. data/home_my_yard/templates/visualruby/docstring/text/text.erb +0 -1
  54. data/home_my_yard/templates/visualruby/docstring/text/todo.erb +0 -4
  55. data/home_my_yard/templates/visualruby/fulldoc/html/class_and_method.erb +0 -42
  56. data/home_my_yard/templates/visualruby/fulldoc/html/css/common.css +0 -1
  57. data/home_my_yard/templates/visualruby/fulldoc/html/css/full_list.css +0 -62
  58. data/home_my_yard/templates/visualruby/fulldoc/html/css/style.css +0 -476
  59. data/home_my_yard/templates/visualruby/fulldoc/html/frames.erb +0 -17
  60. data/home_my_yard/templates/visualruby/fulldoc/html/full_list.erb +0 -37
  61. data/home_my_yard/templates/visualruby/fulldoc/html/full_list_class.erb +0 -2
  62. data/home_my_yard/templates/visualruby/fulldoc/html/full_list_file.erb +0 -7
  63. data/home_my_yard/templates/visualruby/fulldoc/html/full_list_method.erb +0 -10
  64. data/home_my_yard/templates/visualruby/fulldoc/html/js/app.js +0 -243
  65. data/home_my_yard/templates/visualruby/fulldoc/html/js/full_list.js +0 -213
  66. data/home_my_yard/templates/visualruby/fulldoc/html/js/jquery.js +0 -4
  67. data/home_my_yard/templates/visualruby/fulldoc/html/just_files.erb +0 -33
  68. data/home_my_yard/templates/visualruby/layout/dot/header.erb +0 -6
  69. data/home_my_yard/templates/visualruby/layout/html/breadcrumb.erb +0 -11
  70. data/home_my_yard/templates/visualruby/layout/html/files.erb +0 -11
  71. data/home_my_yard/templates/visualruby/layout/html/footer.erb +0 -5
  72. data/home_my_yard/templates/visualruby/layout/html/headers.erb +0 -15
  73. data/home_my_yard/templates/visualruby/layout/html/index.erb +0 -2
  74. data/home_my_yard/templates/visualruby/layout/html/layout.erb +0 -30
  75. data/home_my_yard/templates/visualruby/layout/html/listing.erb +0 -4
  76. data/home_my_yard/templates/visualruby/layout/html/objects.erb +0 -32
  77. data/home_my_yard/templates/visualruby/layout/html/script_setup.erb +0 -4
  78. data/home_my_yard/templates/visualruby/layout/html/search.erb +0 -13
  79. data/home_my_yard/templates/visualruby/method/html/header.erb +0 -17
  80. data/home_my_yard/templates/visualruby/method/text/header.erb +0 -1
  81. data/home_my_yard/templates/visualruby/method_details/html/header.erb +0 -3
  82. data/home_my_yard/templates/visualruby/method_details/html/method_signature.erb +0 -25
  83. data/home_my_yard/templates/visualruby/method_details/html/source.erb +0 -10
  84. data/home_my_yard/templates/visualruby/method_details/text/header.erb +0 -10
  85. data/home_my_yard/templates/visualruby/method_details/text/method_signature.erb +0 -12
  86. data/home_my_yard/templates/visualruby/module/dot/child.erb +0 -1
  87. data/home_my_yard/templates/visualruby/module/dot/dependencies.erb +0 -3
  88. data/home_my_yard/templates/visualruby/module/dot/header.erb +0 -6
  89. data/home_my_yard/templates/visualruby/module/dot/info.erb +0 -14
  90. data/home_my_yard/templates/visualruby/module/html/attribute_details.erb +0 -10
  91. data/home_my_yard/templates/visualruby/module/html/attribute_summary.erb +0 -8
  92. data/home_my_yard/templates/visualruby/module/html/box_info.erb +0 -43
  93. data/home_my_yard/templates/visualruby/module/html/children.erb +0 -8
  94. data/home_my_yard/templates/visualruby/module/html/constant_summary.erb +0 -13
  95. data/home_my_yard/templates/visualruby/module/html/defines.erb +0 -3
  96. data/home_my_yard/templates/visualruby/module/html/header.erb +0 -5
  97. data/home_my_yard/templates/visualruby/module/html/inherited_attributes.erb +0 -14
  98. data/home_my_yard/templates/visualruby/module/html/inherited_constants.erb +0 -8
  99. data/home_my_yard/templates/visualruby/module/html/inherited_methods.erb +0 -19
  100. data/home_my_yard/templates/visualruby/module/html/item_summary.erb +0 -40
  101. data/home_my_yard/templates/visualruby/module/html/method_details_list.erb +0 -9
  102. data/home_my_yard/templates/visualruby/module/html/method_summary.erb +0 -14
  103. data/home_my_yard/templates/visualruby/module/html/methodmissing.erb +0 -12
  104. data/home_my_yard/templates/visualruby/module/html/pre_docstring.erb +0 -1
  105. data/home_my_yard/templates/visualruby/module/text/children.erb +0 -10
  106. data/home_my_yard/templates/visualruby/module/text/class_meths_list.erb +0 -8
  107. data/home_my_yard/templates/visualruby/module/text/extends.erb +0 -8
  108. data/home_my_yard/templates/visualruby/module/text/header.erb +0 -7
  109. data/home_my_yard/templates/visualruby/module/text/includes.erb +0 -8
  110. data/home_my_yard/templates/visualruby/module/text/instance_meths_list.erb +0 -8
  111. data/home_my_yard/templates/visualruby/onefile/html/files.erb +0 -5
  112. data/home_my_yard/templates/visualruby/onefile/html/headers.erb +0 -6
  113. data/home_my_yard/templates/visualruby/onefile/html/layout.erb +0 -17
  114. data/home_my_yard/templates/visualruby/onefile/html/readme.erb +0 -3
  115. data/home_my_yard/templates/visualruby/root/dot/child.erb +0 -3
  116. data/home_my_yard/templates/visualruby/tags/html/example.erb +0 -11
  117. data/home_my_yard/templates/visualruby/tags/html/index.erb +0 -3
  118. data/home_my_yard/templates/visualruby/tags/html/option.erb +0 -24
  119. data/home_my_yard/templates/visualruby/tags/html/overload.erb +0 -14
  120. data/home_my_yard/templates/visualruby/tags/html/see.erb +0 -8
  121. data/home_my_yard/templates/visualruby/tags/html/tag.erb +0 -20
  122. data/home_my_yard/templates/visualruby/tags/text/example.erb +0 -12
  123. data/home_my_yard/templates/visualruby/tags/text/index.erb +0 -1
  124. data/home_my_yard/templates/visualruby/tags/text/option.erb +0 -20
  125. data/home_my_yard/templates/visualruby/tags/text/overload.erb +0 -19
  126. data/home_my_yard/templates/visualruby/tags/text/see.erb +0 -11
  127. data/home_my_yard/templates/visualruby/tags/text/tag.erb +0 -13
  128. data/home_my_yard/themes/visualruby.yaml +0 -47
  129. data/my_yard-0.0.2.gem +0 -0
  130. data/my_yard.gemspec +0 -20
  131. data/notes +0 -9
  132. data/src/GlobalSettings.rb +0 -22
  133. data/src/glade/MyYard.glade~ +0 -611
  134. data/src/glade/YardTheme.glade~ +0 -1062
  135. /data/{src → lib}/YardThemeDefaults.rb +0 -0
data/doc/YardTheme.html DELETED
@@ -1,746 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: YardTheme
8
-
9
- &mdash; Generated with Yard v0.9.0
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "YardTheme";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (Y)</a> &raquo;
40
-
41
-
42
- <span class="title">YardTheme</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <iframe id="search_frame" src="class_list.html"></iframe>
63
-
64
- <div id="content"><h1>Class: YardTheme
65
-
66
-
67
-
68
- </h1>
69
- <div class="box_info">
70
-
71
- <dl>
72
- <dt>Inherits:</dt>
73
- <dd>
74
- <span class="inheritName">Object</span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next">YardTheme</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
- <dl>
93
- <dt>Includes:</dt>
94
- <dd>GladeGUI, <span class='object_link'><a href="YardThemeDefaults.html" title="YardThemeDefaults (module)">YardThemeDefaults</a></span></dd>
95
- </dl>
96
-
97
-
98
-
99
-
100
-
101
-
102
- <dl>
103
- <dt>Defined in:</dt>
104
- <dd>src/YardTheme.rb</dd>
105
- </dl>
106
-
107
- </div>
108
-
109
-
110
-
111
-
112
-
113
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
114
- <ul class="summary">
115
-
116
- <li class="public ">
117
- <span class="summary_signature">
118
-
119
- <a href="#css-instance_method" title="#css (instance method)">#<strong>css</strong> &#x21d2; Object </a>
120
-
121
-
122
-
123
- </span>
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- <span class="summary_desc"><div class='inline'>
137
- <p>Returns the value of attribute css.</p>
138
- </div></span>
139
-
140
- </li>
141
-
142
-
143
- </ul>
144
-
145
-
146
-
147
-
148
-
149
- <h2>
150
- Instance Method Summary
151
- <small><a href="#" class="summary_toggle">collapse</a></small>
152
- </h2>
153
-
154
- <ul class="summary">
155
-
156
- <li class="public ">
157
- <span class="summary_signature">
158
-
159
- <a href="#before_show-instance_method" title="#before_show (instance method)">#<strong>before_show</strong> &#x21d2; Object </a>
160
-
161
-
162
-
163
- </span>
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
- <span class="summary_desc"><div class='inline'></div></span>
174
-
175
- </li>
176
-
177
-
178
- <li class="public ">
179
- <span class="summary_signature">
180
-
181
- <a href="#buttonClone__clicked-instance_method" title="#buttonClone__clicked (instance method)">#<strong>buttonClone__clicked</strong>(*a) &#x21d2; Object </a>
182
-
183
-
184
-
185
- </span>
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
- <span class="summary_desc"><div class='inline'></div></span>
196
-
197
- </li>
198
-
199
-
200
- <li class="public ">
201
- <span class="summary_signature">
202
-
203
- <a href="#export_to-instance_method" title="#export_to (instance method)">#<strong>export_to</strong>(file) &#x21d2; Object </a>
204
-
205
-
206
-
207
- </span>
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
- <span class="summary_desc"><div class='inline'></div></span>
218
-
219
- </li>
220
-
221
-
222
- <li class="public ">
223
- <span class="summary_signature">
224
-
225
- <a href="#import_google_fonts-instance_method" title="#import_google_fonts (instance method)">#<strong>import_google_fonts</strong> &#x21d2; Object </a>
226
-
227
-
228
-
229
- </span>
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
- <span class="summary_desc"><div class='inline'></div></span>
240
-
241
- </li>
242
-
243
-
244
- <li class="public ">
245
- <span class="summary_signature">
246
-
247
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; YardTheme </a>
248
-
249
-
250
-
251
- </span>
252
-
253
-
254
- <span class="note title constructor">constructor</span>
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
- <span class="summary_desc"><div class='inline'>
264
- <p>A new instance of YardTheme.</p>
265
- </div></span>
266
-
267
- </li>
268
-
269
-
270
- <li class="public ">
271
- <span class="summary_signature">
272
-
273
- <a href="#save_state-instance_method" title="#save_state (instance method)">#<strong>save_state</strong> &#x21d2; Object </a>
274
-
275
-
276
-
277
- </span>
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
- <span class="summary_desc"><div class='inline'></div></span>
288
-
289
- </li>
290
-
291
-
292
- <li class="public ">
293
- <span class="summary_signature">
294
-
295
- <a href="#to_css-instance_method" title="#to_css (instance method)">#<strong>to_css</strong> &#x21d2; Object </a>
296
-
297
-
298
-
299
- </span>
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
- <span class="summary_desc"><div class='inline'></div></span>
310
-
311
- </li>
312
-
313
-
314
- <li class="public ">
315
- <span class="summary_signature">
316
-
317
- <a href="#window1__destroy-instance_method" title="#window1__destroy (instance method)">#<strong>window1__destroy</strong>(*a) &#x21d2; Object </a>
318
-
319
-
320
-
321
- </span>
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
- <span class="summary_desc"><div class='inline'></div></span>
332
-
333
- </li>
334
-
335
-
336
- </ul>
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
- <h3 class="inherited">Methods included from <span class='object_link'><a href="YardThemeDefaults.html" title="YardThemeDefaults (module)">YardThemeDefaults</a></span></h3>
349
- <p class="inherited"><span class='object_link'><a href="YardThemeDefaults.html#defaults-instance_method" title="YardThemeDefaults#defaults (method)">#defaults</a></span>, <span class='object_link'><a href="YardThemeDefaults.html#maps-instance_method" title="YardThemeDefaults#maps (method)">#maps</a></span>, <span class='object_link'><a href="YardThemeDefaults.html#prune-instance_method" title="YardThemeDefaults#prune (method)">#prune</a></span></p>
350
-
351
- <div id="constructor_details" class="method_details_list">
352
- <h2>Constructor Details</h2>
353
-
354
- <div class="method_details first">
355
- <h3 class="signature first" id="initialize-instance_method">
356
-
357
- #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="YardTheme (class)">YardTheme</a></span></tt>
358
-
359
-
360
-
361
-
362
-
363
- </h3><div class="docstring">
364
- <div class="discussion">
365
-
366
- <p>Returns a new instance of YardTheme</p>
367
-
368
-
369
- </div>
370
- </div>
371
- <div class="tags">
372
-
373
-
374
- </div><table class="source_code">
375
- <tr>
376
- <td>
377
- <pre class="lines">
378
-
379
-
380
- 8
381
- 9
382
- 10</pre>
383
- </td>
384
- <td>
385
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 8</span>
386
-
387
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
388
- <span class='id identifier rubyid_defaults'>defaults</span>
389
- <span class='kw'>end</span></pre>
390
- </td>
391
- </tr>
392
- </table>
393
- </div>
394
-
395
- </div>
396
-
397
- <div id="instance_attr_details" class="attr_details">
398
- <h2>Instance Attribute Details</h2>
399
-
400
-
401
- <span id="css=-instance_method"></span>
402
- <div class="method_details first">
403
- <h3 class="signature first" id="css-instance_method">
404
-
405
- #<strong>css</strong> &#x21d2; <tt>Object</tt>
406
-
407
-
408
-
409
-
410
-
411
- </h3><div class="docstring">
412
- <div class="discussion">
413
-
414
- <p>Returns the value of attribute css</p>
415
-
416
-
417
- </div>
418
- </div>
419
- <div class="tags">
420
-
421
-
422
- </div><table class="source_code">
423
- <tr>
424
- <td>
425
- <pre class="lines">
426
-
427
-
428
- 6
429
- 7
430
- 8</pre>
431
- </td>
432
- <td>
433
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 6</span>
434
-
435
- <span class='kw'>def</span> <span class='id identifier rubyid_css'>css</span>
436
- <span class='ivar'>@css</span>
437
- <span class='kw'>end</span></pre>
438
- </td>
439
- </tr>
440
- </table>
441
- </div>
442
-
443
- </div>
444
-
445
-
446
- <div id="instance_method_details" class="method_details_list">
447
- <h2>Instance Method Details</h2>
448
-
449
-
450
- <div class="method_details first">
451
- <h3 class="signature first" id="before_show-instance_method">
452
-
453
- #<strong>before_show</strong> &#x21d2; <tt>Object</tt>
454
-
455
-
456
-
457
-
458
-
459
- </h3><table class="source_code">
460
- <tr>
461
- <td>
462
- <pre class="lines">
463
-
464
-
465
- 12
466
- 13
467
- 14
468
- 15
469
- 16
470
- 17
471
- 18
472
- 19</pre>
473
- </td>
474
- <td>
475
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 12</span>
476
-
477
- <span class='kw'>def</span> <span class='id identifier rubyid_before_show'>before_show</span>
478
- <span class='id identifier rubyid_theme'>theme</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='ivar'>@vr_yaml_file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.*</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
479
- <span class='kw'>if</span> <span class='id identifier rubyid_theme'>theme</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>default</span><span class='tstring_end'>&quot;</span></span>
480
- <span class='id identifier rubyid_alert'>alert</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>The default theme can&#39;t be edited. Make a clone of it, and edit the clone.</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
481
- <span class='label'>parent:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>width:</span> <span class='int'>300</span>
482
- <span class='kw'>end</span>
483
- <span class='ivar'>@builder</span><span class='lbracket'>[</span><span class='symbol'>:headline</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_label'>label</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&lt;big&gt;Theme: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_theme'>theme</span><span class='embexpr_end'>}</span><span class='tstring_content'> &lt;/big&gt;</span><span class='tstring_end'>&quot;</span></span>
484
- <span class='kw'>end</span></pre>
485
- </td>
486
- </tr>
487
- </table>
488
- </div>
489
-
490
- <div class="method_details ">
491
- <h3 class="signature " id="buttonClone__clicked-instance_method">
492
-
493
- #<strong>buttonClone__clicked</strong>(*a) &#x21d2; <tt>Object</tt>
494
-
495
-
496
-
497
-
498
-
499
- </h3><table class="source_code">
500
- <tr>
501
- <td>
502
- <pre class="lines">
503
-
504
-
505
- 47
506
- 48
507
- 49
508
- 50
509
- 51
510
- 52
511
- 53
512
- 54
513
- 55
514
- 56
515
- 57
516
- 58
517
- 59
518
- 60
519
- 61
520
- 62
521
- 63
522
- 64
523
- 65</pre>
524
- </td>
525
- <td>
526
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 47</span>
527
-
528
- <span class='kw'>def</span> <span class='id identifier rubyid_buttonClone__clicked'>buttonClone__clicked</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_a'>a</span><span class='rparen'>)</span>
529
- <span class='kw'>if</span> <span class='id identifier rubyid_clone'>clone</span> <span class='op'>=</span> <span class='id identifier rubyid_alert'>alert</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>This will make a clone of this theme. </span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
530
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Enter the name of the new theme without any extension (only letters and underscores).</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
531
- <span class='label'>headline:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Clone Theme</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
532
- <span class='label'>button_no:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cancel</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
533
- <span class='label'>input_text:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
534
- <span class='label'>width:</span> <span class='int'>350</span><span class='comma'>,</span>
535
- <span class='label'>parent:</span> <span class='kw'>self</span><span class='rparen'>)</span>
536
- <span class='comment'># todo lowercase, strip, replace everything except letters, numbers and underscores.
537
- </span> <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='gvar'>$env</span><span class='period'>.</span><span class='id identifier rubyid_theme_root'>theme_root</span><span class='comma'>,</span> <span class='id identifier rubyid_clone'>clone</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.yaml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
538
- <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
539
- <span class='id identifier rubyid_alert'>alert</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>The file, &lt;b&gt;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_clone'>clone</span><span class='embexpr_end'>}</span><span class='tstring_content'>&lt;/b&gt; already exists.</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='label'>parent:</span> <span class='kw'>self</span>
540
- <span class='kw'>else</span>
541
- <span class='id identifier rubyid_get_glade_variables'>get_glade_variables</span>
542
- <span class='const'>VR</span><span class='op'>::</span><span class='id identifier rubyid_save_yaml'>save_yaml</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
543
- <span class='ivar'>@builder</span><span class='lbracket'>[</span><span class='symbol'>:headline</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_label'>label</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Theme: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_clone'>clone</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
544
- <span class='kw'>end</span>
545
- <span class='kw'>end</span>
546
- <span class='kw'>end</span></pre>
547
- </td>
548
- </tr>
549
- </table>
550
- </div>
551
-
552
- <div class="method_details ">
553
- <h3 class="signature " id="export_to-instance_method">
554
-
555
- #<strong>export_to</strong>(file) &#x21d2; <tt>Object</tt>
556
-
557
-
558
-
559
-
560
-
561
- </h3><table class="source_code">
562
- <tr>
563
- <td>
564
- <pre class="lines">
565
-
566
-
567
- 21
568
- 22
569
- 23</pre>
570
- </td>
571
- <td>
572
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 21</span>
573
-
574
- <span class='kw'>def</span> <span class='id identifier rubyid_export_to'>export_to</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
575
- <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_to_css'>to_css</span> <span class='rbrace'>}</span>
576
- <span class='kw'>end</span></pre>
577
- </td>
578
- </tr>
579
- </table>
580
- </div>
581
-
582
- <div class="method_details ">
583
- <h3 class="signature " id="import_google_fonts-instance_method">
584
-
585
- #<strong>import_google_fonts</strong> &#x21d2; <tt>Object</tt>
586
-
587
-
588
-
589
-
590
-
591
- </h3><table class="source_code">
592
- <tr>
593
- <td>
594
- <pre class="lines">
595
-
596
-
597
- 37
598
- 38
599
- 39
600
- 40
601
- 41
602
- 42
603
- 43
604
- 44
605
- 45</pre>
606
- </td>
607
- <td>
608
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 37</span>
609
-
610
- <span class='kw'>def</span> <span class='id identifier rubyid_import_google_fonts'>import_google_fonts</span><span class='lparen'>(</span><span class='rparen'>)</span>
611
- <span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
612
- <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>h1</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>h2</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>h3</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#toc</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.object_link</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#main p</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_tag'>tag</span><span class='op'>|</span>
613
- <span class='id identifier rubyid_font'>font</span> <span class='op'>=</span> <span class='ivar'>@css</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tag'>tag</span><span class='embexpr_end'>}</span><span class='tstring_content'> {font-family}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
614
- <span class='id identifier rubyid_weight'>weight</span> <span class='op'>=</span> <span class='ivar'>@css</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tag'>tag</span><span class='embexpr_end'>}</span><span class='tstring_content'> {font-weight}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>:</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span> <span class='ivar'>@css</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tag'>tag</span><span class='embexpr_end'>}</span><span class='tstring_content'> {font-weight}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
615
- <span class='id identifier rubyid_lines'>lines</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@import url(&#39;https://fonts.googleapis.com/css?family=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_font'>font</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>+</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_weight'>weight</span><span class='embexpr_end'>}</span><span class='tstring_content'>&#39;);\n</span><span class='tstring_end'>&quot;</span></span>
616
- <span class='kw'>end</span>
617
- <span class='kw'>return</span> <span class='id identifier rubyid_lines'>lines</span><span class='period'>.</span><span class='id identifier rubyid_uniq!'>uniq!</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span>
618
- <span class='kw'>end</span></pre>
619
- </td>
620
- </tr>
621
- </table>
622
- </div>
623
-
624
- <div class="method_details ">
625
- <h3 class="signature " id="save_state-instance_method">
626
-
627
- #<strong>save_state</strong> &#x21d2; <tt>Object</tt>
628
-
629
-
630
-
631
-
632
-
633
- </h3><table class="source_code">
634
- <tr>
635
- <td>
636
- <pre class="lines">
637
-
638
-
639
- 72
640
- 73
641
- 74
642
- 75</pre>
643
- </td>
644
- <td>
645
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 72</span>
646
-
647
- <span class='kw'>def</span> <span class='id identifier rubyid_save_state'>save_state</span>
648
- <span class='id identifier rubyid_get_glade_variables'>get_glade_variables</span>
649
- <span class='const'>VR</span><span class='op'>::</span><span class='id identifier rubyid_save_yaml'>save_yaml</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
650
- <span class='kw'>end</span></pre>
651
- </td>
652
- </tr>
653
- </table>
654
- </div>
655
-
656
- <div class="method_details ">
657
- <h3 class="signature " id="to_css-instance_method">
658
-
659
- #<strong>to_css</strong> &#x21d2; <tt>Object</tt>
660
-
661
-
662
-
663
-
664
-
665
- </h3><table class="source_code">
666
- <tr>
667
- <td>
668
- <pre class="lines">
669
-
670
-
671
- 25
672
- 26
673
- 27
674
- 28
675
- 29
676
- 30
677
- 31
678
- 32
679
- 33
680
- 34
681
- 35</pre>
682
- </td>
683
- <td>
684
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 25</span>
685
-
686
- <span class='kw'>def</span> <span class='id identifier rubyid_to_css'>to_css</span>
687
- <span class='id identifier rubyid_maps'>maps</span><span class='lparen'>(</span><span class='rparen'>)</span>
688
- <span class='id identifier rubyid_out'>out</span> <span class='op'>=</span> <span class='id identifier rubyid_import_google_fonts'>import_google_fonts</span><span class='lparen'>(</span><span class='rparen'>)</span>
689
- <span class='ivar'>@css</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='op'>|</span>
690
- <span class='kw'>if</span> <span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span> <span class='comment'># and val != $default_theme.css[key]
691
- </span> <span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&#39;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_val'>val</span><span class='embexpr_end'>}</span><span class='tstring_content'>&#39;</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>{font-family}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='comment'># quotes around font names
692
- </span> <span class='id identifier rubyid_out'>out</span> <span class='op'>=</span> <span class='id identifier rubyid_out'>out</span> <span class='op'>+</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_val'>val</span><span class='embexpr_end'>}</span><span class='tstring_content'>;</span><span class='tstring_end'>&quot;</span></span> <span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>}\n</span><span class='tstring_end'>&quot;</span></span>
693
- <span class='kw'>end</span>
694
- <span class='kw'>end</span>
695
- <span class='kw'>return</span> <span class='id identifier rubyid_out'>out</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#search { position: static; } .fixed_header { position: static; height: auto;} #full_list {margin-top: 0px;}</span><span class='tstring_end'>&quot;</span></span>
696
- <span class='kw'>end</span></pre>
697
- </td>
698
- </tr>
699
- </table>
700
- </div>
701
-
702
- <div class="method_details ">
703
- <h3 class="signature " id="window1__destroy-instance_method">
704
-
705
- #<strong>window1__destroy</strong>(*a) &#x21d2; <tt>Object</tt>
706
-
707
-
708
-
709
-
710
-
711
- </h3><table class="source_code">
712
- <tr>
713
- <td>
714
- <pre class="lines">
715
-
716
-
717
- 67
718
- 68
719
- 69
720
- 70</pre>
721
- </td>
722
- <td>
723
- <pre class="code"><span class="info file"># File 'src/YardTheme.rb', line 67</span>
724
-
725
- <span class='kw'>def</span> <span class='id identifier rubyid_window1__destroy'>window1__destroy</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_a'>a</span><span class='rparen'>)</span>
726
- <span class='id identifier rubyid_save_state'>save_state</span> <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='ivar'>@vr_yaml_file</span><span class='rparen'>)</span> <span class='comment'># maybe deleted
727
- </span> <span class='kw'>super</span>
728
- <span class='kw'>end</span></pre>
729
- </td>
730
- </tr>
731
- </table>
732
- </div>
733
-
734
- </div>
735
-
736
- </div>
737
-
738
- <div id="footer">
739
- Generated on Wed Aug 3 17:54:47 2016 by
740
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
741
- 0.9.0 (ruby-2.3.0).
742
- </div>
743
-
744
- </div>
745
- </body>
746
- </html>