Giter Site home page Giter Site logo

baobab's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on the cloud backend in Soda.io (mostly Java and Python)
  • ๐ŸŒฑ Iโ€™m currently learning Zig
  • ๐Ÿ“ซ How to reach me: @milanaleksic on Twitter, via LinkedIn, or via email [email protected]
  • โšก Entire CV is available on https://aleksic.dev

baobab's People

Contributors

milanaleksic avatar waffle-with-pears avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

baobab's Issues

Generate Constants class from GUI file

It should be possible to create something like JPA metamodel based on the GUI file (for start, only names of the created components should be present, for easier referencing in Java files)

Editor should handle GUI files without shell root control

To support partial definition of the UI in the GUI files, Editor should be able to allow GUI files whose root element is not of "Shell" type.

This can be done by using "ghost" shell which will be the parent of the prototype dialog, instead of the Editor's shell itself. In case the created shell does not contain as a child a new shell, it might mean that the GUI file wanted to create a partial GUI presentation.

Parser to replace JSON

It is perhaps better approach to make a real parser instead of using JSON. Maybe ANTLR?

Implement @TransformerModel to wrap the component details

Idea is that components are getting defined in an independent model class, which when modified will be pushing changes to view, or, using property listeners, back to the controller class.

Current idea:

{
    "_type" : "shell",
    "layout" : {
        "_type" : "gridLayout"
    },
    "_children" : {
        "text(text1,{border})" : {}
    }
}

and on the controller side:

...
@TransformerModel 
MainFormModel model;
...

where the model would look like:

class MainFormModel {
  private ManagedString text1;
}

Shorter children notation

A shorter notation for children might be possible.

One suggestion: instead of writing:

"_children" : [
    {
        "_type" : "button",
        "_name" : "btnAccept",
        "text" : "[global.save]",
        "layoutData" : "[gridData](center,center,false,false)"
    },
    {
        "_type" : "button",
        "_name" : "btnClose",
        "text" : "[global.cancel]",
        "layoutData" : "[gridData](center,center,false,false)"
    }
]

you could write:

"_children" : {
    "button(btnAccept)" : {
        "text" : "[global.save]",
        "layoutData" : "[gridData](center,center,false,false)"
    },
    "button(btnClose)" : {
        "text" : "[global.cancel]",
        "layoutData" : "[gridData](center,center,false,false)"
    }
}

which is 4 lines less (but lines that appear often).

Remove array syntax for children

{
    "_children": [
        {
            "canvas(canvas)": {
                // ...
            }
        },
        {
            "label(_)": {
                // ...
            }
        }
    ]
}

will become:

{
    "_children": {
        "canvas(canvas)": {
            // ...
        }
        "label(_)": {
            // ...
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.