Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 19 14:22

    AndyObtiva on master

    Update TODO.md (compare)

  • May 09 13:29

    AndyObtiva on master

    Update TODO.md (compare)

  • May 07 22:23

    AndyObtiva on master

    Relax array_include_methods ver… (compare)

  • May 07 19:28

    AndyObtiva on master

    Update Rakefile (compare)

  • Apr 22 16:12
    rubyFeedback opened #20
  • Apr 01 18:10

    AndyObtiva on master

    Update Rakefile (compare)

  • Mar 26 20:21

    AndyObtiva on v2.7.3

    (compare)

  • Mar 26 20:20

    AndyObtiva on master

    Support case-insensitive static… (compare)

  • Mar 25 17:26

    AndyObtiva on master

    Update TODO.md (compare)

  • Mar 24 13:33

    AndyObtiva on v2.7.2

    (compare)

  • Mar 24 13:32

    AndyObtiva on master

    Support capitalized static expr… (compare)

  • Mar 24 13:31

    AndyObtiva on master

    Support capitalized static expr… (compare)

  • Mar 23 03:31

    AndyObtiva on master

    Update README.md (compare)

  • Mar 16 14:30

    AndyObtiva on master

    Update TODO.md (compare)

  • Mar 16 14:29

    AndyObtiva on master

    Update TODO.md (compare)

  • Mar 15 16:23
    AndyObtiva closed #19
  • Mar 15 16:23
    AndyObtiva commented #19
  • Mar 15 14:07
    tekanic commented #19
  • Mar 15 13:50
    AndyObtiva commented #19
  • Mar 15 13:45
    tekanic opened #19
pyrareae
@pyrareae:matrix.org
[m]
Wow thanks for that info! That definitely clears that issue up! Dang it was in the docs the whole time too! That's really good to know about how to force a layout change if needed too, if I get too crazy with making the ui have things popping in and out. This is one of those cases where the nomenclature of what I'm used to (the mess that is html/css) differs from the nomenclature of this and swt. layout_data.exclude mapping to display: none. I should probably do some reading on swt itself to get a little more familiar with some of the ideas that come through.
Wayne Vucenic
@rubycoder
My go-to place for reading about the ideas behind SWT is "SWT:The Standard Widget Toolkit Vol. 1" by Northover and Wilson. Northover was the creator of SWT. Amazon usually has used copies under $10.
pyrareae
@pyrareae:matrix.org
[m]
Cool, I'll check it out!
Andy Maleh
@AndyObtiva
I started a Glimmer DSL for SWT video tutorial series (the first just was a very short intro). Tutorial 2 is out: https://andymaleh.blogspot.com/2022/02/glimmer-dsl-for-swt-video-tutorial-2.html
Brandon Weaver
@baweaver

LibUI, as I understand, is the most minimal requirements version of Glimmer. I noticed that SWT had a lot of niceties, but seems to require more of JRuby to use it.

How much difficulty might there be in having some of the SWT features ported into LibUI? Mostly looking to keep requirements for end-users as light as possible.

Andy Maleh
@AndyObtiva
Glimmer DSLs are separate from each other, but they carry similar features, so learning one is almost like learning all. If you need a custom widget in LibUI that was created in SWT, you would have to recreate in LibUI. I only mentioned Glimmer DSL for SWT to you by email as an example for inspiration on how to do syntax highlighting in Glimmer DSL for LibUI. I was not suggesting that you use Glimmer DSL for SWT as I understand that you want to use C Ruby. You are right to say that LibUI has the most minimal requirements out of all the Glimmer DSLs. As for your question about "How much difficulty might there be in having some of the SWT features ported into LibUI?", I would say, it is not that difficult, and the plan is to have Glimmer DSL for LibUI eventually match Glimmer DSL for SWT features. For example, the next features planned for Glimmer DSL for LibUI are effortless declarative drag and drop, improved support for building custom-controls and custom-shapes, and application scaffolding. The only problem that is not fully solved in C Ruby yet, which is solved in JRuby is packaging an application as a native executable (binary). Glimmer DSL for SWT supports shipping native DMG/PKG on Mac and EXE/MSI on Windows. In C Ruby, OCRA provides Windows packaging support, but I don't know about the Mac. This will be an interesting problem to solve for C Ruby.
Brandon Weaver
@baweaver
The fun thing is it's about to be a solved problem with WASI compilation targets that just got merged for C Ruby binaries.
Gotcha, so I can mostly port features over for LibUI, just a bit of work to do so then. I'll have a crack at that later.
Andy Maleh
@AndyObtiva
Yes, I definitely expect the Ruby community to help and chip in with implementing missing or needed features in Glimmer DSL for LibUI.
Brandon Weaver
@baweaver
Admittedly, and slightly selfishly, I'll be fairly likely to reimplement ones that I have an immediate usecase for.
Andy Maleh
@AndyObtiva
Necessity is the mother of invention.
Brandon Weaver
@baweaver
If I weren't really bound by implementation details for ASTs I'd be more likely to consider other implementations :)
It'll probably take me a bit though depending on how much time I have.
If I can pull that off and make some form of RuboCop AST autocorrect generator it'll be a real fun immediately useful tool
Fun parts will probably be around code highlighting with added distinct highlighted sections, and if I really go for the gold bound text mouseovers for hints like https://regexr.com/
Though that's at least several updates down the road to try that one. Not sure how tooltips / hover boxes might work
Andy Maleh
@AndyObtiva
Sounds like a great plan. Just make sure to divide into very small, achievable, and useful milestones. That way, with every milestone reached, you will have something useful you can rely on to continue forward to future milestones.
Brandon Weaver
@baweaver

https://codepen.io/keystonelemur/pen/vYLjWXz

This being an example of "bound" text for math formulae, in which you have distinctive text bound to each part of the formula that highlights the other when hovered.

Yeah, basic version will probably be text boxes for now to get a proof of concept
More than likely will task out the rest to make sure I don't get too excited on feature ideas
Andy Maleh
@AndyObtiva
That codepen you shared does not work for me. It does not show anything but white in the bottom demo area.
Brandon Weaver
@baweaver
Odd. Sometimes you need to hover the formula description to get it to kick off
Screen Shot 2022-02-13 at 12.55.29 AM.png
Like that, highlighting one part is distinctly colored. Apply that to Regex or ASTs and there could be some interesting potential there
Andy Maleh
@AndyObtiva
By the way, tooltips and hover boxes would just be vector graphics utilizing the Area API in Glimmer DSL for LibUI. You would just paint a yellow rectangle for example with some text in it. You could abstract it out into a custom widget/shape (like via method) and be able to drop hover boxes in and out as needed.
Brandon Weaver
@baweaver
I'll keep that one in mind.
Thanks for all the help on this so far, lot of interesting potential for Ruby tooling
Andy Maleh
@AndyObtiva
The codepen just worked when I resized the window. Turns out the text was just moving outside the screen bounds, but I can see it now. This sort of color-highlighting should not be difficult to implement in Glimmer DSL for LibUI (assuming you can render all the glyphs successfully with the underlying C LibUI library)
Thank you.
And, you're welcome.
Andy Maleh
@AndyObtiva

The Glimmer DSL for SWT Video Tutorial 3 is out! It walks software engineers through Hello, Tab!

https://andymaleh.blogspot.com/2022/02/glimmer-dsl-for-swt-video-tutorial-3.html

Andy Maleh
@AndyObtiva

The Glimmer DSL for SWT Video Tutorial 4 is out! It walks software engineers through Hello, Layout!

https://andymaleh.blogspot.com/2022/02/glimmer-dsl-for-swt-video-tutorial-4.html

Andy Maleh
@AndyObtiva

The Glimmer DSL for SWT Video Tutorial 5 is out! It walks software engineers through Hello, File Dialog!

https://andymaleh.blogspot.com/2022/03/glimmer-dsl-for-swt-video-tutorial-5.html

Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 6 is out! It walks software engineers through Hello, Label!
https://andymaleh.blogspot.com/2022/03/glimmer-dsl-for-swt-video-tutorial-6.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 7 is out! It walks software engineers through Hello, Text! and introduces data-binding.
https://andymaleh.blogspot.com/2022/03/glimmer-dsl-for-swt-video-tutorial-7.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 8 is out! It walks software engineers through Login and explains Computed Data-Binding. https://andymaleh.blogspot.com/2022/03/glimmer-dsl-for-swt-video-tutorial-8.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 9 is out! It walks software engineers through Hello, Canvas Shape Listeners! and explains the basics of the Canvas Shape DSL.
https://andymaleh.blogspot.com/2022/03/glimmer-dsl-for-swt-video-tutorial-9.html
Andy Maleh
@AndyObtiva

Glimmer DSL for SWT Video Tutorial 10 is out! It walks software engineers through Hello, Styled Text!

https://andymaleh.blogspot.com/2022/04/glimmer-dsl-for-swt-video-tutorial-10.html

Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 11 is out! It walks software engineers through Hello, Code Text! https://andymaleh.blogspot.com/2022/04/glimmer-dsl-for-swt-video-tutorial-11.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 12 is out! It walks software engineers through Hello, Tree!
https://andymaleh.blogspot.com/2022/04/glimmer-dsl-for-swt-video-tutorial-12.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 13 is out! It walks software engineers through Hello, Table!
https://andymaleh.blogspot.com/2022/04/glimmer-dsl-for-swt-video-tutorial-13.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 14 is out! It walks software engineers through Hello, Pop Up Context Menu!
https://andymaleh.blogspot.com/2022/05/glimmer-dsl-for-swt-video-tutorial-14.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 15 is out! It walks software engineers through Hello, Menu Bar!
https://andymaleh.blogspot.com/2022/05/glimmer-dsl-for-swt-video-tutorial-15.html
Andy Maleh
@AndyObtiva
Glimmer DSL for SWT Video Tutorial 16 is out! It walks software engineers through the Weather sample.
https://andymaleh.blogspot.com/2022/05/glimmer-dsl-for-swt-video-tutorial-16.html
Karthikeyan A K
@mindaslab
Hello, I have a doubt, I tried the notepad example https://github.com/AndyObtiva/glimmer-dsl-libui/blob/master/examples/simple_notepad.rb , but found that non_wrapping_multiline_entry & multiline_entry does not show the position of cursor. Is there any settings / configurations that needs to be passed?
Andy Maleh
@AndyObtiva
It works fine for me on the Mac. Are you running on the Mac or another platform? Sometimes the Mac is wonky whereby you have to CMD+TAB to another app and then CMD+TAB back to see the keyboard cursor.
Screen Shot 2022-05-19 at 8.48.53 AM.png
Screen Shot 2022-05-19 at 8.49.00 AM.png
Karthikeyan A K
@mindaslab
Okay it happens in Dark mode in mac. I use Mac M1, OS version 12.3.1. If you take basic entry, in dark mode the background becomes black, the text and cursor becomes white, so its perfect. In multiline entry, in dark mode, the cursor and background is white, and the text is black, so the cursor disappears.
Andy Maleh
@AndyObtiva
The C libui library is midway in supporting Dark Mode: libui-ng/libui-ng#29