• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ruby-106/ruby/ext/tk/lib/

Lines Matching refs:conf

533   # def hash_kv(keys, enc_mode = nil, conf = [], flat = false)
534 def hash_kv(keys, enc_mode = nil, conf = nil)
549 if conf
550 conf + dst
3578 conf = {}
3579 ltn.latin_configinfo.each{|k,val| conf[k] = val}
3581 fobj.latin_configure(conf.update(keys))
3583 fobj.latin_configure(conf)
3638 conf = {}
3639 knj.kanji_configinfo.each{|k,val| conf[k] = val}
3641 fobj.kanji_configure(conf.update(keys))
3643 fobj.kanji_configure(conf)
3858 def config_hash_kv(keys, enc_mode = nil, conf = nil)
3859 hash_kv(__conv_keyonly_opts(keys), enc_mode, conf)
3928 conf = tk_call_without_enc(*(__cget_cmd << "-#{slot}"))
3929 if conf =~ /^[0-9+-]/
3930 list(conf)
3932 conf
4006 conf = slot.find{|kk, vv| kk == defkey.to_s}
4007 if conf
4008 k, v = conf
4036 if ( conf = __keyonly_optkeys.find{|k, v| k.to_s == slot} )
4037 defkey, undefkey = conf
4112 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{fontkey}"))))
4113 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{fontkey}")), false, true)
4114 conf[__configinfo_struct[:key]] =
4115 conf[__configinfo_struct[:key]][1..-1]
4117 || conf.size > __configinfo_struct[:alias] + 1 )
4118 fnt = conf[__configinfo_struct[:default_value]]
4120 conf[__configinfo_struct[:default_value]] = TkNamedFont.new(fnt)
4122 conf[__configinfo_struct[:current_value]] = fontobj(fontkey)
4124 && conf.size == __configinfo_struct[:alias] + 1 \
4125 && conf[__configinfo_struct[:alias]][0] == ?- )
4126 conf[__configinfo_struct[:alias]] =
4127 conf[__configinfo_struct[:alias]][1..-1]
4129 conf
4142 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd() << "-#{slot}")), false, true)
4144 && conf[__configinfo_struct[:default_value]] )
4145 optval = conf[__configinfo_struct[:default_value]]
4152 conf[__configinfo_struct[:default_value]] = val
4154 if ( conf[__configinfo_struct[:current_value]] )
4155 optval = conf[__configinfo_struct[:current_value]]
4162 conf[__configinfo_struct[:current_value]] = val
4170 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4171 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4174 && conf[__configinfo_struct[:default_value]])
4176 conf[__configinfo_struct[:default_value]] =
4177 number(conf[__configinfo_struct[:default_value]])
4179 conf[__configinfo_struct[:default_value]] = nil
4182 if ( conf[__configinfo_struct[:current_value]] )
4184 conf[__configinfo_struct[:current_value]] =
4185 number(conf[__configinfo_struct[:current_value]])
4187 conf[__configinfo_struct[:current_value]] = nil
4192 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4193 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4196 && conf[__configinfo_struct[:default_value]])
4197 conf[__configinfo_struct[:default_value]] =
4198 num_or_str(conf[__configinfo_struct[:default_value]])
4200 if ( conf[__configinfo_struct[:current_value]] )
4201 conf[__configinfo_struct[:current_value]] =
4202 num_or_str(conf[__configinfo_struct[:current_value]])
4206 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4207 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4210 && conf[__configinfo_struct[:default_value]])
4212 conf[__configinfo_struct[:default_value]] =
4213 bool(conf[__configinfo_struct[:default_value]])
4215 conf[__configinfo_struct[:default_value]] = nil
4218 if ( conf[__configinfo_struct[:current_value]] )
4220 conf[__configinfo_struct[:current_value]] =
4221 bool(conf[__configinfo_struct[:current_value]])
4223 conf[__configinfo_struct[:current_value]] = nil
4228 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4229 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4232 && conf[__configinfo_struct[:default_value]])
4233 conf[__configinfo_struct[:default_value]] =
4234 simplelist(conf[__configinfo_struct[:default_value]])
4236 if ( conf[__configinfo_struct[:current_value]] )
4237 conf[__configinfo_struct[:current_value]] =
4238 simplelist(conf[__configinfo_struct[:current_value]])
4242 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4243 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4246 && conf[__configinfo_struct[:default_value]] \
4247 && conf[__configinfo_struct[:default_value]] =~ /^[0-9]/ )
4248 conf[__configinfo_struct[:default_value]] =
4249 list(conf[__configinfo_struct[:default_value]])
4251 if ( conf[__configinfo_struct[:current_value]] \
4252 && conf[__configinfo_struct[:current_value]] =~ /^[0-9]/ )
4253 conf[__configinfo_struct[:current_value]] =
4254 list(conf[__configinfo_struct[:current_value]])
4258 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4259 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4262 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4265 && conf[__configinfo_struct[:default_value]])
4266 v = conf[__configinfo_struct[:default_value]]
4268 conf[__configinfo_struct[:default_value]] = nil
4270 conf[__configinfo_struct[:default_value]] = TkVarAccess.new(v)
4273 if ( conf[__configinfo_struct[:current_value]] )
4274 v = conf[__configinfo_struct[:current_value]]
4276 conf[__configinfo_struct[:current_value]] = nil
4278 conf[__configinfo_struct[:current_value]] = TkVarAccess.new(v)
4283 # conf = tk_split_list(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4284 # conf = tk_split_list(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), 0, false, true)
4285 conf = tk_split_list(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), 1, false, true)
4287 conf[__configinfo_struct[:key]] =
4288 conf[__configinfo_struct[:key]][1..-1]
4291 && conf.size == __configinfo_struct[:alias] + 1 \
4292 && conf[__configinfo_struct[:alias]][0] == ?- )
4293 conf[__configinfo_struct[:alias]] =
4294 conf[__configinfo_struct[:alias]][1..-1]
4297 conf
4301 # conf = tk_split_simplelist(conflist)
4303 conf = tk_split_simplelist(conflist, false, true)
4304 conf[__configinfo_struct[:key]] =
4305 conf[__configinfo_struct[:key]][1..-1]
4307 optkey = conf[__configinfo_struct[:key]]
4312 && conf[__configinfo_struct[:default_value]] )
4313 optval = conf[__configinfo_struct[:default_value]]
4320 conf[__configinfo_struct[:default_value]] = val
4322 if ( conf[__configinfo_struct[:current_value]] )
4323 optval = conf[__configinfo_struct[:current_value]]
4330 conf[__configinfo_struct[:current_value]] = val
4338 && conf[__configinfo_struct[:default_value]] )
4340 conf[__configinfo_struct[:default_value]] =
4341 number(conf[__configinfo_struct[:default_value]])
4343 conf[__configinfo_struct[:default_value]] = nil
4346 if ( conf[__configinfo_struct[:current_value]] )
4348 conf[__configinfo_struct[:current_value]] =
4349 number(conf[__configinfo_struct[:current_value]])
4351 conf[__configinfo_struct[:current_value]] = nil
4357 && conf[__configinfo_struct[:default_value]] )
4358 conf[__configinfo_struct[:default_value]] =
4359 num_or_str(conf[__configinfo_struct[:default_value]])
4361 if ( conf[__configinfo_struct[:current_value]] )
4362 conf[__configinfo_struct[:current_value]] =
4363 num_or_str(conf[__configinfo_struct[:current_value]])
4368 && conf[__configinfo_struct[:default_value]] )
4370 conf[__configinfo_struct[:default_value]] =
4371 bool(conf[__configinfo_struct[:default_value]])
4373 conf[__configinfo_struct[:default_value]] = nil
4376 if ( conf[__configinfo_struct[:current_value]] )
4378 conf[__configinfo_struct[:current_value]] =
4379 bool(conf[__configinfo_struct[:current_value]])
4381 conf[__configinfo_struct[:current_value]] = nil
4387 && conf[__configinfo_struct[:default_value]] )
4388 conf[__configinfo_struct[:default_value]] =
4389 simplelist(conf[__configinfo_struct[:default_value]])
4391 if ( conf[__configinfo_struct[:current_value]] )
4392 conf[__configinfo_struct[:current_value]] =
4393 simplelist(conf[__configinfo_struct[:current_value]])
4398 && conf[__configinfo_struct[:default_value]] \
4399 && conf[__configinfo_struct[:default_value]] =~ /^[0-9]/ )
4400 conf[__configinfo_struct[:default_value]] =
4401 list(conf[__configinfo_struct[:default_value]])
4403 if ( conf[__configinfo_struct[:current_value]] \
4404 && conf[__configinfo_struct[:current_value]] =~ /^[0-9]/ )
4405 conf[__configinfo_struct[:current_value]] =
4406 list(conf[__configinfo_struct[:current_value]])
4411 && conf[__configinfo_struct[:default_value]] )
4412 v = conf[__configinfo_struct[:default_value]]
4414 conf[__configinfo_struct[:default_value]] = nil
4416 conf[__configinfo_struct[:default_value]] = TkVarAccess.new(v)
4419 if ( conf[__configinfo_struct[:current_value]] )
4420 v = conf[__configinfo_struct[:current_value]]
4422 conf[__configinfo_struct[:current_value]] = nil
4424 conf[__configinfo_struct[:current_value]] = TkVarAccess.new(v)
4430 && conf[__configinfo_struct[:default_value]] )
4431 if conf[__configinfo_struct[:default_value]].index('{')
4432 conf[__configinfo_struct[:default_value]] =
4433 tk_split_list(conf[__configinfo_struct[:default_value]])
4435 conf[__configinfo_struct[:default_value]] =
4436 tk_tcl2ruby(conf[__configinfo_struct[:default_value]])
4439 if conf[__configinfo_struct[:current_value]]
4440 if conf[__configinfo_struct[:current_value]].index('{')
4441 conf[__configinfo_struct[:current_value]] =
4442 tk_split_list(conf[__configinfo_struct[:current_value]])
4444 conf[__configinfo_struct[:current_value]] =
4445 tk_tcl2ruby(conf[__configinfo_struct[:current_value]])
4451 && conf.size == __configinfo_struct[:alias] + 1 \
4452 && conf[__configinfo_struct[:alias]][0] == ?- )
4453 conf[__configinfo_struct[:alias]] =
4454 conf[__configinfo_struct[:alias]][1..-1]
4457 conf
4487 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{fontkey}"))))
4488 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{fontkey}")), false, true)
4489 conf[__configinfo_struct[:key]] =
4490 conf[__configinfo_struct[:key]][1..-1]
4493 || conf.size > __configinfo_struct[:alias] + 1 )
4494 fnt = conf[__configinfo_struct[:default_value]]
4496 conf[__configinfo_struct[:default_value]] = TkNamedFont.new(fnt)
4498 conf[__configinfo_struct[:current_value]] = fontobj(fontkey)
4499 { conf.shift => conf }
4501 && conf.size == __configinfo_struct[:alias] + 1 )
4502 if conf[__configinfo_struct[:alias]][0] == ?-
4503 conf[__configinfo_struct[:alias]] =
4504 conf[__configinfo_struct[:alias]][1..-1]
4506 { conf[0] => conf[1] }
4508 { conf.shift => conf }
4522 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4524 && conf[__configinfo_struct[:default_value]] )
4525 optval = conf[__configinfo_struct[:default_value]]
4532 conf[__configinfo_struct[:default_value]] = val
4534 if ( conf[__configinfo_struct[:current_value]] )
4535 optval = conf[__configinfo_struct[:current_value]]
4542 conf[__configinfo_struct[:current_value]] = val
4550 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4551 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4554 && conf[__configinfo_struct[:default_value]] )
4556 conf[__configinfo_struct[:default_value]] =
4557 number(conf[__configinfo_struct[:default_value]])
4559 conf[__configinfo_struct[:default_value]] = nil
4562 if ( conf[__configinfo_struct[:current_value]] )
4564 conf[__configinfo_struct[:current_value]] =
4565 number(conf[__configinfo_struct[:current_value]])
4567 conf[__configinfo_struct[:current_value]] = nil
4572 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4573 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4576 && conf[__configinfo_struct[:default_value]] )
4577 conf[__configinfo_struct[:default_value]] =
4578 num_or_str(conf[__configinfo_struct[:default_value]])
4580 if ( conf[__configinfo_struct[:current_value]] )
4581 conf[__configinfo_struct[:current_value]] =
4582 num_or_str(conf[__configinfo_struct[:current_value]])
4586 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4587 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4590 && conf[__configinfo_struct[:default_value]] )
4592 conf[__configinfo_struct[:default_value]] =
4593 bool(conf[__configinfo_struct[:default_value]])
4595 conf[__configinfo_struct[:default_value]] = nil
4598 if ( conf[__configinfo_struct[:current_value]] )
4600 conf[__configinfo_struct[:current_value]] =
4601 bool(conf[__configinfo_struct[:current_value]])
4603 conf[__configinfo_struct[:current_value]] = nil
4608 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4609 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4612 && conf[__configinfo_struct[:default_value]] )
4613 conf[__configinfo_struct[:default_value]] =
4614 simplelist(conf[__configinfo_struct[:default_value]])
4616 if ( conf[__configinfo_struct[:current_value]] )
4617 conf[__configinfo_struct[:current_value]] =
4618 simplelist(conf[__configinfo_struct[:current_value]])
4622 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4623 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4626 && conf[__configinfo_struct[:default_value]] \
4627 && conf[__configinfo_struct[:default_value]] =~ /^[0-9]/ )
4628 conf[__configinfo_struct[:default_value]] =
4629 list(conf[__configinfo_struct[:default_value]])
4631 if ( conf[__configinfo_struct[:current_value]] \
4632 && conf[__configinfo_struct[:current_value]] =~ /^[0-9]/ )
4633 conf[__configinfo_struct[:current_value]] =
4634 list(conf[__configinfo_struct[:current_value]])
4638 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4641 && conf[__configinfo_struct[:default_value]] )
4642 v = conf[__configinfo_struct[:default_value]]
4644 conf[__configinfo_struct[:default_value]] = nil
4646 conf[__configinfo_struct[:default_value]] = TkVarAccess.new(v)
4649 if ( conf[__configinfo_struct[:current_value]] )
4650 v = conf[__configinfo_struct[:current_value]]
4652 conf[__configinfo_struct[:current_value]] = nil
4654 conf[__configinfo_struct[:current_value]] = TkVarAccess.new(v)
4659 # conf = tk_split_simplelist(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4660 conf = tk_split_simplelist(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), false, true)
4662 # conf = tk_split_list(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
4663 conf = tk_split_list(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), 0, false, true)
4665 conf[__configinfo_struct[:key]] =
4666 conf[__configinfo_struct[:key]][1..-1]
4669 && conf.size == __configinfo_struct[:alias] + 1 )
4670 if conf[__configinfo_struct[:alias]][0] == ?-
4671 conf[__configinfo_struct[:alias]] =
4672 conf[__configinfo_struct[:alias]][1..-1]
4674 { conf[0] => conf[1] }
4676 { conf.shift => conf }
4682 # conf = tk_split_simplelist(conflist)
4684 conf = tk_split_simplelist(conflist, false, true)
4685 conf[__configinfo_struct[:key]] =
4686 conf[__configinfo_struct[:key]][1..-1]
4688 optkey = conf[__configinfo_struct[:key]]
4693 && conf[__configinfo_struct[:default_value]] )
4694 optval = conf[__configinfo_struct[:default_value]]
4701 conf[__configinfo_struct[:default_value]] = val
4703 if ( conf[__configinfo_struct[:current_value]] )
4704 optval = conf[__configinfo_struct[:current_value]]
4711 conf[__configinfo_struct[:current_value]] = val
4719 && conf[__configinfo_struct[:default_value]] )
4721 conf[__configinfo_struct[:default_value]] =
4722 number(conf[__configinfo_struct[:default_value]])
4724 conf[__configinfo_struct[:default_value]] = nil
4727 if ( conf[__configinfo_struct[:current_value]] )
4729 conf[__configinfo_struct[:current_value]] =
4730 number(conf[__configinfo_struct[:current_value]])
4732 conf[__configinfo_struct[:current_value]] = nil
4738 && conf[__configinfo_struct[:default_value]] )
4739 conf[__configinfo_struct[:default_value]] =
4740 num_or_str(conf[__configinfo_struct[:default_value]])
4742 if ( conf[__configinfo_struct[:current_value]] )
4743 conf[__configinfo_struct[:current_value]] =
4744 num_or_str(conf[__configinfo_struct[:current_value]])
4749 && conf[__configinfo_struct[:default_value]] )
4751 conf[__configinfo_struct[:default_value]] =
4752 bool(conf[__configinfo_struct[:default_value]])
4754 conf[__configinfo_struct[:default_value]] = nil
4757 if ( conf[__configinfo_struct[:current_value]] )
4759 conf[__configinfo_struct[:current_value]] =
4760 bool(conf[__configinfo_struct[:current_value]])
4762 conf[__configinfo_struct[:current_value]] = nil
4768 && conf[__configinfo_struct[:default_value]] )
4769 conf[__configinfo_struct[:default_value]] =
4770 simplelist(conf[__configinfo_struct[:default_value]])
4772 if ( conf[__configinfo_struct[:current_value]] )
4773 conf[__configinfo_struct[:current_value]] =
4774 simplelist(conf[__configinfo_struct[:current_value]])
4779 && conf[__configinfo_struct[:default_value]] \
4780 && conf[__configinfo_struct[:default_value]] =~ /^[0-9]/ )
4781 conf[__configinfo_struct[:default_value]] =
4782 list(conf[__configinfo_struct[:default_value]])
4784 if ( conf[__configinfo_struct[:current_value]] \
4785 && conf[__configinfo_struct[:current_value]] =~ /^[0-9]/ )
4786 conf[__configinfo_struct[:current_value]] =
4787 list(conf[__configinfo_struct[:current_value]])
4792 && conf[__configinfo_struct[:default_value]] )
4793 v = conf[__configinfo_struct[:default_value]]
4795 conf[__configinfo_struct[:default_value]] = nil
4797 conf[__configinfo_struct[:default_value]] = TkVarAccess.new
4800 if ( conf[__configinfo_struct[:current_value]] )
4801 v = conf[__configinfo_struct[:current_value]]
4803 conf[__configinfo_struct[:current_value]] = nil
4805 conf[__configinfo_struct[:current_value]] = TkVarAccess.new
4811 && conf[__configinfo_struct[:default_value]] )
4812 if conf[__configinfo_struct[:default_value]].index('{')
4813 conf[__configinfo_struct[:default_value]] =
4814 tk_split_list(conf[__configinfo_struct[:default_value]])
4816 conf[__configinfo_struct[:default_value]] =
4817 tk_tcl2ruby(conf[__configinfo_struct[:default_value]])
4820 if conf[__configinfo_struct[:current_value]]
4821 if conf[__configinfo_struct[:current_value]].index('{')
4822 conf[__configinfo_struct[:current_value]] =
4823 tk_split_list(conf[__configinfo_struct[:current_value]])
4825 conf[__configinfo_struct[:current_value]] =
4826 tk_tcl2ruby(conf[__configinfo_struct[:current_value]])
4832 && conf.size == __configinfo_struct[:alias] + 1 )
4833 if conf[__configinfo_struct[:alias]][0] == ?-
4834 conf[__configinfo_struct[:alias]] =
4835 conf[__configinfo_struct[:alias]][1..-1]
4837 ret[conf[0]] = conf[1]
4839 ret[conf.shift] = conf
4889 conf = configinfo(slot)
4891 || conf.size > __configinfo_struct[:alias] + 1 )
4892 return {conf[0] => conf[-1]}
4894 slot = conf[__configinfo_struct[:alias]]
5487 # conf = tk_split_list(tk_call('place', 'configure', epath, "-#{slot}") )
5488 # conf[0] = conf[0][1..-1]
5489 # conf
5493 # conf = tk_split_simplelist(conflist)
5494 # conf[0] = conf[0][1..-1]
5495 # conf