modify behaviour (espacially for Linux and MAC)

2013-05-18
2015-04-22
  • Manfred ROSENBERGER

    rattleCAD ist written in tclTk. That makes it easy to use or also not. Just a point of view.
    tclTk is a script-language and can be modified easily.
    on the other hand tclTk has specific behaviour on different plattforms.
    For me I use windows as development plattform and can deliver a starkit (exe) for windows.

    So its on your contribution to support rattleCAD for use on other plattforms (linux, mac)

     
  • Manfred ROSENBERGER

    ... there were some problems with font display in rattleCAD GUI on MAC
    ... and there is also an so far undocumented solution for this:

    place a xml-File in the directory where you store your project-Files:
    but name it:

    _rattleCAD.init
    

    ... please take care that extension ist .init and not .xml

    currently there are two values which are considered.
    the file can look like this:

    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
        <FrameJigType>nuremberg</FrameJigType>
        <GUI_Font>Arial 8</GUI_Font>
    </root>
    

    ... what do you think about this?
    ... any other values to be considered?

     
    Last edit: Manfred ROSENBERGER 2013-05-18
  • Manfred ROSENBERGER

    What is the best value for mac for?

    <GUI_Font>Arial 8</GUI_Font>
    
     
    Last edit: Manfred ROSENBERGER 2013-05-18
  • HJ Imhoff

    HJ Imhoff - 2014-04-14

    Hi Manfred, we met at UKHBS in London last friday (at the Meisterjig-stand). We had a talk about the above probem (small fonts in OSX). I managed to get them readable with the above solution. I didn't need to make a new init-file, since an existing one (called "_rattleCAD_my_computer_name.local.init") was already in the project folder. I just changed it to .14.
    Still a problem: the text only appears when hovering over the menu-item. Shortcuts are shown, but no text (till your mouse pointer hits it..., then disappears on mouse out).

    Unfortunately I don't know how to code, but since I do know how to make proper CAD drawings and would like to add more parts to the library, I'm willing to work on that!?

     
  • Manfred ROSENBERGER

    Hi

    thanks for your proposal to add CAD drawings of components.

    I see the file works .. :)

    please: can you send me a screenshot of rattlecad, displaying your described behaviour?

    Thanks

    chears Manfred

     
    • HJ Imhoff

      HJ Imhoff - 2014-05-07

      Hi Manfred,

      Hereby an example of the mentioned behavior. It doesn't happen at the Wish menu, only at the other menus.

      Is there somewhere a manual on how to handle the SVG's for the library? I tried to use one of the existing but in someway it doesn't appear right... (out of scale, position or invisble at all)...

       
  • Manfred ROSENBERGER

    hi,
    a very quick first answer:
    versioen 3.4.01.58 locates a file:
    ... .rattleCAD_<computer-name>.Xdefaults
    in your project-directory.

    take a first look on it

    .. and pleas let me know

    chears Manfred

     
    Last edit: Manfred ROSENBERGER 2014-05-08
  • Jason Bogan

    Jason Bogan - 2014-12-24

    I am having the same issue with the Menu bars on the mac not appearing. I had to modify the .rattleCAD_<computer-name>.Xdefaults

    I Changed:

    !*Menu.foreground: black

    to

    *Menu.foreground: black

    As far as the Font goes, modifying the .rattleCAD_<computer-name>.init using: <GUI_Font>Lucida 13</GUI_Font> rather than the default <GUI_Font>Hevelica 12</GUI_Font> or the suggested <GUI_Font>Arial 8</GUI_Font>, blends with the rest of the system best as far as the menu bar goes (at least with the US English localization). Not sure how it addresses the small font issue mentioned. For me, Arial 8 made the menu bar fonts too small.

     
  • Joey Korkames

    Joey Korkames - 2015-04-08

    hi manfred
    I have written a shell script that can install rattleCAD as an OSX application that can be double-clicked to start on Macintoshes and show a proper title & icon. OSX 10.10 ships with tcl/tk 8.6, so this is all that is needed to make it run.

    I'd like to submit it as a patch, but it will put three new files in the root of the code. unfortunately there is no way to really hide them from the release package, unless you pre-build the OSX app like a starkit, but you need a Mac to run the script.

     
    Last edit: Joey Korkames 2015-04-08
  • Manfred ROSENBERGER

    thanks a lot

    ... I do not have a Mac, thats it, but

    I have following proposal

    We add an install directory in the root directory of rattleCAD

    3.4.02.xx
    ./...
    ./etc
    ./lib
    ./_install
    ./MacOS .... (see http://wiki.tcl.tk/1649http://wiki.tcl.tk/1649)
    ./install_osx.app
    ./rattleCADicns
    ./Linux
    ./Windows ... maybe there are similar procedures ... let us see :)
    ./...
    ./main.tcl
    ./rattleCAD.tcl
    ./readme.txt
    ./...

    could you try to implement this in your downloaded rattleCAD-distribution?

    I cant see it - sorry
    do we need the AppMain.tcl
    or does it have to have this name
    ... just a question ;)

    ... if yes is it possible to implement this code in
    ./main.tcl
    ... depending on one of these variables ...

         tcl_platform(os)          = Darwin
         tcl_platform(osVersion)   = 9.1.0
         tcl_platform(platform)    = unix
    
         tcl_platform(platform)  = windows
         tcl_platform(os)        = Windows NT
    

    please let me know!

    cheers Manfred

     
    Last edit: Manfred ROSENBERGER 2015-04-08
  • Joey Korkames

    Joey Korkames - 2015-04-08

    /usr/bin/wish on OSX looks for <whatever>.app/Contents/Resources/Scripts/AppMain.tcl specifically.
    I did modify main.tcl to take its place, but it would have to be symlinked to AppMain.tcl still.

    rattleCAD       3.4.02.38
      ====================================================
    
       Runtime:          ... AppMain.tcl
      ----------------------------------------------------
         Tcl/Tk:         8.5.9
         Exec:             /Users/joey/Applications/rattleCAD.app/Contents/MacOS/rattleCAD
    
           Tk:             8.5.9
           BWidget:        1.9.1
           rattleCAD:      3.4
           bikeGeometry:   1.43
           canvasCAD:      0.52
           vectormath:     0.7
           extSummary:     0.4
           osEnv:          0.9
           appUtil:        0.15
    
       Version:
      ----------------------------------------------------
         Version:        3.4.02
         Revision:       38
         Release Date:   24. Mar. 2015
    
       Environment:
      ----------------------------------------------------
    
         APPL_Config(ROOT_Dir):     
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources
         APPL_Config(BASE_Dir):     
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts
         APPL_Config(CONFIG_Dir):   
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/etc
         APPL_Config(SAMPLE_Dir):   
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/sample
         APPL_Config(IMAGE_Dir):    
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/image
         APPL_Config(COMPONENT_Dir):
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/lib/app-bikeGeometry/lib/../etc/components
         APPL_Config(TEST_Dir):     
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/_test
         APPL_Config(USER_Dir):     
                       ... /Users/joey/rattleCAD
         APPL_Config(TEMPLATE_Dir): 
                       ... /Users/joey/rattleCAD/_template/rattleCADAD       3.4.02.38
      ====================================================
    
       Runtime:          ... AppMain.tcl
      ----------------------------------------------------
         Tcl/Tk:         8.5.9
         Exec:             /Users/joey/Applications/rattleCAD.app/Contents/MacOS/rattleCAD
    
           Tk:             8.5.9
           BWidget:        1.9.1
           rattleCAD:      3.4
           bikeGeometry:   1.43
           canvasCAD:      0.52
           vectormath:     0.7
           extSummary:     0.4
           osEnv:          0.9
           appUtil:        0.15
    
       Version:
      ----------------------------------------------------
         Version:        3.4.02
         Revision:       38
         Release Date:   24. Mar. 2015
    
       Environment:
      ----------------------------------------------------
    
         APPL_Config(ROOT_Dir):     
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources
         APPL_Config(BASE_Dir):     
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts
         APPL_Config(CONFIG_Dir):   
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/etc
         APPL_Config(SAMPLE_Dir):   
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/sample
         APPL_Config(IMAGE_Dir):    
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/image
         APPL_Config(COMPONENT_Dir):
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/lib/app-bikeGeometry/lib/../etc/components
         APPL_Config(TEST_Dir):     
                       ... /Users/joey/Applications/rattleCAD.app/Contents/Resources/Scripts/_test
         APPL_Config(USER_Dir):     
                       ... /Users/joey/rattleCAD
         APPL_Config(TEMPLATE_Dir): 
                       ... /Users/joey/rattleCAD/_template/rattleCAD
    
     
    Last edit: Joey Korkames 2015-04-08
  • Manfred ROSENBERGER

    Hi Joey,

    I did some investigations in tclkit, starkit and starpack:

    I created some starpacks based on tclkit-lite from

     http://sourceforge.net/projects/kbskit/files/kbs
    

    you can download them my starpacks from

     https://sourceforge.net/projects/rattlecad/files/3.4.02/
    
    by Rene Zaumseil
    

    My current question is:
    does the darwin starpack run on MacOS

    cheers Manfred

     
  • Manfred ROSENBERGER

    Hi Joey,

    I did some investigations in tclkit, starkit and starpack:

    I created some starpacks based on tclkit-lite from

     http://sourceforge.net/projects/kbskit/files/kbs
    

    you can download them my starpacks from

     https://sourceforge.net/projects/rattlecad/files/3.4.02/
    
    by Rene Zaumseil
    

    My current question is:
    does the darwin starpack run on MacOS

    cheers Manfred

     
  • Joey Korkames

    Joey Korkames - 2015-04-13

    Yes, it works. It is simpler than getting the source-directory run. But more complicated than my Mac bundle.

    I downloaded the Darwin package.
    When user double-clicks on it, they see a warning prompt that will not help them start the program.

    So a geek like me opens the Terminal and chmod a+x ~/Downloads/rattleCAD_3.4.02.41_Darwin. A typical Mac user does not know what unix binaries are and expects to click on .app to start a program.

    After that, I can double-click on binary and RattleCAD appears. The app name & icon in the system are ugly, but it works.

    I see you've got the bundle files in the tree now.
    https://sourceforge.net/p/rattlecad/code/1141/tree/branches/3.4/02/_install/MacOS
    Maybe I can put together a second .command that will download and install the starkit with one-click. Without a Mac to compile apps, that's the 2nd best release that can be offered for OSX.

     
    Last edit: Joey Korkames 2015-04-13
  • Manfred ROSENBERGER

    Hi Joey,

    Thank you very much. :)

    You confirmed my suspicion on the permission of the package.

    What do you think, is there a solution to buils an app based on this starpack?

    ... e.g. register the starpack via script as you proposed by the install_osx_app.command

    I also added the _install directory with the install_osx_app.command as discussed a few days ago. Could you test your implementation which ist integrated in the

    http://sourceforge.net/projects/rattlecad/files/3.4.02/rattleCAD_3.4.02.41.zip/download

    ... thanks a lot

    cheers Manfred

     
  • Manfred ROSENBERGER

    sorry, I had to read your email to the end ;)

    I was so pleased about your response :)

    lets recapitulate:

    best solution:
    run teh the bundle files in _install/MacOS

    second best soluteion:
    build a downlaod and install script

    do I got it right?

    thanks for your support

    cheers Manfred

     

Log in to post a comment.