Phatch on MorphOS
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    Hello,

    this is my latest new project: Phatch.
    It's Python and PyMUI based.

    See it's installation page and don't forget to install latest archives.

    Enjoy!

    [ Edited by Yomgui on 2010/5/28 23:08 ]
    And now... next project!
  • »28.05.10 - 19:36
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    There is y in www in the link :)
    MorphOS 3.x
  • »28.05.10 - 19:50
    Profile Visit Website
  • MorphOS Developer
    kiero
    Posts: 129 from 2003/2/28
    some issues:
    startup script refers to system: assign.
    when you create some actions, select open (it asks about unsaved stuff), choose cancel and it still will open window to save the script
    why does it use NList? honestly... (it also did illegal memory access when doubleclicking on the action, but it might be because of the custom version i have).
    execute did nothing



    [ Edited by kiero on 2010/5/29 11:33 ]

    [ Edited by kiero on 2010/5/29 11:34 ]
  • »29.05.10 - 09:29
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    * 'System:' used in first line: cause by the python distutils scripts, not really a bug, but I need to change that, sure.
    * [TO FIX]: Yes|No|Cancel requester is ok, but I don't handle correctly the result.
    * I've used NList because has some interesting methods, like MUIM_NList_UseImage.
    But sure I need one day to replace it by List.mcc, most stable.
    * [TO FIX]: Execute did nothing => yes, it's normal when you don't have added a 'save' action.
    Phatch checks this and I thing an error popup should be open, but not here. I need to fix that.
    And now... next project!
  • »29.05.10 - 11:47
    Profile Visit Website
  • MorphOS Developer
    kiero
    Posts: 129 from 2003/2/28
    about images in nlist, you can simply use normal mui text escape sequence to put image into list item. can't get easier
  • »29.05.10 - 13:24
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 534 from 2003/2/25
    From: France
    Hi Kiero,

    What would be the escape sequence to insert an image in a list.mcc?

    ++
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »29.05.10 - 17:38
    Profile Visit Website
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    MUIA_Text_Contents -- (V4 ) [ISG], STRPTR, 0x8042f8dc

    ESC I[s] Draw MUI image with specification <s>. See autodocs
    of image class for image spec definition.

    MUIA_Image_Spec -- (V4 ) [I..], char *, 0x804233d5
    "5:<n>" where <n> is the name of an external picture
    file that should be loaded with datatypes.
    Kick 2.x users will get an empty image.
  • »29.05.10 - 18:10
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    Kiero: I know ;-)

    But in Phatch images are not given as a file, but it's raw strings containing PNG data.
    I'm using PIL to transform these PNG data as ARGB buffers, then give it to Rawimage MCC for display (like the logo) or as NList images.

    There are no Image spec number for direct ARGB data.

    [ Edit ]Added a new r28 release with corrected bin path in startup script and error popup window when no 'save' action is present, see the wiki

    [ Edited by Yomgui on 2010/5/30 0:26 ]
    And now... next project!
  • »29.05.10 - 20:50
    Profile Visit Website
  • MorphOS Developer
    kiero
    Posts: 129 from 2003/2/28
    yes, there is imagespec for argb pixelarray.

    A[alphadatapointer]

    you have to provide argb pixelarray prepended with width and height information like this:

    struct pixeldata
    {
    int width;
    int height;
    int pad[2];
    unsigned int data[0];
    };
  • »30.05.10 - 19:13
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    @Kiero: cool! So I'm going to convert my code to List.mcc.
    But this 'A' spec is not public (not mentionned in MUIA_Image_Spec autodoc), isn't?
    And now... next project!
  • »30.05.10 - 22:07
    Profile Visit Website