Class: Tk::Tcllib::Tablelist
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
-
.addBWidgetComboBox(name = None) ⇒ Object
-
.addBWidgetEntry(name = None) ⇒ Object
with the BWidget package.
-
.addBWidgetSpinBox(name = None) ⇒ Object
-
.addDateMentry(format, separator, gmt = false, name = None) ⇒ Object
with the multi-entry package Mentry is a library extension.
-
.addDateTimeMentry(format, date_sep, time_sep, gmt = false, name = None) ⇒ Object
-
.addFixedPointMentry(count1, count2, comma = false, name = None) ⇒ Object
-
.addIncrCombobox(name = None) ⇒ Object
-
.addIncrDateTimeWidget(type, seconds = false, name = None) ⇒ Object
-
.addIncrEntryfield(name = None) ⇒ Object
with the Iwidgets ([incr Widgets]) package.
-
.addIncrSpinint(name = None) ⇒ Object
-
.addIncrSpinner(name = None) ⇒ Object
-
.addIPAddrMentry(name = None) ⇒ Object
-
.addOakleyCombobox(name = None) ⇒ Object
with Bryan Oakley’s combobox package.
-
.addTimeMentry(format, separator, gmt = false, name = None) ⇒ Object
-
.convEventFields(descendant, x, y) ⇒ Object
-
.get_current_theme ⇒ Object
-
.get_theme_list ⇒ Object
-
.getTablelistColumn(descendant) ⇒ Object
-
.getTablelistPath(descendant) ⇒ Object
-
.package_name ⇒ Object
-
.package_version ⇒ Object
-
.set_theme(theme) ⇒ Object
commands related to tile Themems.
-
.set_theme_defaults ⇒ Object
-
.use_Tile? ⇒ Boolean
Instance Method Summary
collapse
-
#activate(index) ⇒ Object
-
#activate_cell(index) ⇒ Object
(also: #activatecell)
-
#addToSortColumns_with_event_generate(idx) ⇒ Object
-
#bbox(index) ⇒ Object
-
#bodypath ⇒ Object
-
#bodytag ⇒ Object
-
#cancel_editing ⇒ Object
(also: #cancelediting)
-
#cellindex(idx) ⇒ Object
-
#cellselection_anchor(idx) ⇒ Object
-
#cellselection_clear(first, last = nil) ⇒ Object
-
#cellselection_includes(idx) ⇒ Object
-
#cellselection_set(first, last = nil) ⇒ Object
-
#columncount ⇒ Object
-
#columnindex(idx) ⇒ Object
-
#columnwidth(idx, opt = nil) ⇒ Object
-
#configcelllist(lst) ⇒ Object
(also: #config_celllist)
lst ==> [idx, opt, val, idx, opt, val, …].
-
#configcells(*args) ⇒ Object
(also: #config_cells)
args ==> idx, opt, val, idx, opt, val, …
-
#configcolumnlist(lst) ⇒ Object
(also: #config_columnlist)
lst ==> [idx, opt, val, idx, opt, val, …].
-
#configcolumns(*args) ⇒ Object
(also: #config_columns)
args ==> idx, opt, val, idx, opt, val, …
-
#configrowlist(lst) ⇒ Object
(also: #config_rowlist)
lst ==> [idx, opt, val, idx, opt, val, …].
-
#configrows(*args) ⇒ Object
(also: #config_rows)
args ==> idx, opt, val, idx, opt, val, …
-
#containing(y) ⇒ Object
-
#containing_cell(x, y) ⇒ Object
(also: #containingcell)
-
#containing_column(x) ⇒ Object
(also: #containingcolumn)
-
#curcellselection ⇒ Object
-
#curselection ⇒ Object
-
#delete_columns(first, last = nil) ⇒ Object
(also: #deletecolumns)
-
#delete_items(first, last = nil) ⇒ Object
(also: #delete, #deleteitems)
-
#edit_cell(idx) ⇒ Object
(also: #editcell)
-
#editwinpath ⇒ Object
-
#editwintag ⇒ Object
-
#entrypath ⇒ Object
-
#fill_column(idx, txt) ⇒ Object
(also: #fillcolumn)
-
#finish_editing ⇒ Object
(also: #finishediting)
-
#formatinfo ⇒ Object
-
#get(first, last = nil) ⇒ Object
-
#get_attrib(name = nil) ⇒ Object
-
#get_cellattrib(name = nil) ⇒ Object
-
#get_cells(first, last = nil) ⇒ Object
(also: #getcells)
-
#get_columnattrib(name = nil) ⇒ Object
-
#get_columns(first, last = nil) ⇒ Object
(also: #getcolumns)
-
#get_keys(first, last = nil) ⇒ Object
(also: #getkeys)
-
#get_rowattrib(name = nil) ⇒ Object
-
#has_attrib?(name) ⇒ Boolean
-
#has_cellattrib?(idx, name) ⇒ Boolean
-
#has_columnattrib?(idx, name) ⇒ Boolean
-
#has_rowattrib?(idx, name) ⇒ Boolean
-
#imagelabelpath(idx) ⇒ Object
-
#index(idx) ⇒ Object
-
#insert(idx, *items) ⇒ Object
-
#insert_columnlist(idx, columnlist) ⇒ Object
(also: #insertcolumnlist)
-
#insert_columns(idx, *args) ⇒ Object
(also: #insertcolumns)
-
#insert_list(idx, list) ⇒ Object
(also: #insertlist)
-
#is_elem_snipped?(cellidx, tkvar) ⇒ Boolean
(also: #elem_snipped?)
-
#is_title_snipped?(colidx, tkvar) ⇒ Boolean
(also: #title_snipped?)
-
#itemlistvar ⇒ Object
-
#labelpath(idx) ⇒ Object
-
#labels ⇒ Object
-
#labeltag ⇒ Object
-
#move(src, target) ⇒ Object
-
#move_column(src, target) ⇒ Object
(also: #movecolumn)
-
#nearest(y) ⇒ Object
-
#nearest_cell(x, y) ⇒ Object
(also: #nearestcell)
-
#nearest_column(x) ⇒ Object
(also: #nearestcolumn)
-
#reject_input ⇒ Object
(also: #rejectinput)
-
#requested_columnwidth(idx) ⇒ Object
-
#reset_sortinfo ⇒ Object
(also: #resetsortinfo)
-
#scan_dragto(x, y) ⇒ Object
-
#scan_mark(x, y) ⇒ Object
-
#see(idx) ⇒ Object
-
#see_cell(idx) ⇒ Object
(also: #seecell)
-
#see_column(idx) ⇒ Object
(also: #seecolumn)
-
#selection_anchor(idx) ⇒ Object
-
#selection_clear(first, last = nil) ⇒ Object
-
#selection_includes(idx) ⇒ Object
-
#selection_set(first, last = nil) ⇒ Object
-
#separatorpath(idx = nil) ⇒ Object
-
#separators ⇒ Object
-
#set_attrib(*args) ⇒ Object
-
#set_cellattrib(*args) ⇒ Object
-
#set_columnattrib(*args) ⇒ Object
-
#set_rowattrib(*args) ⇒ Object
-
#size ⇒ Object
-
#sort(order = nil) ⇒ Object
-
#sort_by_column(idx, order = nil) ⇒ Object
-
#sort_by_column_decreasing(idx) ⇒ Object
-
#sort_by_column_increasing(idx) ⇒ Object
-
#sort_by_columnlist(idxlist, orderlist = None) ⇒ Object
-
#sort_decreasing ⇒ Object
-
#sort_increasing ⇒ Object
-
#sortByColumn_with_event_generate(idx) ⇒ Object
-
#sortcolumn ⇒ Object
-
#sortcolumnlist ⇒ Object
-
#sortorder ⇒ Object
-
#sortorderlist ⇒ Object
-
#stretched_columnwidth(idx) ⇒ Object
-
#toggle_columnhide(first, last = nil) ⇒ Object
-
#toggle_rowhide(first, last = nil) ⇒ Object
-
#toggle_visibility(first, last = nil) ⇒ Object
(also: #togglevisibility)
-
#total_columnwidth(idx) ⇒ Object
-
#unset_attrib(name) ⇒ Object
-
#unset_cellattrib(idx, name) ⇒ Object
-
#unset_columnattrib(idx, name) ⇒ Object
-
#unset_rowattrib(idx, name) ⇒ Object
-
#windowpath(idx) ⇒ Object
Methods included from Scrollable
#autoscroll, #unautoscroll
#yscrollbar, #yscrollcommand, #yview, #yview_moveto, #yview_scroll
#xscrollbar, #xscrollcommand, #xview, #xview_moveto, #xview_scroll
#__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
__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
#__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
#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
#dnd_bindsource, #dnd_bindsource_info, #dnd_bindtarget, #dnd_bindtarget_info, #dnd_clearsource, #dnd_cleartarget, #dnd_drag, version
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
#[], #[]=, __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
#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
991
992
993
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 991
def addBWidgetComboBox(name=None)
Tk.tk_call('::tablelist::addBWidgetComboBox', name)
end
|
.addBWidgetEntry(name = None) ⇒ Object
983
984
985
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 983
def addBWidgetEntry(name=None)
Tk.tk_call('::tablelist::addBWidgetEntry', name)
end
|
987
988
989
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 987
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
1033
1034
1035
1036
1037
1038
1039
1040
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1033
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
1051
1052
1053
1054
1055
1056
1057
1058
1059
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1051
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
1061
1062
1063
1064
1065
1066
1067
1068
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1061
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
1020
1021
1022
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1020
def addIncrCombobox(name=None)
Tk.tk_call('::tablelist::addIncrCombobox', name)
end
|
1002
1003
1004
1005
1006
1007
1008
1009
1010
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1002
def addIncrDateTimeWidget(type, seconds=false, name=None)
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
998
999
1000
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 998
def addIncrEntryfield(name=None)
Tk.tk_call('::tablelist::addIncrEntry', name)
end
|
.addIncrSpinint(name = None) ⇒ Object
1016
1017
1018
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1016
def addIncrSpinint(name=None)
Tk.tk_call('::tablelist::addIncrSpinint', name)
end
|
.addIncrSpinner(name = None) ⇒ Object
1012
1013
1014
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1012
def addIncrSpinner(name=None)
Tk.tk_call('::tablelist::addIncrSpinner', name)
end
|
.addIPAddrMentry(name = None) ⇒ Object
1070
1071
1072
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1070
def addIPAddrMentry(name=None)
Tk.tk_call('::tablelist::addIPAddrMentry', name)
end
|
.addOakleyCombobox(name = None) ⇒ Object
with Bryan Oakley’s combobox package
1027
1028
1029
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1027
def addOakleyCombobox(name=None)
Tk.tk_call('::tablelist::addOakleyCombobox', name)
end
|
.addTimeMentry(format, separator, gmt = false, name = None) ⇒ Object
1042
1043
1044
1045
1046
1047
1048
1049
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 1042
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
976
977
978
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 976
def convEventFields(descendant, x, y)
window(Tk.tk_call('::tablelist::convEventFields', descendant, x, y))
end
|
.get_current_theme ⇒ Object
29
30
31
|
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 29
def self.get_current_theme
Tk.tk_call('::tablelist::getCurrentTheme')
end
|
.get_theme_list ⇒ Object
33
34
35
|
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 33
def self.get_theme_list
TkComm.simplelist(Tk.tk_call('::tablelist::getThemes'))
end
|
.getTablelistColumn(descendant) ⇒ Object
971
972
973
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 971
def getTablelistColumn(descendant)
num_or_str(Tk.tk_call('::tablelist::getTablelistColumn', ))
end
|
.getTablelistPath(descendant) ⇒ Object
967
968
969
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 967
def getTablelistPath(descendant)
window(Tk.tk_call('::tablelist::getTablelistPath', descendant))
end
|
.package_name ⇒ Object
20
21
22
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 20
def self.package_name
PACKAGE_NAME
end
|
.package_version ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 24
def self.package_version
begin
TkPackage.require(self.package_name)
rescue
''
end
end
|
.set_theme(theme) ⇒ Object
commands related to tile Themems
25
26
27
|
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 25
def self.set_theme(theme)
Tk.tk_call('::tablelist::setTheme', theme)
end
|
.set_theme_defaults ⇒ Object
36
37
38
|
# File 'lib/tkextlib/tcllib/tablelist_tile.rb', line 36
def self.set_theme_defaults
Tk.tk_call('::tablelist::setThemeDefaults')
end
|
.use_Tile? ⇒ Boolean
32
33
34
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 32
def self.use_Tile?
(Tk::Tcllib::Tablelist_usingTile)? true: false
end
|
Instance Method Details
#activate(index) ⇒ Object
283
284
285
286
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 283
def activate(index)
tk_send('activate', _to_idx(index))
self
end
|
#activate_cell(index) ⇒ Object
Also known as:
activatecell
288
289
290
291
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 288
def activate_cell(index)
tk_send('activatecell', _to_idx(index))
self
end
|
#addToSortColumns_with_event_generate(idx) ⇒ Object
856
857
858
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 856
def addToSortColumns_with_event_generate(idx)
tk_call('::tablelist::addToSortColumns', @path, _to_idx(idx))
end
|
#bbox(index) ⇒ Object
311
312
313
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 311
def bbox(index)
list(tk_send('bbox', _to_idx(index)))
end
|
315
316
317
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 315
def bodypath
window(tk_send('bodypath'))
end
|
319
320
321
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 319
def bodytag
TkBindTag.new_by_name(tk_send('bodytag'))
end
|
#cancel_editing ⇒ Object
Also known as:
cancelediting
323
324
325
326
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 323
def cancel_editing
tk_send('cancelediting')
self
end
|
#cellindex(idx) ⇒ Object
346
347
348
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 346
def cellindex(idx)
_from_idx(tk_send('cellindex', _to_idx(idx)))
end
|
#cellselection_anchor(idx) ⇒ Object
350
351
352
353
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 350
def cellselection_anchor(idx)
tk_send('cellselection', 'anchor', _to_idx(idx))
self
end
|
#cellselection_clear(first, last = nil) ⇒ Object
355
356
357
358
359
360
361
362
363
364
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 355
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
366
367
368
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 366
def cellselection_includes(idx)
bool(tk_send('cellselection', 'includes', _to_idx(idx)))
end
|
#cellselection_set(first, last = nil) ⇒ Object
370
371
372
373
374
375
376
377
378
379
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 370
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
|
#columncount ⇒ Object
398
399
400
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 398
def columncount
number(tk_send('columncount'))
end
|
#columnindex(idx) ⇒ Object
402
403
404
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 402
def columnindex(idx)
number(tk_send('columnindex', _to_idx(idx)))
end
|
#columnwidth(idx, opt = nil) ⇒ Object
406
407
408
409
410
411
412
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 406
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, …]
423
424
425
426
427
428
429
430
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 423
def configcelllist(lst) 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, …
433
434
435
436
437
438
439
440
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 433
def configcells(*args) 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, …]
443
444
445
446
447
448
449
450
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 443
def configcolumnlist(lst) 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, …
453
454
455
456
457
458
459
460
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 453
def configcolumns(*args) 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, …]
463
464
465
466
467
468
469
470
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 463
def configrowlist(lst) 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, …
473
474
475
476
477
478
479
480
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 473
def configrows(*args) ary = []
args.slice(3){|idx, opt, val|
ary << _to_idx(idx) << "-#{opt}" << val
}
tk_send('configrows', *ary)
self
end
|
#containing(y) ⇒ Object
483
484
485
486
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 483
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
488
489
490
491
492
493
494
495
496
497
498
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 488
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
501
502
503
504
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 501
def containing_column(x)
idx = num_or_str(tk_send('containingcolumn', x))
(idx.kind_of?(Fixnum) && idx < 0)? nil: idx
end
|
#curcellselection ⇒ Object
507
508
509
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 507
def curcellselection
simplelist(tk_send('curcellselection')).collect!{|idx| _from_idx(idx)}
end
|
#curselection ⇒ Object
511
512
513
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 511
def curselection
list(tk_send('curselection'))
end
|
#delete_columns(first, last = nil) ⇒ Object
Also known as:
deletecolumns
528
529
530
531
532
533
534
535
536
537
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 528
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
515
516
517
518
519
520
521
522
523
524
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 515
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
540
541
542
543
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 540
def edit_cell(idx)
tk_send('editcell', _to_idx(idx))
self
end
|
#editwinpath ⇒ Object
550
551
552
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 550
def editwinpath
window(tk_send('editwinpath'))
end
|
#editwintag ⇒ Object
546
547
548
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 546
def editwintag
TkBindTag.new_by_name(tk_send('editwintag'))
end
|
#entrypath ⇒ Object
554
555
556
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 554
def entrypath
window(tk_send('entrypath'))
end
|
#fill_column(idx, txt) ⇒ Object
Also known as:
fillcolumn
558
559
560
561
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 558
def fill_column(idx, txt)
tk_send('fillcolumn', _to_idx(idx), txt)
self
end
|
#finish_editing ⇒ Object
Also known as:
finishediting
564
565
566
567
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 564
def finish_editing
tk_send('finishediting')
self
end
|
570
571
572
573
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 570
def formatinfo
key, row, col = simplelist(tk_send('formatinfo'))
[key, number(row), number(col)]
end
|
#get(first, last = nil) ⇒ Object
575
576
577
578
579
580
581
582
583
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 575
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
294
295
296
297
298
299
300
301
302
303
304
305
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 294
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
329
330
331
332
333
334
335
336
337
338
339
340
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 329
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
585
586
587
588
589
590
591
592
593
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 585
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
381
382
383
384
385
386
387
388
389
390
391
392
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 381
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
596
597
598
599
600
601
602
603
604
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 596
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
607
608
609
610
611
612
613
614
615
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 607
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
728
729
730
731
732
733
734
735
736
737
738
739
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 728
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
618
619
620
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 618
def has_attrib?(name)
bool(tk_send('hasattrib', name))
end
|
#has_cellattrib?(idx, name) ⇒ Boolean
622
623
624
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 622
def has_cellattrib?(idx, name)
bool(tk_send('hascellattrib', _to_idx(idx), name))
end
|
#has_columnattrib?(idx, name) ⇒ Boolean
626
627
628
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 626
def has_columnattrib?(idx, name)
bool(tk_send('hascolumnattrib', _to_idx(idx), name))
end
|
#has_rowattrib?(idx, name) ⇒ Boolean
630
631
632
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 630
def has_rowattrib?(idx, name)
bool(tk_send('hasrowattrib', _to_idx(idx), name))
end
|
#imagelabelpath(idx) ⇒ Object
634
635
636
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 634
def imagelabelpath(idx)
window(tk_send('imagelabelpath', _to_idx(idx)))
end
|
#index(idx) ⇒ Object
638
639
640
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 638
def index(idx)
number(tk_send('index', _to_idx(idx)))
end
|
#insert(idx, *items) ⇒ Object
642
643
644
645
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 642
def insert(idx, *items)
tk_send('insert', _to_idx(idx), *items)
self
end
|
#insert_columnlist(idx, columnlist) ⇒ Object
Also known as:
insertcolumnlist
647
648
649
650
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 647
def insert_columnlist(idx, columnlist)
tk_send('insertcolumnlist', _to_idx(idx), columnlist)
self
end
|
#insert_columns(idx, *args) ⇒ Object
Also known as:
insertcolumns
653
654
655
656
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 653
def insert_columns(idx, *args)
tk_send('insertcolums', _to_idx(idx), *args)
self
end
|
#insert_list(idx, list) ⇒ Object
Also known as:
insertlist
659
660
661
662
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 659
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?
665
666
667
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 665
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?
670
671
672
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 670
def is_title_snipped?(colidx, tkvar)
bool(tk_send('istitlesnipped', _to_idx(colidx), tkvar))
end
|
#itemlistvar ⇒ Object
675
676
677
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 675
def itemlistvar
TkVarAccess.new(tk_send('itemlistvar'))
end
|
#labelpath(idx) ⇒ Object
679
680
681
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 679
def labelpath(idx)
window(tk_send('labelpath', _to_idx(idx)))
end
|
683
684
685
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 683
def labels
simplelist(tk_send('labels'))
end
|
687
688
689
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 687
def labeltag
TkBindTag.new_by_name(tk_send('labeltag'))
end
|
#move(src, target) ⇒ Object
691
692
693
694
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 691
def move(src, target)
tk_send('move', _to_idx(src), _to_idx(target))
self
end
|
#move_column(src, target) ⇒ Object
Also known as:
movecolumn
696
697
698
699
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 696
def move_column(src, target)
tk_send('movecolumn', _to_idx(src), _to_idx(target))
self
end
|
#nearest(y) ⇒ Object
702
703
704
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 702
def nearest(y)
_from_idx(tk_send('nearest', y))
end
|
#nearest_cell(x, y) ⇒ Object
Also known as:
nearestcell
706
707
708
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 706
def nearest_cell(x, y)
_from_idx(tk_send('nearestcell', x, y))
end
|
#nearest_column(x) ⇒ Object
Also known as:
nearestcolumn
711
712
713
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 711
def nearest_column(x)
_from_idx(tk_send('nearestcolumn', x))
end
|
716
717
718
719
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 716
def reject_input
tk_send('rejectinput')
self
end
|
#requested_columnwidth(idx) ⇒ Object
413
414
415
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 413
def requested_columnwidth(idx)
columnwidth(idx, 'requested')
end
|
#reset_sortinfo ⇒ Object
Also known as:
resetsortinfo
722
723
724
725
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 722
def reset_sortinfo
tk_send('resetsortinfo')
self
end
|
#scan_dragto(x, y) ⇒ Object
750
751
752
753
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 750
def scan_dragto(x, y)
tk_send('scan', 'dragto', x, y)
self
end
|
#scan_mark(x, y) ⇒ Object
745
746
747
748
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 745
def scan_mark(x, y)
tk_send('scan', 'mark', x, y)
self
end
|
755
756
757
758
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 755
def see(idx)
tk_send('see', _to_idx(idx))
self
end
|
#see_cell(idx) ⇒ Object
Also known as:
seecell
760
761
762
763
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 760
def see_cell(idx)
tk_send('seecell', _to_idx(idx))
self
end
|
#see_column(idx) ⇒ Object
Also known as:
seecolumn
766
767
768
769
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 766
def see_column(idx)
tk_send('seecolumn', _to_idx(idx))
self
end
|
#selection_anchor(idx) ⇒ Object
772
773
774
775
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 772
def selection_anchor(idx)
tk_send('selection', 'anchor', _to_idx(idx))
self
end
|
#selection_clear(first, last = nil) ⇒ Object
777
778
779
780
781
782
783
784
785
786
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 777
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
788
789
790
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 788
def selection_includes(idx)
bool(tk_send('selection', 'includes', _to_idx(idx)))
end
|
#selection_set(first, last = nil) ⇒ Object
792
793
794
795
796
797
798
799
800
801
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 792
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
803
804
805
806
807
808
809
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 803
def separatorpath(idx=nil)
if idx
window(tk_send('separatorpath', _to_idx(idx)))
else
window(tk_send('separatorpath'))
end
end
|
#separators ⇒ Object
811
812
813
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 811
def separators
simplelist(tk_send('separators')).collect!{|w| window(w)}
end
|
#set_attrib(*args) ⇒ Object
306
307
308
309
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 306
def set_attrib(*args)
tk_send('attrib', *(args.flatten))
self
end
|
#set_cellattrib(*args) ⇒ Object
341
342
343
344
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 341
def set_cellattrib(*args)
tk_send('cellattrib', *(args.flatten))
self
end
|
#set_columnattrib(*args) ⇒ Object
393
394
395
396
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 393
def set_columnattrib(*args)
tk_send('columnattrib', *(args.flatten))
self
end
|
#set_rowattrib(*args) ⇒ Object
740
741
742
743
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 740
def set_rowattrib(*args)
tk_send('rowattrib', *(args.flatten))
self
end
|
815
816
817
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 815
def size
number(tk_send('size'))
end
|
#sort(order = nil) ⇒ Object
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 819
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
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 860
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
879
880
881
882
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 879
def sort_by_column_decreasing(idx)
tk_send('sortbycolumn', _to_idx(idx), '-decreasing')
self
end
|
#sort_by_column_increasing(idx) ⇒ Object
875
876
877
878
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 875
def sort_by_column_increasing(idx)
tk_send('sortbycolumn', _to_idx(idx), '-increasing')
self
end
|
#sort_by_columnlist(idxlist, orderlist = None) ⇒ Object
884
885
886
887
888
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 884
def sort_by_columnlist(idxlist, orderlist=None)
tk_send('sortbycolumnlist', idxlist.map{|idx| _to_idx(idx)}, orderlist)
self
end
|
#sort_decreasing ⇒ Object
838
839
840
841
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 838
def sort_decreasing
tk_send('sort', '-decreasing')
self
end
|
#sort_increasing ⇒ Object
834
835
836
837
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 834
def sort_increasing
tk_send('sort', '-increasing')
self
end
|
#sortByColumn_with_event_generate(idx) ⇒ Object
852
853
854
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 852
def sortByColumn_with_event_generate(idx)
tk_call('::tablelist::sortByColumn', @path, _to_idx(idx))
end
|
#sortcolumn ⇒ Object
890
891
892
893
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 890
def sortcolumn
idx = num_or_str(tk_send('sortcolum'))
(idx.kind_of?(Fixnum) && idx < 0)? nil: idx
end
|
#sortcolumnlist ⇒ Object
895
896
897
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 895
def sortcolumnlist
simplelist(tk_send('sortcolumlist')).map{|col| num_or_str(col)}
end
|
#sortorder ⇒ Object
899
900
901
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 899
def sortorder
tk_send('sortorder')
end
|
#sortorderlist ⇒ Object
903
904
905
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 903
def sortorderlist
simplelist(tk_send('sortorderlist'))
end
|
#stretched_columnwidth(idx) ⇒ Object
416
417
418
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 416
def stretched_columnwidth(idx)
columnwidth(idx, 'stretched')
end
|
#toggle_columnhide(first, last = nil) ⇒ Object
907
908
909
910
911
912
913
914
915
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 907
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
917
918
919
920
921
922
923
924
925
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 917
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
927
928
929
930
931
932
933
934
935
936
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 927
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
419
420
421
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 419
def total_columnwidth(idx)
columnwidth(idx, 'total')
end
|
#unset_attrib(name) ⇒ Object
939
940
941
942
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 939
def unset_attrib(name)
tk_send('unsetattrib', name)
self
end
|
#unset_cellattrib(idx, name) ⇒ Object
944
945
946
947
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 944
def unset_cellattrib(idx, name)
tk_send('unsetcellattrib', _to_idx(idx), name)
self
end
|
#unset_columnattrib(idx, name) ⇒ Object
949
950
951
952
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 949
def unset_columnattrib(idx, name)
tk_send('unsetcolumnattrib', _to_idx(idx), name)
self
end
|
#unset_rowattrib(idx, name) ⇒ Object
954
955
956
957
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 954
def unset_rowattrib(idx, name)
tk_send('unsetrowattrib', _to_idx(idx), name)
self
end
|
#windowpath(idx) ⇒ Object
959
960
961
|
# File 'lib/tkextlib/tcllib/tablelist_core.rb', line 959
def windowpath(idx)
window(tk_send('windowpath', _to_idx(idx)))
end
|