[BOUNTY] GTK-MUI status-report
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    This thread will be used to c&p my status-reports from Pegasosforum . Look there for older posts. Discussion here should be kept to a minimum and closely on-topic.


    TextView and related classes compile and link without major faults but sofar there is little to nothing functionality. It seems I'v knackered communication between TextView and TextBuffer classes resulting in TextView (and the MUI-part connected to it) not being updated when TextBuffer (the actual text) has been changed.

    I've added a signal to "changed" should be sufficient and I'll have to redo most of TextView anyways to adapt to MUI-Textinput.

    Valuable lessons learned (I hope) Rolling Eyes

    Next steps:
    - actually show text Shocked
    - text-formating by GTK-functions
    - CLEAN UP Embarassed

    Bonus:
    - port GTK-Clipboard

    Next report due : August 16th
  • »12.07.09 - 17:58
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    serge
    Posts: 725 from 2003/2/20
    It's nice to have this kind of informations.

    thx.
  • »14.07.09 - 21:11
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    A small update:

    TextView&relatives do work in principal on the GTK-side, but my job left me too little time to advance any further. This will get even worse in the next 2 weeks, afterwards I'll do a rudimetary Pango-port.
  • »02.08.09 - 16:27
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Did pango have external dependencies? I could port pango as shared library, I already planned it when I was working on gtk-mui many years ago.
    1 + 1 = 3 with very large values of 1
  • »03.08.09 - 07:53
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Itix,

    quite many deps, actually (pango is used in swfdec too, btw).
    For a straight compilation, Pango depends on at least glib (eek), freetype, fontconfig, cairo, pixman and a couple others like expat, png, iconv, maybe (can't remember exactly ATM).
  • »03.08.09 - 12:09
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Too bad I almost had an updated glib.library but working build was lost in a delete command accident... apart from glib other libs should be there already.
    1 + 1 = 3 with very large values of 1
  • »03.08.09 - 21:59
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    Sofar I only need some utility-functions which seems to be pretty straighforward, so need to worry.
  • »06.08.09 - 15:33
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    Finnally some good news.
    I've decided to port "Beaver" as 1st proof-of-concept. Beaver is a rather simple editor based on only a few GTK-classes.

    GTK-TextView : no change since the last update :oops:

    GTK-ItemFactory : Menus will be created as normal Intuition-menus (in contrast to the normal menu-class found in the AROS-port) shortcuts and submenus are not done yet. Menu-events now go right into Beaver-code.
    The port of this class was done by applying some drastic changes into the GTK-side of the class and since GTK-menus work so different than MUI/Intuition-menus only a limited level of source-compability could be reached. The adaptions to be done in the application-code should mostly consist in removing function-calls that wouldn't make any sense in MUI/Intuition anyways.
    ItemFactory is deprecated but since it's still used in some older apps it's a valid canditate for porting, and some of the know-how gathered here might also prove useful in porting it's successor-class UI-Manager.

    GTK-Clipboard : todo

    GTK-Notebook : a partly port exist in the AROS-version and 1 (trivial) fuction has allready been added.


    [ Edited by Kronos on 2009/9/18 17:16 ]
  • »17.09.09 - 18:47
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    kriz
    Posts: 309 from 2005/10/18
    From: No(R)way
    Great work and thanks for posting updates!!
    MacMiniG4 MOS 3.18 rulez ... For music check: Horrordelic Records - Dark Psychedelic Music Since 2011 -
  • »17.09.09 - 19:52
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    http://www.pegasosforum.de/album_showpage.php?pic_id=581
    Some words about the picture:

    - there is still a bug in TextView crashing it while displaying more than 10 lines of text. Has been hotfixed to over 1000 lines but performance should suffer on such long texts.

    - the double-scrollers are due to calling TextInput with scrollers and the app having a set defined through GTK. Problem is I can either to a clean GTK version or a clean MUI-version of this ...

    -names for the tabs and window aren't set yet thats why you see some trash there.

    - the "_" are GTK's way of marking shortcuts (would be printed bold), they have to be filtered out and replaced by proper Intuition-shortcuts.



    [ Edited by Kronos on 2009/9/26 14:47 ]
  • »26.09.09 - 12:45
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    gtk_notebook:
    - it's now possible to add/remove pages (something not really supported by MUI)
    - pages can now have correct headers

    gtk_textview:
    - TextInput turned out to be far to inflexible, TextEditor was never an option so I started my own MUI-class specially suited to interact with gtk_textview's lower levels


    MUI_textview:
    - text can be set in bulk or as seperate lines
    - unlimited linelength
    - unlimited textlength (till you run out of RAM that is)
    - basic edit-functions, insert char, delete, backspace, new line, split line, merge lines, navigation with arrow-keys.
    - every line can be seperated into any number of segments
    - vertical and horizontal scrolling with cursor

    todo:
    - set cursor with mouse
    - connecting to scrollers
    - mark text,cut,copy,paste

    planned:
    - every textsegment can have it's own font, style or color without changing the actual text
    - several windows showing the same text

    The class is primarly focused on GTK but will be developed to be useable outside the GTK-context.
  • »15.11.09 - 12:42
    Profile
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    - it's now possible to add/remove pages (something not really supported by MUI)

    afaik it is supported by mui4 :)
  • »15.11.09 - 12:45
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    Believe me I tried ....

    It only worked the hard way, read
    - removing the pagegroup from it's parent
    - remove/add pages
    - put pagegroup back to it's parent

    Would be even worse under MUI3.x where it seems one has to destroy and rebuild the whole pagegroup
  • »15.11.09 - 12:59
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I can not check this right now but IIRC,

    Quote:


    It only worked the hard way, read
    - removing the pagegroup from it's parent
    - remove/add pages
    - put pagegroup back to it's parent



    You dont have to remove pagegroup from its parent but just only call MUI_InitChange/MUIM_ExitChange. But more or less it is still complicated.

    But then in MUI4 I would use title.mui class for tabs.
    1 + 1 = 3 with very large values of 1
  • »15.11.09 - 15:41
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    Without removing+adding the pagegroup didn't get updated till I closed opneed the window....

    "title.mui" ? O.k. seems I'm missing something here .....
  • »15.11.09 - 15:57
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Quote:


    Without removing+adding the pagegroup didn't get updated till I closed opneed the window....



    Hmm.. or maybe you had to use MUIM_ExitChange2... I know I have done this before but I can not access my sources :-/ Someone at #mui (freedone.net) should know.

    Quote:


    "title.mui" ? O.k. seems I'm missing something here .....



    It can be used to manage tabs. This is what is used in OWB and Multiview for example. But I can not give exampes, sorry.
    1 + 1 = 3 with very large values of 1
  • »15.11.09 - 16:57
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    I've seen an update on pegasosforum.de but in german. I cannot figure out what is going on with translator (meaby i'm just tired) but Kronos, can you update us in english please?
    MorphOS 3.x
  • »06.11.10 - 21:42
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > I cannot figure out what is going on with translator

    Short: http://www.amiga-news.de/en/news/AN-2010-11-00013-EN.html
  • »06.11.10 - 22:28
    Profile
  • Bounty Manager
    insane
    Posts: 66 from 2003/5/20
    The gtk-mui bounty is re-opened now, becaus Kronos stopped to work on it.
    Instead he will focus on adapting a component of GDK to MUI/CyberGraphX.
    Maybe the goal of the bounty will be changed later to match with the new "conecpt" of kronos...
    Of course the donators will be asked then, if they agree !
  • »07.11.10 - 00:18
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    Is Jaca now assigned to a bounty?
    MorphOS 3.x
  • »07.11.10 - 10:43
    Profile Visit Website
  • Bounty Manager
    insane
    Posts: 66 from 2003/5/20
    I did not get any request ...
    Wich bounty would be interesting for jaca ?
  • »07.11.10 - 10:51
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    That bounty says Developer: JacaDcaps that's why I was asking :)
    MorphOS 3.x
  • »07.11.10 - 11:38
    Profile Visit Website
  • Bounty Manager
    insane
    Posts: 66 from 2003/5/20
    Ups, my mistake. I changed this ;-)
  • »07.11.10 - 12:00
    Profile Visit Website