Module: Tk::TreeCtrl::ConfigMethod
Constant Summary
Constants included
from TkUtil
TkUtil::None, TkUtil::RELEASE_DATE
Instance Method Summary
collapse
-
#column_cget(tagOrId, option) ⇒ Object
-
#column_configinfo(tagOrId, slot = nil) ⇒ Object
-
#column_configure(tagOrId, slot, value = None) ⇒ Object
-
#column_dragcget(option) ⇒ Object
-
#column_dragconfiginfo(slot = nil) ⇒ Object
-
#column_dragconfigure(slot, value = None) ⇒ Object
-
#current_column_configinfo(tagOrId, slot = nil) ⇒ Object
-
#current_column_dragconfiginfo(slot = nil) ⇒ Object
-
#current_debug_configinfo(slot = nil) ⇒ Object
-
#current_dragimage_configinfo(slot = nil) ⇒ Object
-
#current_element_configinfo(tagOrId, slot = nil) ⇒ Object
-
#current_item_configinfo(tagOrId, slot = nil) ⇒ Object
-
#current_item_element_configinfo(item, column, elem, slot = nil) ⇒ Object
-
#current_marquee_configinfo(slot = nil) ⇒ Object
-
#current_style_configinfo(tagOrId, slot = nil) ⇒ Object
-
#debug_cget(option) ⇒ Object
-
#debug_configinfo(slot = nil) ⇒ Object
-
#debug_configure(slot, value = None) ⇒ Object
-
#dragimage_cget(option) ⇒ Object
-
#dragimage_configinfo(slot = nil) ⇒ Object
-
#dragimage_configure(slot, value = None) ⇒ Object
-
#element_cget(tagOrId, option) ⇒ Object
-
#element_configinfo(tagOrId, slot = nil) ⇒ Object
-
#element_configure(tagOrId, slot, value = None) ⇒ Object
-
#item_cget(tagOrId, option) ⇒ Object
-
#item_configinfo(tagOrId, slot = nil) ⇒ Object
-
#item_configure(tagOrId, slot, value = None) ⇒ Object
-
#item_element_cget(item, column, elem, option) ⇒ Object
-
#item_element_configinfo(item, column, elem, slot = nil) ⇒ Object
-
#item_element_configure(item, column, elem, slot, value = None) ⇒ Object
-
#marquee_cget(option) ⇒ Object
-
#marquee_configinfo(slot = nil) ⇒ Object
-
#marquee_configure(slot, value = None) ⇒ Object
-
#notify_cget(win, pattern, option) ⇒ Object
-
#notify_configinfo(win, pattern, slot = nil) ⇒ Object
(also: #current_notify_configinfo)
-
#notify_configure(win, pattern, slot, value = None) ⇒ Object
-
#style_cget(tagOrId, option) ⇒ Object
-
#style_configinfo(tagOrId, slot = nil) ⇒ Object
-
#style_configure(tagOrId, slot, value = None) ⇒ Object
-
#tagid(mixed_id) ⇒ Object
-
#treectrl_tagid(key, obj) ⇒ Object
#current_itemconfiginfo, #itemcget, #itemconfiginfo, #itemconfigure
#__conv_item_keyonly_opts, #itemconfig_hash_kv
Methods included from TkUtil
_conv_args, #_conv_args, #_fromUTF8, _get_eval_enc_str, #_get_eval_enc_str, #_get_eval_string, _get_eval_string, _symbolkey2str, #_symbolkey2str, #_toUTF8, bool, #bool, callback, eval_cmd, #hash_kv, hash_kv, install_cmd, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd
#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy
Instance Method Details
#column_cget(tagOrId, option) ⇒ Object
399
400
401
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 399
def column_cget(tagOrId, option)
itemcget(['column', tagOrId], option)
end
|
#column_configinfo(tagOrId, slot = nil) ⇒ Object
405
406
407
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 405
def column_configinfo(tagOrId, slot=nil)
itemconfiginfo(['column', tagOrId], slot)
end
|
402
403
404
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 402
def column_configure(tagOrId, slot, value=None)
itemconfigure(['column', tagOrId], slot, value)
end
|
#column_dragcget(option) ⇒ Object
412
413
414
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 412
def column_dragcget(option)
itemcget(['column', 'drag'], option)
end
|
#column_dragconfiginfo(slot = nil) ⇒ Object
418
419
420
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 418
def column_dragconfiginfo(slot=nil)
itemconfiginfo(['column', 'drag'], slot)
end
|
415
416
417
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 415
def column_dragconfigure(slot, value=None)
itemconfigure(['column', 'drag'], slot, value)
end
|
#current_column_configinfo(tagOrId, slot = nil) ⇒ Object
408
409
410
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 408
def current_column_configinfo(tagOrId, slot=nil)
current_itemconfiginfo(['column', tagOrId], slot)
end
|
#current_column_dragconfiginfo(slot = nil) ⇒ Object
421
422
423
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 421
def current_column_dragconfiginfo(slot=nil)
current_itemconfiginfo(['column', 'drag'], slot)
end
|
#current_debug_configinfo(slot = nil) ⇒ Object
434
435
436
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 434
def current_debug_configinfo(slot=nil)
current_itemconfiginfo('debug', slot)
end
|
#current_dragimage_configinfo(slot = nil) ⇒ Object
447
448
449
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 447
def current_dragimage_configinfo(slot=nil)
current_itemconfiginfo('dragimage', slot)
end
|
#current_element_configinfo(tagOrId, slot = nil) ⇒ Object
460
461
462
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 460
def current_element_configinfo(tagOrId, slot=nil)
current_itemconfiginfo(['element', tagOrId], slot)
end
|
#current_item_configinfo(tagOrId, slot = nil) ⇒ Object
473
474
475
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 473
def current_item_configinfo(tagOrId, slot=nil)
current_itemconfiginfo(['item', tagOrId], slot)
end
|
#current_item_element_configinfo(item, column, elem, slot = nil) ⇒ Object
486
487
488
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 486
def current_item_element_configinfo(item, column, elem, slot=nil)
current_itemconfiginfo([['item', 'element'], [item, column, elem]], slot)
end
|
#current_marquee_configinfo(slot = nil) ⇒ Object
499
500
501
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 499
def current_marquee_configinfo(slot=nil)
current_itemconfiginfo('marquee', slot)
end
|
#current_style_configinfo(tagOrId, slot = nil) ⇒ Object
526
527
528
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 526
def current_style_configinfo(tagOrId, slot=nil)
current_itemconfiginfo(['style', tagOrId], slot)
end
|
#debug_cget(option) ⇒ Object
425
426
427
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 425
def debug_cget(option)
itemcget('debug', option)
end
|
#debug_configinfo(slot = nil) ⇒ Object
431
432
433
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 431
def debug_configinfo(slot=nil)
itemconfiginfo('debug', slot)
end
|
428
429
430
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 428
def debug_configure(slot, value=None)
itemconfigure('debug', slot, value)
end
|
#dragimage_cget(option) ⇒ Object
438
439
440
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 438
def dragimage_cget(option)
itemcget('dragimage', option)
end
|
#dragimage_configinfo(slot = nil) ⇒ Object
444
445
446
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 444
def dragimage_configinfo(slot=nil)
itemconfiginfo('dragimage', slot)
end
|
441
442
443
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 441
def dragimage_configure(slot, value=None)
itemconfigure('dragimage', slot, value)
end
|
#element_cget(tagOrId, option) ⇒ Object
451
452
453
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 451
def element_cget(tagOrId, option)
itemcget(['element', tagOrId], option)
end
|
#element_configinfo(tagOrId, slot = nil) ⇒ Object
457
458
459
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 457
def element_configinfo(tagOrId, slot=nil)
itemconfiginfo(['element', tagOrId], slot)
end
|
454
455
456
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 454
def element_configure(tagOrId, slot, value=None)
itemconfigure(['element', tagOrId], slot, value)
end
|
#item_cget(tagOrId, option) ⇒ Object
464
465
466
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 464
def item_cget(tagOrId, option)
itemcget(['item', tagOrId], option)
end
|
#item_configinfo(tagOrId, slot = nil) ⇒ Object
470
471
472
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 470
def item_configinfo(tagOrId, slot=nil)
itemconfiginfo(['item', tagOrId], slot)
end
|
467
468
469
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 467
def item_configure(tagOrId, slot, value=None)
itemconfigure(['item', tagOrId], slot, value)
end
|
#item_element_cget(item, column, elem, option) ⇒ Object
477
478
479
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 477
def item_element_cget(item, column, elem, option)
itemcget([['item', 'element'], [item, column, elem]], option)
end
|
#item_element_configinfo(item, column, elem, slot = nil) ⇒ Object
483
484
485
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 483
def item_element_configinfo(item, column, elem, slot=nil)
itemconfiginfo([['item', 'element'], [item, column, elem]], slot)
end
|
480
481
482
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 480
def item_element_configure(item, column, elem, slot, value=None)
itemconfigure([['item', 'element'], [item, column, elem]], slot, value)
end
|
#marquee_cget(option) ⇒ Object
490
491
492
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 490
def marquee_cget(option)
itemcget('marquee', option)
end
|
#marquee_configinfo(slot = nil) ⇒ Object
496
497
498
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 496
def marquee_configinfo(slot=nil)
itemconfiginfo('marquee', slot)
end
|
493
494
495
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 493
def marquee_configure(slot, value=None)
itemconfigure('marquee', slot, value)
end
|
#notify_cget(win, pattern, option) ⇒ Object
503
504
505
506
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 503
def notify_cget(win, pattern, option)
pattern = "<#{pattern}>"
itemconfigure(['notify', [win, pattern]], option)
end
|
#notify_configinfo(win, pattern, slot = nil) ⇒ Object
Also known as:
current_notify_configinfo
511
512
513
514
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 511
def notify_configinfo(win, pattern, slot=nil)
pattern = "<#{pattern}>"
itemconfiginfo(['notify', [win, pattern]], slot)
end
|
507
508
509
510
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 507
def notify_configure(win, pattern, slot, value=None)
pattern = "<#{pattern}>"
itemconfigure(['notify', [win, pattern]], slot, value)
end
|
#style_cget(tagOrId, option) ⇒ Object
517
518
519
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 517
def style_cget(tagOrId, option)
itemcget(['style', tagOrId], option)
end
|
#style_configinfo(tagOrId, slot = nil) ⇒ Object
523
524
525
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 523
def style_configinfo(tagOrId, slot=nil)
itemconfiginfo(['style', tagOrId], slot)
end
|
520
521
522
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 520
def style_configure(tagOrId, slot, value=None)
itemconfigure(['style', tagOrId], slot, value)
end
|
#tagid(mixed_id) ⇒ Object
204
205
206
207
208
209
210
211
212
213
214
215
216
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 204
def tagid(mixed_id)
if mixed_id == 'debug'
['debug', None]
elsif mixed_id == 'dragimage'
['dragimage', None]
elsif mixed_id == 'marquee'
['marquee', None]
elsif mixed_id.kind_of?(Array)
[mixed_id[0], treectrl_tagid(*mixed_id)]
else
tagid(mixed_id.split(':'))
end
end
|
#treectrl_tagid(key, obj) ⇒ Object
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
|
# File 'lib/tkextlib/treectrl/tktreectrl.rb', line 160
def treectrl_tagid(key, obj)
if key.kind_of?(Array)
key = key.join(' ')
else
key = key.to_s
end
if (obj.kind_of?(Tk::TreeCtrl::Column) ||
obj.kind_of?(Tk::TreeCtrl::Element) ||
obj.kind_of?(Tk::TreeCtrl::Item) ||
obj.kind_of?(Tk::TreeCtrl::Style))
obj = obj.id
end
case key
when 'column'
obj
when 'debug'
None
when 'dragimage'
None
when 'element'
obj
when 'item element'
obj
when 'marquee'
None
when 'notify'
obj
when 'style'
obj
else
obj
end
end
|