Hi Alan, see my remarks below.
> -----Original Message----- > From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > Sent: Friday, January 10, 2014 11:15 PM > To: Arjen Markus > Cc: Andrew Ross; PLplot development list > Subject: RE: [Plplot-devel] The epa_build project > > 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 > Thanks, this will be helpful indeed. > 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. > Yes, when I scanned the CMake report I noticed that it refused Tk and itk on these grounds. > 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. Yes, that is one of the things I have been thinking about. > > > 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. > I was looking at this file, because I want indeed to convert it to an equivalent Tcl program. And that is when I noted that there was no particular code being generated for itcl/itk. > 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. > I plan to get started on this work tonight. Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ 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