On 2014-01-10 07:55-0000 Arjen Markus wrote: > Hi Alan, > > I installed itcl and itk for Cygwin (version 3.x) and built PLplot anew, but > I fail to see anything > itcl-related in the build (Tk and itk were turned off on account of no X > server running). Since this is > the first time I have done something with itcl, I am a bit uncertain as to > what I should expect. >
To help you with that question, here is every file in our source tree excluding release notes and changelogs that mentions one of HAVE_ITCL, HAVE_ITK, ENABLE_itcl, or ENABLE_itk software@raven> find . -type f |grep -v .svn | grep -v release \ xargs grep -lE '(HAVE_ITCL|HAVE_ITK|ENABLE_itcl|ENABLE_itk)' ./bindings/tk/plframe.c ./bindings/tk/tkMain.c ./bindings/tcl/pltcl.c ./bindings/tcl/CMakeLists.txt ./plplot_config.h.in ./sys/win-tk/plConfig.h ./cmake/modules/tk.cmake ./cmake/modules/summary.cmake ./cmake/modules/tcl-related.cmake ./examples/tk/CMakeLists.txt_installed_examples_tk ./examples/tk/CMakeLists.txt ./examples/plplot_configure.cmake_installed_examples.in ./examples/CMakeLists.txt ./plplot_test/plplot-test-interactive.sh.in ./scripts/mktclIndex It appears to me from skimming through those, that there are colour palette capabilities and file chooser capabilities (for the plframe GUI and -dev tk) that are implemented with Itcl and Itk, and the examples given by examples/tk/xtk02.c and examples/tk/xtk04.c use Itk (and Itcl?) capabilities as well. You have had X running properly on Cygwin before because you reported results for xwin as I recall. So once you get that regression in your procedure for using Cygwin sorted out, then our build system should set ENABLE_tk and ENABLE_itk to ON by default and all the above Itcl and Itk capabilities should be accessible to you. For example, you should be able to run the test_tk_0[24] targets to demonstrate the second and fourth xtk0? examples. And when you use -dev tk or the plframe gui (first with the test_c_tk target or the test_plserver_standard_examples target to make sure all dependencies have been executed, and then by hand so that the results pause so you can click on the GUI) you should be able to click on either the resulting tk or plframe GUI to find the file chooser and colour palette GUI's that are implemented using Itcl and Itk. The colour palette GUI is a particularly useful and interesting capability since it allows you to quickly and conveniently change any PLplot colour scheme to see how the result looks with a particular example. It would be great if you could figure out how to use that same colour palette functionality with the ntk device. > The script "plitclgen" is not run - is that correct? Just wanting to make > sure I understand the > build process. There is no Tcl source file to define the various methods then? Thanks for spotting that file which I had never noticed before! I checked our entire source tree for reference to that name using software@raven> find . -type f |grep -v .svn |xargs grep -l plitcl Aside from pltclgen itself and some changelogs, the only references to that file are in comments in ./bindings/tk/PLWin.itk but there the results of plitclgen were apparently inserted by hand which is also consistent with the directions in bindings/tcl/plitclgen. It had been a very long time since those directions had been followed so I went through the whole process again and the resulting changes (revision 12930) to bindings/tk/PLWin.itk were quite large with many API additions and some API removals to become consistent with the Tcl API changes that have occurred over many years. Are the "inherit PLWin" commands in PLXWin.itk and Pltkwin.itk the way that PLWin.itk is actually used? That was the only possible reference I could find to PLWin.itk. But in any case the large changes to that file in revision 12390 didn't appear to make any difference to our Itcl/Itk/Iwidgets results (e.g., the colour palettes on the plframe GUI and -dev tk). Would it be possible to automate the process mentioned in plitclgen? For example, is there an Itk command (inherit?) that would allow PLWin.itk to access the gen.itcl results produced by plitclgen(.tcl)? (I am thinking along the lines of changing the name of the generated file from gen.itcl to plplot_api_class.itk, and then sticking "inherit plplot_api_class" into PLWin.itk, but I need your input on that idea since I have no idea whether that is a correct use of the inherit command.) Regardless of the automation issue, would you be willing to help out by translating the plitclgen perl script to a plitclgen.tcl Tcl script (following what you did to translate pltclgen to pltclgen.tcl)? The motivations for this change are (1) I think it is more self-contained to use Tcl rather than perl to generate gen.itcl, and (2) there is a warning message from perl that the plitclgen script uses deprecated perl API that will be retired in the next perl release. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel