summaryrefslogtreecommitdiff
path: root/Applications/VisualBuilder/VBWidget.cpp
AgeCommit message (Collapse)Author
2019-04-16VisualBuilder: Make it possible to move widgets to front/back.Andreas Kling
2019-04-12VisualBuilder: Add some widget-specific properties.Andreas Kling
2019-04-12VisualBuilder: Add some more GWidget default properties.Andreas Kling
2019-04-11VisualBuilder: Add [x, y, width, height] properties for all widgets.Andreas Kling
At first I tried doing this as a single "rect" property but I like the feel of the individual properties much better. :^)
2019-04-11VisualBuilder: Add a table view with the selected widget's properties.Andreas Kling
2019-04-11VisualBuilder: Add a widget registry and a property class.Andreas Kling
I need somewhere to centralize the knowledge about the different widget types available. And VBProperty represents a property key/value of arbitrary type (it uses a GVariant for the value.)
2019-04-11VisualBuilder: Add GGroupBox.Andreas Kling
The icon currently looks better than a real GGroupBox. I have to fix that.
2019-04-11VisualBuilder: Add GScrollBar (and yes, an icon for it, too.)Andreas Kling
2019-04-11VisualBuilder: Add GCheckBox and GLabel, and draw icons for them, too.Andreas Kling
2019-04-11VisualBuilder: Add icons to the toolbox, and support for GProgressBar.Andreas Kling
2019-04-11VisualBuilder: Tweak grid size and add an (empty) toolbox window.Andreas Kling
2019-04-11VisualBuilder: Use real GWidgets instead of pretend VBWidgets.Andreas Kling
That first design was the wrong idea. Instead, have VBWidget instantiate a GWidget of the appropriate type and parent it to the VBForm. We then use a new "greedy hit-testing" mechanism in GWidget to prevent any mouse events from reaching the VBForm's children. To paint the grabbers above the child widgets, I added a slightly hackish but kind of neat second_paint_event() that is called after a widget has painted all of his children. :^)
2019-04-11VisualBuilder: Add the first VBWidget subclass: VBButtonWidget. :^)Andreas Kling
2019-04-11VisualBuilder: Allow resizing widgets using their grabbers.Andreas Kling
2019-04-11VisualBuilder: Work on selecting a widget and moving it around.Andreas Kling
2019-04-11VisualBuilder: Start working on an interface builder application.Andreas Kling
It's tedious making interfaces programmatically. Let's make a program to help us with this. :^)