Class: Tk::Tcllib::Tablelist

Inherits:
TkWindow show all
Includes:
Scrollable, TablelistItemConfig
Defined in:
lib/tkextlib/tcllib/tablelist_core.rb,
lib/tkextlib/tcllib/tablelist_core.rb,
lib/tkextlib/tcllib/tablelist_tile.rb

Constant Summary collapse

PACKAGE_NAME =
'Tablelist'.freeze
TkCommandNames =
['::tablelist::tablelist'.freeze].freeze
WidgetClassName =
'Tablelist'.freeze
DEFAULT_labelcommand_value =

default of ‘labelcommand’ option

DEFAULT_sortByColumn_cmd = '::tablelist::sortByColumn'
DEFAULT_labelcommand2_value =

default of ‘labelcommand2’ option

DEFAULT_addToSortColumns_cmd = '::tablelist::addToSortColumns'

Constants included from TkUtil

TkUtil::None, TkUtil::RELEASE_DATE

Constants included from TkCore

TkCore::EventFlag, TkCore::INTERP, TkCore::INTERP_MUTEX, TkCore::INTERP_ROOT_CHECK, TkCore::INTERP_THREAD, TkCore::INTERP_THREAD_STATUS, TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD, TkCore::WIDGET_DESTROY_HOOK, TkCore::WITH_ENCODING, TkCore::WITH_RUBY_VM

Constants included from TkComm

TkComm::GET_CONFIGINFO_AS_ARRAY, TkComm::GET_CONFIGINFOwoRES_AS_ARRAY, TkComm::TkExtlibAutoloadModule, TkComm::Tk_CMDTBL, TkComm::Tk_IDs, TkComm::Tk_WINDOWS, TkComm::USE_TCLs_LIST_FUNCTIONS, TkComm::WidgetClassNames

Constants included from Tk

AUTO_PATH, Fontchooser, INTERP, JAPANIZED_TK, LIBRARY_PATH, MAINLOOP, PACKAGE_PATH, RELEASE_DATE, Tk::TCL_LIBRARY_PATH, Tk::TCL_MAJOR_VERSION, Tk::TCL_MINOR_VERSION, Tk::TCL_PACKAGE_PATH, Tk::TCL_PATCHLEVEL, Tk::TCL_PRECISION, Tk::TCL_VERSION, Tk::TK_MAJOR_VERSION, Tk::TK_MINOR_VERSION, Tk::TK_PATCHLEVEL, Tk::TK_VERSION, Tk::Tkextlib_RELEASE_DATE, Tk::TreeCtrl_Widget, X_Scrollable, Y_Scrollable

Constants included from Encoding

Encoding::BINARY, Encoding::BINARY_NAME, Encoding::DEFAULT_EXTERNAL_NAME, Encoding::DEFAULT_INTERNAL_NAME, Encoding::ENCODING_TABLE, Encoding::RubyEncoding, Encoding::UNKNOWN, Encoding::UTF8_NAME

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Scrollable

#autoscroll, #unautoscroll

Methods included from YScrollable

#yscrollbar, #yscrollcommand, #yview, #yview_moveto, #yview_scroll

Methods included from XScrollable

#xscrollbar, #xscrollcommand, #xview, #xview_moveto, #xview_scroll

Methods included from TablelistItemConfig

#__item_cget_cmd, #__item_config_cmd, #cell_cget, #cell_cget_strict, #cell_cget_tkstring, #cell_configinfo, #cell_configure, #column_cget, #column_cget_strict, #column_cget_tkstring, #column_configinfo, #column_configure, #current_cell_configinfo, #current_column_configinfo, #current_row_configinfo, #row_cget, #row_cget_strict, #row_cget_tkstring, #row_configinfo, #row_configure

Methods included from TkItemConfigMethod

__IGNORE_UNKNOWN_CONFIGURE_OPTION__, #__check_available_itemconfigure_options, #__current_itemconfiginfo, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, #current_itemconfiginfo, #itemcget, #itemcget_strict, #itemcget_tkstring, #itemconfiginfo, #itemconfigure, #tagid

Methods included from TkItemConfigOptkeys

#__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_nil, num_or_nil, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd, untrust

Methods included from TkTreatItemFont

#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy

Methods inherited from TkWindow

_widget_inspect_full_=, _widget_inspect_full_?, #bind_class, #bindtags, #bindtags=, #bindtags_shift, #bindtags_unshift, #caret, #colormodel, #command, #cursor_propagate, #cursor_restore, database_class, #database_class, #database_classname, database_classname, #destroy, #eventloop_wait_destroy, #eventloop_wait_visibility, #exist?, #grab, #grab_current, #grab_release, #grab_set, #grab_set_global, #grab_status, #grid, #grid_anchor, #grid_bbox, #grid_column, #grid_columnconfig, #grid_columnconfiginfo, #grid_config, #grid_forget, #grid_in, #grid_info, #grid_location, #grid_propagate, #grid_remove, #grid_row, #grid_rowconfig, #grid_rowconfiginfo, #grid_size, #grid_slaves, #initialize, #inspect, #lower, #pack, #pack_config, #pack_forget, #pack_in, #pack_info, #pack_propagate, #pack_slaves, #place, #place_config, #place_configinfo, #place_forget, #place_in, #place_info, #place_slaves, #raise, #set_focus, #thread_wait_destroy, #thread_wait_visibility, #tktrans_get_image, #tktrans_set_image, to_eval, #wait_destroy, #wait_visibility

Methods included from TkBindCore

#bind, #bind_append, #bind_remove, #bindinfo

Methods included from Busy

__item_cget_cmd, __item_config_cmd, __item_confinfo_cmd, #busy, #busy_cget, #busy_configinfo, #busy_configure, #busy_current?, #busy_current_configinfo, #busy_forget, #busy_status, current, forget, hold, method_missing, status

Methods included from TkCore

#_tk_call_to_list_core, #after, #after_cancel, #after_idle, #appname, #appsend, #appsend_deny, #appsend_displayof, callback, #callback_break, #callback_continue, #callback_return, #chooseColor, #chooseDirectory, #do_one_event, #event_generate, #getMultipleOpenFile, #getMultipleSaveFile, #getOpenFile, #getSaveFile, #get_eventloop_tick, #get_eventloop_weight, #get_no_event_wait, #inactive, #inactive_displayof, #info, #ip_eval, #ip_eval_with_enc, #ip_eval_without_enc, #ip_invoke, #ip_invoke_with_enc, #ip_invoke_without_enc, #is_mainloop?, #load_cmd_on_ip, #mainloop, #mainloop_exist?, #mainloop_thread?, #mainloop_watchdog, #messageBox, #rb_appsend, #rb_appsend_displayof, #reset_inactive, #reset_inactive_displayof, #restart, #scaling, #scaling_displayof, #set_eventloop_tick, #set_eventloop_weight, #set_no_event_wait, #tk_call, #tk_call_to_list, #tk_call_to_list_with_enc, #tk_call_to_list_without_enc, #tk_call_to_simplelist, #tk_call_to_simplelist_with_enc, #tk_call_to_simplelist_without_enc, #tk_call_with_enc, #tk_call_without_enc, #windowingsystem

Methods included from TkComm

_at, _callback_entry?, _callback_entry_class?, _curr_cmd_id, _fromUTF8, _genobj_for_tkwidget, _next_cmd_id, _toUTF8, array2tk_list, #bind, #bind_all, #bind_append, #bind_append_all, #bind_remove, #bind_remove_all, #bindinfo, #bindinfo_all, bool, image_obj, #install_cmd, install_cmd, list, num_or_nil, num_or_str, number, procedure, simplelist, slice_ary, string, #subst, tk_tcl2ruby, uninstall_cmd, #uninstall_cmd, window

Methods included from TkEvent

#install_bind, #install_bind_for_event_class

Methods included from TkWinfo

appname, atom, atomname, cells, children, classname, colormapfull, containing, depth, exist?, fpixels, geometry, height, id, interps, manager, mapped?, parent, pixels, pointerx, pointerxy, pointery, reqheight, reqwidth, rgb, rootx, rooty, screen, screencells, screendepth, screenheight, screenmmheight, screenmmwidth, screenvisual, screenwidth, server, toplevel, viewable, visual, visualid, visualsavailable, vrootheight, vrootwidth, vrootx, vrooty, widget, width, #winfo_appname, #winfo_atom, #winfo_atomname, #winfo_cells, #winfo_children, #winfo_classname, #winfo_colormapfull, #winfo_containing, #winfo_depth, #winfo_exist?, #winfo_fpixels, #winfo_geometry, #winfo_height, #winfo_id, #winfo_interps, #winfo_manager, #winfo_mapped?, #winfo_parent, #winfo_pixels, #winfo_pointerx, #winfo_pointerxy, #winfo_pointery, #winfo_reqheight, #winfo_reqwidth, #winfo_rgb, #winfo_rootx, #winfo_rooty, #winfo_screen, #winfo_screencells, #winfo_screendepth, #winfo_screenheight, #winfo_screenmmheight, #winfo_screenmmwidth, #winfo_screenvisual, #winfo_screenwidth, #winfo_server, #winfo_toplevel, #winfo_viewable, #winfo_visual, #winfo_visualid, #winfo_visualsavailable, #winfo_vrootheight, #winfo_vrootwidth, #winfo_vrootx, #winfo_vrooty, #winfo_widget, #winfo_width, #winfo_x, #winfo_y, x, y

Methods included from Tk

BinaryString, EncodedString, #Grid, #Pack, #Place, UTF8_String, __create_widget_set__, __disable_toplevel_control__, __import_toplevel_aliases__, __regist_toplevel_aliases__, __remove_toplevel_aliases__, __reset_toplevel_owner__, __set_loaded_toplevel_aliases__, __set_toplevel_aliases__, __toplevel_alias_setup_proc__, _replace_toplevel_aliases, add_kinsoku, backup_current_topdef, bell, bell_on_display, const_missing, current_grabs, cursor_display, default_widget_set, default_widget_set=, define_topalias, define_topobj, delete_kinsoku, destroy, #encoding, #encoding=, errorCode, errorInfo, exit, focus, focus_lastfor, focus_next, focus_prev, focus_to, fromUTF8, grid, grid_forget, has_mainwindow?, load_tcllibrary, load_tclscript, load_tclscript_rsrc, load_tclscript_rsrcid, lower_window, pack, pack_forget, pkgconfig_get, pkgconfig_list, place, place_forget, raise_window, regist_sym_for_loaded_file, replace_topalias, replace_topobj, #root, set_topalias, show_kinsoku, sleep, strictMotif, subst_tk_backslash, subst_utf_backslash, tcl_pkgconfig_get, tcl_pkgconfig_list, thread_update, thread_update_idletasks, tk_pkgconfig_get, tk_pkgconfig_list, toUTF8, to_backslash_sequence, topalias_defined?, toplevel_aliases_on_widget_set, topobj_defined?, ungrid, unload_tcllibrary, unpack, unplace, update, #update, update_idletasks, utf_to_backslash, utf_to_backslash_sequence, wakeup, widget_set_symbols

Methods included from Encoding

#default_encoding=, #encoding=, #encoding_convertfrom, #encoding_convertto, #encoding_dirs, #encoding_dirs=, #encoding_name, #encoding_names, #encoding_obj, #encoding_objs, #encoding_system=, #encoding_system_name, #encoding_system_obj, #force_default_encoding, #force_default_encoding=, #force_default_encoding?, #tk_encoding_names

Methods included from Tk::TkDND::DND

#dnd_bindsource, #dnd_bindsource_info, #dnd_bindtarget, #dnd_bindtarget_info, #dnd_clearsource, #dnd_cleartarget, #dnd_drag, version

Methods included from Tk::TkDND::Shape

package_patchlevel, #shape_bounds, #shape_get, #shape_offset, #shape_set, #shape_update, version

Methods inherited from TkObject

#destroy, #epath, #event_generate, #method_missing, #path, #tk_send, #tk_send_to_list, #tk_send_to_list_with_enc, #tk_send_to_list_without_enc, #tk_send_to_simplelist, #tk_send_to_simplelist_with_enc, #tk_send_to_simplelist_without_enc, #tk_send_with_enc, #tk_send_without_enc, #to_eval

Methods included from TkConfigMethod

#[], #[]=, __IGNORE_UNKNOWN_CONFIGURE_OPTION__, #__check_available_configure_options, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, #cget, #cget_strict, #cget_tkstring, #config_hash_kv, #configinfo, #configure, #configure_cmd, #current_configinfo

Methods included from TkTreatFont

#font_configinfo, #font_configure, #font_copy, #kanjifont_configure, #kanjifont_copy, #latinfont_configure, #latinfont_copy

Methods inherited from TkKernel

new

Constructor Details

This class inherits a constructor from TkWindow

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TkObject

Class Method Details

.addBWidgetComboBox(name = None) ⇒ Object



990
991
992
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 990

def addBWidgetComboBox(name=None)
  Tk.tk_call('::tablelist::addBWidgetComboBox', name)
end

.addBWidgetEntry(name = None) ⇒ Object

with the BWidget package



982
983
984
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 982

def addBWidgetEntry(name=None)
  Tk.tk_call('::tablelist::addBWidgetEntry', name)
end

.addBWidgetSpinBox(name = None) ⇒ Object



986
987
988
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 986

def addBWidgetSpinBox(name=None)
  Tk.tk_call('::tablelist::addBWidgetSpinBox', name)
end

.addDateMentry(format, separator, gmt = false, name = None) ⇒ Object

with the multi-entry package Mentry is a library extension



1032
1033
1034
1035
1036
1037
1038
1039
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1032

def addDateMentry(format, separator, gmt=false, name=None)
  if gmt && gmt != None
    gmt = '-gmt'
  else
    gmt = None
  end
  Tk.tk_call('::tablelist::addDateMentry', format, separator, gmt, name)
end

.addDateTimeMentry(format, date_sep, time_sep, gmt = false, name = None) ⇒ Object



1050
1051
1052
1053
1054
1055
1056
1057
1058
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1050

def addDateTimeMentry(format, date_sep, time_sep, gmt=false, name=None)
  if gmt && gmt != None
    gmt = '-gmt'
  else
    gmt = None
  end
  Tk.tk_call('::tablelist::addDateTimeMentry',
             format, date_sep, time_sep, gmt, name)
end

.addFixedPointMentry(count1, count2, comma = false, name = None) ⇒ Object



1060
1061
1062
1063
1064
1065
1066
1067
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1060

def addFixedPointMentry(count1, count2, comma=false, name=None)
  if comma && comma != None
    comma = '-comma'
  else
    comma = None
  end
  Tk.tk_call('::tablelist::addFixedPoingMentry', count1, count2, comma, name)
end

.addIncrCombobox(name = None) ⇒ Object



1019
1020
1021
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1019

def addIncrCombobox(name=None)
  Tk.tk_call('::tablelist::addIncrCombobox', name)
end

.addIncrDateTimeWidget(type, seconds = false, name = None) ⇒ Object



1001
1002
1003
1004
1005
1006
1007
1008
1009
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1001

def addIncrDateTimeWidget(type, seconds=false, name=None)
  # type := 'datefield'|'dateentry'|timefield'|'timeentry'
  if seconds && seconds != None
    seconds = '-seconds'
  else
    seconds = None
  end
  Tk.tk_call('::tablelist::addDateTimeWidget', type, seconds, name)
end

.addIncrEntryfield(name = None) ⇒ Object

with the Iwidgets ([incr Widgets]) package



997
998
999
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 997

def addIncrEntryfield(name=None)
  Tk.tk_call('::tablelist::addIncrEntry', name)
end

.addIncrSpinint(name = None) ⇒ Object



1015
1016
1017
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1015

def addIncrSpinint(name=None)
  Tk.tk_call('::tablelist::addIncrSpinint', name)
end

.addIncrSpinner(name = None) ⇒ Object



1011
1012
1013
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1011

def addIncrSpinner(name=None)
  Tk.tk_call('::tablelist::addIncrSpinner', name)
end

.addIPAddrMentry(name = None) ⇒ Object



1069
1070
1071
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1069

def addIPAddrMentry(name=None)
  Tk.tk_call('::tablelist::addIPAddrMentry', name)
end

.addOakleyCombobox(name = None) ⇒ Object

with Bryan Oakley’s combobox package



1026
1027
1028
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1026

def addOakleyCombobox(name=None)
  Tk.tk_call('::tablelist::addOakleyCombobox', name)
end

.addTimeMentry(format, separator, gmt = false, name = None) ⇒ Object



1041
1042
1043
1044
1045
1046
1047
1048
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1041

def addTimeMentry(format, separator, gmt=false, name=None)
  if gmt && gmt != None
    gmt = '-gmt'
  else
    gmt = None
  end
  Tk.tk_call('::tablelist::addTimeMentry', format, separator, gmt, name)
end

.convEventFields(descendant, x, y) ⇒ Object



975
976
977
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 975

def convEventFields(descendant, x, y)
  window(Tk.tk_call('::tablelist::convEventFields', descendant, x, y))
end

.get_current_themeObject



28
29
30
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 28

def self.get_current_theme
  Tk.tk_call('::tablelist::getCurrentTheme')
end

.get_theme_listObject



32
33
34
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 32

def self.get_theme_list
  TkComm.simplelist(Tk.tk_call('::tablelist::getThemes'))
end

.getTablelistColumn(descendant) ⇒ Object



970
971
972
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 970

def getTablelistColumn(descendant)
  num_or_str(Tk.tk_call('::tablelist::getTablelistColumn', headerlabel))
end

.getTablelistPath(descendant) ⇒ Object

helper commands



966
967
968
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 966

def getTablelistPath(descendant)
  window(Tk.tk_call('::tablelist::getTablelistPath', descendant))
end

.package_nameObject



19
20
21
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 19

def self.package_name
  PACKAGE_NAME
end

.package_versionObject



23
24
25
26
27
28
29
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 23

def self.package_version
  begin
    TkPackage.require(self.package_name)
  rescue
    ''
  end
end

.set_theme(theme) ⇒ Object

commands related to tile Themems



24
25
26
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 24

def self.set_theme(theme)
  Tk.tk_call('::tablelist::setTheme', theme)
end

.set_theme_defaultsObject



35
36
37
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 35

def self.set_theme_defaults
  Tk.tk_call('::tablelist::setThemeDefaults')
end

.use_Tile?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 31

def self.use_Tile?
  (Tk::Tcllib::Tablelist_usingTile)? true: false
end

Instance Method Details

#activate(index) ⇒ Object



282
283
284
285
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 282

def activate(index)
  tk_send('activate', _to_idx(index))
  self
end

#activate_cell(index) ⇒ Object Also known as: activatecell



287
288
289
290
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 287

def activate_cell(index)
  tk_send('activatecell', _to_idx(index))
  self
end

#addToSortColumns_with_event_generate(idx) ⇒ Object



855
856
857
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 855

def addToSortColumns_with_event_generate(idx)
  tk_call('::tablelist::addToSortColumns', @path, _to_idx(idx))
end

#bbox(index) ⇒ Object



310
311
312
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 310

def bbox(index)
  list(tk_send('bbox', _to_idx(index)))
end

#bodypathObject



314
315
316
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 314

def bodypath
  window(tk_send('bodypath'))
end

#bodytagObject



318
319
320
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 318

def bodytag
  TkBindTag.new_by_name(tk_send('bodytag'))
end

#cancel_editingObject Also known as: cancelediting



322
323
324
325
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 322

def cancel_editing
  tk_send('cancelediting')
  self
end

#cellindex(idx) ⇒ Object



345
346
347
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 345

def cellindex(idx)
  _from_idx(tk_send('cellindex', _to_idx(idx)))
end

#cellselection_anchor(idx) ⇒ Object



349
350
351
352
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 349

def cellselection_anchor(idx)
  tk_send('cellselection', 'anchor', _to_idx(idx))
  self
end

#cellselection_clear(first, last = nil) ⇒ Object



354
355
356
357
358
359
360
361
362
363
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 354

def cellselection_clear(first, last=nil)
  if first.kind_of?(Array)
    tk_send('cellselection', 'clear', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('cellselection', 'clear', first, last)
  end
  self
end

#cellselection_includes(idx) ⇒ Object



365
366
367
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 365

def cellselection_includes(idx)
  bool(tk_send('cellselection', 'includes', _to_idx(idx)))
end

#cellselection_set(first, last = nil) ⇒ Object



369
370
371
372
373
374
375
376
377
378
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 369

def cellselection_set(first, last=nil)
  if first.kind_of?(Array)
    tk_send('cellselection', 'set', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('cellselection', 'set', first, last)
  end
  self
end

#columncountObject



397
398
399
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 397

def columncount
  number(tk_send('columncount'))
end

#columnindex(idx) ⇒ Object



401
402
403
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 401

def columnindex(idx)
  number(tk_send('columnindex', _to_idx(idx)))
end

#columnwidth(idx, opt = nil) ⇒ Object



405
406
407
408
409
410
411
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 405

def columnwidth(idx, opt=nil)
  if opt
    number(tk_send('columnwidth', _to_idx(idx), "-#{opt}"))
  else
    number(tk_send('columnwidth', _to_idx(idx)))
  end
end

#configcelllist(lst) ⇒ Object Also known as: config_celllist

lst ==> [idx, opt, val, idx, opt, val, …]



422
423
424
425
426
427
428
429
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 422

def configcelllist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
  ary = []
  lst.slice(3){|idx, opt, val|
    ary << _to_idx(idx) << "-#{opt}" << val
  }
  tk_send('configcelllist', ary)
  self
end

#configcells(*args) ⇒ Object Also known as: config_cells

args ==> idx, opt, val, idx, opt, val, …



432
433
434
435
436
437
438
439
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 432

def configcells(*args) # args ==> idx, opt, val, idx, opt, val, ...
  ary = []
  args.slice(3){|idx, opt, val|
    ary << _to_idx(idx) << "-#{opt}" << val
  }
  tk_send('configcells', *ary)
  self
end

#configcolumnlist(lst) ⇒ Object Also known as: config_columnlist

lst ==> [idx, opt, val, idx, opt, val, …]



442
443
444
445
446
447
448
449
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 442

def configcolumnlist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
  ary = []
  lst.slice(3){|idx, opt, val|
    ary << _to_idx(idx) << "-#{opt}" << val
  }
  tk_send('configcolumnlist', ary)
  self
end

#configcolumns(*args) ⇒ Object Also known as: config_columns

args ==> idx, opt, val, idx, opt, val, …



452
453
454
455
456
457
458
459
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 452

def configcolumns(*args) # args ==> idx, opt, val, idx, opt, val, ...
  ary = []
  args.slice(3){|idx, opt, val|
    ary << _to_idx(idx) << "-#{opt}" << val
  }
  tk_send('configcolumns', *ary)
  self
end

#configrowlist(lst) ⇒ Object Also known as: config_rowlist

lst ==> [idx, opt, val, idx, opt, val, …]



462
463
464
465
466
467
468
469
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 462

def configrowlist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
  ary = []
  lst.slice(3){|idx, opt, val|
    ary << _to_idx(idx) << "-#{opt}" << val
  }
  tk_send('configrowlist', ary)
  self
end

#configrows(*args) ⇒ Object Also known as: config_rows

args ==> idx, opt, val, idx, opt, val, …



472
473
474
475
476
477
478
479
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 472

def configrows(*args) # args ==> idx, opt, val, idx, opt, val, ...
  ary = []
  args.slice(3){|idx, opt, val|
    ary << _to_idx(idx) << "-#{opt}" << val
  }
  tk_send('configrows', *ary)
  self
end

#containing(y) ⇒ Object



482
483
484
485
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 482

def containing(y)
  idx = num_or_str(tk_send('containing', y))
  (idx.kind_of?(Fixnum) && idx < 0)?  nil: idx
end

#containing_cell(x, y) ⇒ Object Also known as: containingcell



487
488
489
490
491
492
493
494
495
496
497
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 487

def containing_cell(x, y)
  idx = _from_idx(tk_send('containingcell', x, y))
  if idx.kind_of?(Array)
    [
      ((idx[0].kind_of?(Fixnum) && idx[0] < 0)?  nil: idx[0]),
      ((idx[1].kind_of?(Fixnum) && idx[1] < 0)?  nil: idx[1])
    ]
  else
    idx
  end
end

#containing_column(x) ⇒ Object Also known as: containingcolumn



500
501
502
503
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 500

def containing_column(x)
  idx = num_or_str(tk_send('containingcolumn', x))
  (idx.kind_of?(Fixnum) && idx < 0)?  nil: idx
end

#curcellselectionObject



506
507
508
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 506

def curcellselection
  simplelist(tk_send('curcellselection')).collect!{|idx| _from_idx(idx)}
end

#curselectionObject



510
511
512
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 510

def curselection
  list(tk_send('curselection'))
end

#delete_columns(first, last = nil) ⇒ Object Also known as: deletecolumns



527
528
529
530
531
532
533
534
535
536
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 527

def delete_columns(first, last=nil)
  if first.kind_of?(Array)
    tk_send('deletecolumns', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('deletecolumns', first, last)
  end
  self
end

#delete_items(first, last = nil) ⇒ Object Also known as: delete, deleteitems



514
515
516
517
518
519
520
521
522
523
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 514

def delete_items(first, last=nil)
  if first.kind_of?(Array)
    tk_send('delete', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('delete', first, last)
  end
  self
end

#edit_cell(idx) ⇒ Object Also known as: editcell



539
540
541
542
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 539

def edit_cell(idx)
  tk_send('editcell', _to_idx(idx))
  self
end

#editwinpathObject



549
550
551
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 549

def editwinpath
  window(tk_send('editwinpath'))
end

#editwintagObject



545
546
547
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 545

def editwintag
  TkBindTag.new_by_name(tk_send('editwintag'))
end

#entrypathObject



553
554
555
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 553

def entrypath
  window(tk_send('entrypath'))
end

#fill_column(idx, txt) ⇒ Object Also known as: fillcolumn



557
558
559
560
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 557

def fill_column(idx, txt)
  tk_send('fillcolumn', _to_idx(idx), txt)
  self
end

#finish_editingObject Also known as: finishediting



563
564
565
566
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 563

def finish_editing
  tk_send('finishediting')
  self
end

#formatinfoObject



569
570
571
572
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 569

def formatinfo
  key, row, col = simplelist(tk_send('formatinfo'))
  [key, number(row), number(col)]
end

#get(first, last = nil) ⇒ Object



574
575
576
577
578
579
580
581
582
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 574

def get(first, last=nil)
  if first.kind_of?(Array)
    simplelist(tk_send('get', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    simplelist(tk_send('get', first, last))
  end
end

#get_attrib(name = nil) ⇒ Object



293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 293

def get_attrib(name=nil)
  if name && name != None
    tk_send('attrib', name)
  else
    ret = []
    lst = simplelist(tk_send('attrib'))
    until lst.empty?
      ret << ( [lst.shift] << lst.shift )
    end
    ret
  end
end

#get_cellattrib(name = nil) ⇒ Object



328
329
330
331
332
333
334
335
336
337
338
339
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 328

def get_cellattrib(name=nil)
  if name && name != None
    tk_send('cellattrib', name)
  else
    ret = []
    lst = simplelist(tk_send('cellattrib'))
    until lst.empty?
      ret << ( [lst.shift] << lst.shift )
    end
    ret
  end
end

#get_cells(first, last = nil) ⇒ Object Also known as: getcells



584
585
586
587
588
589
590
591
592
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 584

def get_cells(first, last=nil)
  if first.kind_of?(Array)
    simplelist(tk_send('getcells', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    simplelist(tk_send('getcells', first, last))
  end
end

#get_columnattrib(name = nil) ⇒ Object



380
381
382
383
384
385
386
387
388
389
390
391
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 380

def get_columnattrib(name=nil)
  if name && name != None
    tk_send('columnattrib', name)
  else
    ret = []
    lst = simplelist(tk_send('columnattrib'))
    until lst.empty?
      ret << ( [lst.shift] << lst.shift )
    end
    ret
  end
end

#get_columns(first, last = nil) ⇒ Object Also known as: getcolumns



595
596
597
598
599
600
601
602
603
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 595

def get_columns(first, last=nil)
  if first.kind_of?(Array)
    simplelist(tk_send('getcolumns', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    simplelist(tk_send('getcolumns', first, last))
  end
end

#get_keys(first, last = nil) ⇒ Object Also known as: getkeys



606
607
608
609
610
611
612
613
614
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 606

def get_keys(first, last=nil)
  if first.kind_of?(Array)
    simplelist(tk_send('getkeys', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    simplelist(tk_send('getkeys', first, last))
  end
end

#get_rowattrib(name = nil) ⇒ Object



727
728
729
730
731
732
733
734
735
736
737
738
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 727

def get_rowattrib(name=nil)
  if name && name != None
    tk_send('rowattrib', name)
  else
    ret = []
    lst = simplelist(tk_send('rowattrib'))
    until lst.empty?
      ret << ( [lst.shift] << lst.shift )
    end
    ret
  end
end

#has_attrib?(name) ⇒ Boolean

Returns:

  • (Boolean)


617
618
619
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 617

def has_attrib?(name)
  bool(tk_send('hasattrib', name))
end

#has_cellattrib?(idx, name) ⇒ Boolean

Returns:

  • (Boolean)


621
622
623
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 621

def has_cellattrib?(idx, name)
  bool(tk_send('hascellattrib', _to_idx(idx), name))
end

#has_columnattrib?(idx, name) ⇒ Boolean

Returns:

  • (Boolean)


625
626
627
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 625

def has_columnattrib?(idx, name)
  bool(tk_send('hascolumnattrib', _to_idx(idx), name))
end

#has_rowattrib?(idx, name) ⇒ Boolean

Returns:

  • (Boolean)


629
630
631
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 629

def has_rowattrib?(idx, name)
  bool(tk_send('hasrowattrib', _to_idx(idx), name))
end

#imagelabelpath(idx) ⇒ Object



633
634
635
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 633

def imagelabelpath(idx)
  window(tk_send('imagelabelpath', _to_idx(idx)))
end

#index(idx) ⇒ Object



637
638
639
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 637

def index(idx)
  number(tk_send('index', _to_idx(idx)))
end

#insert(idx, *items) ⇒ Object



641
642
643
644
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 641

def insert(idx, *items)
  tk_send('insert', _to_idx(idx), *items)
  self
end

#insert_columnlist(idx, columnlist) ⇒ Object Also known as: insertcolumnlist



646
647
648
649
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 646

def insert_columnlist(idx, columnlist)
  tk_send('insertcolumnlist', _to_idx(idx), columnlist)
  self
end

#insert_columns(idx, *args) ⇒ Object Also known as: insertcolumns



652
653
654
655
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 652

def insert_columns(idx, *args)
  tk_send('insertcolums', _to_idx(idx), *args)
  self
end

#insert_list(idx, list) ⇒ Object Also known as: insertlist



658
659
660
661
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 658

def insert_list(idx, list)
  tk_send('insertlist', _to_idx(idx), list)
  self
end

#is_elem_snipped?(cellidx, tkvar) ⇒ Boolean Also known as: elem_snipped?

Returns:

  • (Boolean)


664
665
666
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 664

def is_elem_snipped?(cellidx, tkvar)
  bool(tk_send('iselemsnipped', _to_idx(cellidx), tkvar))
end

#is_title_snipped?(colidx, tkvar) ⇒ Boolean Also known as: title_snipped?

Returns:

  • (Boolean)


669
670
671
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 669

def is_title_snipped?(colidx, tkvar)
  bool(tk_send('istitlesnipped', _to_idx(colidx), tkvar))
end

#itemlistvarObject



674
675
676
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 674

def itemlistvar
  TkVarAccess.new(tk_send('itemlistvar'))
end

#labelpath(idx) ⇒ Object



678
679
680
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 678

def labelpath(idx)
  window(tk_send('labelpath', _to_idx(idx)))
end

#labelsObject



682
683
684
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 682

def labels
  simplelist(tk_send('labels'))
end

#labeltagObject



686
687
688
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 686

def labeltag
  TkBindTag.new_by_name(tk_send('labeltag'))
end

#move(src, target) ⇒ Object



690
691
692
693
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 690

def move(src, target)
  tk_send('move', _to_idx(src), _to_idx(target))
  self
end

#move_column(src, target) ⇒ Object Also known as: movecolumn



695
696
697
698
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 695

def move_column(src, target)
  tk_send('movecolumn', _to_idx(src), _to_idx(target))
  self
end

#nearest(y) ⇒ Object



701
702
703
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 701

def nearest(y)
  _from_idx(tk_send('nearest', y))
end

#nearest_cell(x, y) ⇒ Object Also known as: nearestcell



705
706
707
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 705

def nearest_cell(x, y)
  _from_idx(tk_send('nearestcell', x, y))
end

#nearest_column(x) ⇒ Object Also known as: nearestcolumn



710
711
712
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 710

def nearest_column(x)
  _from_idx(tk_send('nearestcolumn', x))
end

#reject_inputObject Also known as: rejectinput



715
716
717
718
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 715

def reject_input
  tk_send('rejectinput')
  self
end

#requested_columnwidth(idx) ⇒ Object



412
413
414
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 412

def requested_columnwidth(idx)
  columnwidth(idx, 'requested')
end

#reset_sortinfoObject Also known as: resetsortinfo



721
722
723
724
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 721

def reset_sortinfo
  tk_send('resetsortinfo')
  self
end

#scan_dragto(x, y) ⇒ Object



749
750
751
752
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 749

def scan_dragto(x, y)
  tk_send('scan', 'dragto', x, y)
  self
end

#scan_mark(x, y) ⇒ Object



744
745
746
747
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 744

def scan_mark(x, y)
  tk_send('scan', 'mark', x, y)
  self
end

#see(idx) ⇒ Object



754
755
756
757
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 754

def see(idx)
  tk_send('see', _to_idx(idx))
  self
end

#see_cell(idx) ⇒ Object Also known as: seecell



759
760
761
762
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 759

def see_cell(idx)
  tk_send('seecell', _to_idx(idx))
  self
end

#see_column(idx) ⇒ Object Also known as: seecolumn



765
766
767
768
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 765

def see_column(idx)
  tk_send('seecolumn', _to_idx(idx))
  self
end

#selection_anchor(idx) ⇒ Object



771
772
773
774
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 771

def selection_anchor(idx)
  tk_send('selection', 'anchor', _to_idx(idx))
  self
end

#selection_clear(first, last = nil) ⇒ Object



776
777
778
779
780
781
782
783
784
785
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 776

def selection_clear(first, last=nil)
  if first.kind_of?(Array)
    tk_send('selection', 'clear', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('selection', 'clear', first, last)
  end
  self
end

#selection_includes(idx) ⇒ Object



787
788
789
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 787

def selection_includes(idx)
  bool(tk_send('selection', 'includes', _to_idx(idx)))
end

#selection_set(first, last = nil) ⇒ Object



791
792
793
794
795
796
797
798
799
800
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 791

def selection_set(first, last=nil)
  if first.kind_of?(Array)
    tk_send('selection', 'set', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('selection', 'set', first, last)
  end
  self
end

#separatorpath(idx = nil) ⇒ Object



802
803
804
805
806
807
808
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 802

def separatorpath(idx=nil)
  if idx
    window(tk_send('separatorpath', _to_idx(idx)))
  else
    window(tk_send('separatorpath'))
  end
end

#separatorsObject



810
811
812
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 810

def separators
  simplelist(tk_send('separators')).collect!{|w| window(w)}
end

#set_attrib(*args) ⇒ Object



305
306
307
308
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 305

def set_attrib(*args)
  tk_send('attrib', *(args.flatten))
  self
end

#set_cellattrib(*args) ⇒ Object



340
341
342
343
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 340

def set_cellattrib(*args)
  tk_send('cellattrib', *(args.flatten))
  self
end

#set_columnattrib(*args) ⇒ Object



392
393
394
395
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 392

def set_columnattrib(*args)
  tk_send('columnattrib', *(args.flatten))
  self
end

#set_rowattrib(*args) ⇒ Object



739
740
741
742
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 739

def set_rowattrib(*args)
  tk_send('rowattrib', *(args.flatten))
  self
end

#sizeObject



814
815
816
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 814

def size
  number(tk_send('size'))
end

#sort(order = nil) ⇒ Object



818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 818

def sort(order=nil)
  if order
    order = order.to_s
    order = '-' << order if order[0] != ?-
    if order.length < 2
      order = nil
    end
  end
  if order
    tk_send('sort', order)
  else
    tk_send('sort')
  end
  self
end

#sort_by_column(idx, order = nil) ⇒ Object



859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 859

def sort_by_column(idx, order=nil)
  if order
    order = order.to_s
    order = '-' << order if order[0] != ?-
    if order.length < 2
      order = nil
    end
  end
  if order
    tk_send('sortbycolumn', _to_idx(idx), order)
  else
    tk_send('sortbycolumn', _to_idx(idx))
  end
  self
end

#sort_by_column_decreasing(idx) ⇒ Object



878
879
880
881
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 878

def sort_by_column_decreasing(idx)
  tk_send('sortbycolumn', _to_idx(idx), '-decreasing')
  self
end

#sort_by_column_increasing(idx) ⇒ Object



874
875
876
877
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 874

def sort_by_column_increasing(idx)
  tk_send('sortbycolumn', _to_idx(idx), '-increasing')
  self
end

#sort_by_columnlist(idxlist, orderlist = None) ⇒ Object



883
884
885
886
887
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 883

def sort_by_columnlist(idxlist, orderlist=None)
  # orderlist :: list of 'increasing' or 'decreasing'
  tk_send('sortbycolumnlist', idxlist.map{|idx| _to_idx(idx)}, orderlist)
  self
end

#sort_decreasingObject



837
838
839
840
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 837

def sort_decreasing
  tk_send('sort', '-decreasing')
  self
end

#sort_increasingObject



833
834
835
836
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 833

def sort_increasing
  tk_send('sort', '-increasing')
  self
end

#sortByColumn_with_event_generate(idx) ⇒ Object



851
852
853
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 851

def sortByColumn_with_event_generate(idx)
  tk_call('::tablelist::sortByColumn', @path, _to_idx(idx))
end

#sortcolumnObject



889
890
891
892
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 889

def sortcolumn
  idx = num_or_str(tk_send('sortcolum'))
  (idx.kind_of?(Fixnum) && idx < 0)?  nil: idx
end

#sortcolumnlistObject



894
895
896
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 894

def sortcolumnlist
  simplelist(tk_send('sortcolumlist')).map{|col| num_or_str(col)}
end

#sortorderObject



898
899
900
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 898

def sortorder
  tk_send('sortorder')
end

#sortorderlistObject



902
903
904
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 902

def sortorderlist
  simplelist(tk_send('sortorderlist'))
end

#stretched_columnwidth(idx) ⇒ Object



415
416
417
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 415

def stretched_columnwidth(idx)
  columnwidth(idx, 'stretched')
end

#toggle_columnhide(first, last = nil) ⇒ Object



906
907
908
909
910
911
912
913
914
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 906

def toggle_columnhide(first, last=nil)
  if first.kind_of?(Array)
    tk_send('togglecolumnhide', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('togglecolumnhide', first, last)
  end
end

#toggle_rowhide(first, last = nil) ⇒ Object



916
917
918
919
920
921
922
923
924
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 916

def toggle_rowhide(first, last=nil)
  if first.kind_of?(Array)
    tk_send('togglerowhide', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('togglerowhide', first, last)
  end
end

#toggle_visibility(first, last = nil) ⇒ Object Also known as: togglevisibility



926
927
928
929
930
931
932
933
934
935
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 926

def toggle_visibility(first, last=nil)
  if first.kind_of?(Array)
    tk_send('togglevisibility', first.collect{|idx| _to_idx(idx)})
  else
    first = _to_idx(first)
    last = (last)? _to_idx(last): first
    tk_send('togglevisibility', first, last)
  end
  self
end

#total_columnwidth(idx) ⇒ Object



418
419
420
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 418

def total_columnwidth(idx)
  columnwidth(idx, 'total')
end

#unset_attrib(name) ⇒ Object



938
939
940
941
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 938

def unset_attrib(name)
  tk_send('unsetattrib', name)
  self
end

#unset_cellattrib(idx, name) ⇒ Object



943
944
945
946
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 943

def unset_cellattrib(idx, name)
  tk_send('unsetcellattrib', _to_idx(idx), name)
  self
end

#unset_columnattrib(idx, name) ⇒ Object



948
949
950
951
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 948

def unset_columnattrib(idx, name)
  tk_send('unsetcolumnattrib', _to_idx(idx), name)
  self
end

#unset_rowattrib(idx, name) ⇒ Object



953
954
955
956
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 953

def unset_rowattrib(idx, name)
  tk_send('unsetrowattrib', _to_idx(idx), name)
  self
end

#windowpath(idx) ⇒ Object



958
959
960
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 958

def windowpath(idx)
  window(tk_send('windowpath', _to_idx(idx)))
end