[Incrtcl-develop] porting GDB's "insight" to itk-3.3
by Mikhail Teterin other posts by this author
Jun 22 2007 6:34AM messages near this date
[Incrtcl-develop] [ incrtcl-Iwidgets Feature Requests-1758439 ] initialize combobox with defult value
|
[Incrtcl-develop] [ incrtcl-Bugs-1736473 ] Signed char passed to tolower()
Hello!
As you may know, gdb has a GUI front-end called "insight". The GUI is
written using itk/itcl, but the code is expecting version 3.2.1 (from
2001).
To port Insight to FreeBSD, I'd like to fix it to use the itk-3.3
syntax, so that the insight port can rely on the already existing
port of itk (which installs the 3.3).
I alredy did a bunch of s/itcl_foo/itcl::foo/ replacements, but
there appear to have been some changes to the widgets as well. The
following is a typical error-stack:
invalid command name "::.srcwin0.srcwin.container.pane0.childsite.con"
while executing
"::.srcwin0.srcwin.container.pane0.childsite.con _post file"
(in namespace inscope "::SrcBar" script line 1)
invoked from within
"namespace inscope ::SrcBar {::.srcwin0.srcwin.container.pane0.childsite.con _post file}"
invoked from within
"{.srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container
#pane0#childsite#con#menubar#m#file} post 41 69"
invoked from within
"$menu postcascade active"
(procedure "tk::MenuButtonDown" line 8)
invoked from within
"tk::MenuButtonDown .srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m"
(command bound to event)errorCode is NONE
Now, having attacked a TkCon console to the gdbtk interpreter, I can
see, that, indeed, the ....con does not exist as a command, but a whole
lot of its children does exist:
% info comm ::.srcwin0.srcwin.container.pane0.childsite.con.*
::.srcwin0.srcwin.container.pane0.childsite.con.menubar ::.srcwin0.srcwin.container.pane0.ch
ildsite.con.menubar.m.run ::.srcwin0.srcwin.container.pane0.childsite.con.toolbar.t ::.srcwi
n0.srcwin.container.pane0.childsite.con.toolbar ::.srcwin0.srcwin.container.pane0.childsite.
con.menubar.m.view ::.srcwin0.srcwin.container.pane0.childsite.con.toolbar.t.stop ::.srcwin0
.srcwin.container.pane0.childsite.con.toolbar-itk_hull ::.srcwin0.srcwin.container.pane0.chi
ldsite.con.menubar-itk_hull ::.srcwin0.srcwin.container.pane0.childsite.con.menubar.m.pref.a
dv ::.srcwin0.srcwin.container.pane0.childsite.con.menubar.m.cntrl ::.srcwin0.srcwin.contain
er.pane0.childsite.con.menubar.m.plugin ::.srcwin0.srcwin.container.pane0.childsite.con.menu
bar.m ::.srcwin0.srcwin.container.pane0.childsite.con.menubar.m._help ::.srcwin0.srcwin.cont
ainer.pane0.childsite.con.menubar.m.file ::.srcwin0.srcwin.container.pane0.childsite.con.men
ubar.m.pref ::.srcwin0.srcwin.container.pane0.childsite.con.menubar.m.
pref.use_cs
How should the insight's script be modified to work properly with itk-3.3?
Thanks!
-mi
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Incrtcl-develop mailing list
Incrtcl-develop@[...].net
https://lists.sourceforge.net/lists/listinfo/incrtcl-develop
|