TheFGFSEagle
06b7ccd3d1
Add support for submenus
...
Fix submenu bugs
2024-01-30 15:43:43 +01:00
Gijs de Rooy
e61faa738b
Canvas tooltips: respect position from node
...
Previous (faulty) behavior was to always set x and y to 1 when non-nil
2024-01-19 17:25:52 +01:00
TheFGFSEagle
ac4b64a01d
Add global canvas menu bar
2024-01-11 14:11:53 +00:00
Gijs de Rooy
9e9c0252f7
Update German map tile URLs
2023-12-11 11:49:20 +01:00
TheFGFSEagle
724fad6701
Fix placements not being removed when destroying a canvas
...
Canvas placements are being added / removed through a listener on "placement" node adds / removals on the canvas's node.
Previously, when the canvas's del method was called, the canvas's node was removed, but not its "placement" subnodes.
This caused the canvas to be destroyed without the placements being removed.
This in turn causes problems when setting up a canvas with the same placement(s).
This is fixed by this commit by removing the "placement" nodes separately before destroying the canvas.
2023-12-09 18:08:55 +00:00
TheFGFSEagle
de7a49a456
Fix both left and right keys being shown when repr'ing a KeyBinding's function (Shift, Ctrl, Alt) keys
2023-12-09 04:04:16 +01:00
Henning
e83cc5678f
canvas:svg: Fix SVG parser to accept rect without optional x,y
...
In evalCSSNum return if arg is empty.
Set missing x or y in rect to 0.
2023-12-03 11:16:49 +01:00
Roman Ludwicki
3f9dc54c85
For PropertyTreeBrowser, set the path in the title as "/" when the node returns an empty string
...
Set the title in one place (in a separate function).
2023-10-25 17:09:46 +02:00
Roman Ludwicki
0cd24b172e
Fix nasal runtime error "non-objects have no members" for PropertyTreeBrowser
2023-10-25 17:02:10 +02:00
TheFGFSEagle
5f66773605
canvas.Keybinding.parseShortcut: Accept nil and empty strings, returning nil
...
This can be used to unset the key binding of a Canvas menu item by using item.setShortcut(nil);
2023-10-06 20:17:25 +02:00
TheFGFSEagle
10306ea92d
canvas.gui.MenuItem: Add optional argument for setting the me reference for the callback function (see call for details)
2023-10-06 20:15:20 +02:00
TheFGFSEagle
590770e555
KeyBinding.nas:parseShortcut: Better handling of empty shortcut string
2023-10-02 03:41:26 +02:00
TheFGFSEagle
a82424e03f
canvas.gui.widgets.MenuBar: Automatically call setCanvasItem from the constructor
2023-09-30 02:42:15 +02:00
James Turner
3d47bc2325
Canvas KeyBindings support
...
- use new built-in KeyBinding in Widget, Menu
2023-08-31 08:59:52 +02:00
TheFGFSEagle
4c398de46c
More robust rotation center handling
2023-04-17 15:13:18 +01:00
TheFGFSEagle
e5f4915e89
canvas.gui.widgets PropertyWidgets: Add functionality to temporarily disable property syncedness for property-synced widgets
...
This is needed for example to prevent writing to the bound property while adding items to a PropertyComboBox
2023-04-17 15:13:17 +01:00
TheFGFSEagle
ad266eb743
canvas.gui.widgets.ComboBox: Bug fixes, implement findByValue and findByText methods, add placeholders for missing artwork
2023-04-17 15:13:17 +01:00
TheFGFSEagle
d70d073a22
Added property-synced dial and slider
2023-04-17 15:13:17 +01:00
TheFGFSEagle
638b6182d6
Implemented dial with optional value display, ticks and wrapping
2023-04-17 15:13:17 +01:00
TheFGFSEagle
4fb22e821a
Fix menus popping back up when clicking on a menu bar item / combo box with the respective menu open
2023-04-17 15:13:17 +01:00
TheFGFSEagle
372d68a775
Canvas slider widget:
...
Added value display
Add ticks, round mouse dragging result to nearest multiple of step size,
implement scroll handler
Add keybindings for adjusting slider value
2023-02-28 12:47:00 +00:00
TheFGFSEagle
be80d67754
Added option to make tabs closeable
2023-02-28 12:47:00 +00:00
TheFGFSEagle
8277a6d608
LineEdit: selection work
...
Implemented line edit selection highlighting and Shift+arrow keys,
mouse dragging, and mouse double-clicking text selection
2023-02-13 11:11:42 +00:00
TheFGFSEagle
8b0da63e7c
Make list items align to the top properly
2023-02-13 11:05:48 +00:00
TheFGFSEagle
a5f2e19c12
Pass node in the config hash instead of as an argument
2023-02-10 13:01:20 +00:00
TheFGFSEagle
06dc27d631
Added method to find a list item by its data
2023-02-10 13:01:20 +00:00
TheFGFSEagle
305d88f601
Added more property-synced widgets
2023-02-10 13:01:20 +00:00
TheFGFSEagle
da894c87c5
Add popup border, added option to enable popups taking focus (disabled by default)
2023-02-10 13:01:20 +00:00
TheFGFSEagle
0f1ac87cae
Added methods to set, get and clear radio button data
2023-02-10 13:01:20 +00:00
TheFGFSEagle
6f5581ac50
Added method to get all tabs of the TabWidget
2023-02-10 13:01:20 +00:00
TheFGFSEagle
3e4b6ff9c8
Make combo box menu work
2023-02-03 11:28:29 +00:00
TheFGFSEagle
8a1192c918
Added Switch class, added group-checked-radio-changed signal for radio buttons
2023-02-03 11:28:29 +00:00
TheFGFSEagle
7274ec886a
Added some utility functions (all, any, map and filter)
2023-01-24 19:03:52 +00:00
James Turner
b3b2871523
GUI style: make sizes parametric
2023-01-24 18:49:32 +00:00
TheFGFSEagle
7dd431cbbd
Implemented canvas radio button
2023-01-24 14:09:22 +00:00
TheFGFSEagle
f569a5ac29
Added property tree widget and browser dialog
2023-01-24 13:59:47 +00:00
TheFGFSEagle
f1e099641f
Center canvas windows on screen upon creation, add methods to center canvas window on screen and to get their current position
2023-01-24 13:58:52 +00:00
James Turner
151486219d
Add ComboBox widget
2023-01-24 13:27:04 +00:00
James Turner
ede0844631
GUI MenuItem/menuBar fixes:
...
- ensure createItem returns the item
- add an accessor for text()
- don't do lazy view creation for now
- skip aboutToShow until item iteration works for me
2023-01-24 13:27:04 +00:00
James Turner
ba5fb926a2
remove duplicate MenuBar.nas
2023-01-24 13:17:05 +00:00
TheFGFSEagle
2b9d10804b
Added list widget
2023-01-24 13:17:02 +00:00
TheFGFSEagle
2a95685eb7
Improve menu item styling
2023-01-24 13:15:53 +00:00
TheFGFSEagle
419de94e68
Fix layouting
2023-01-24 13:15:53 +00:00
TheFGFSEagle
0a6ddb689a
Added label benchmarking functionality and a menu bar
2023-01-24 13:15:53 +00:00
TheFGFSEagle
1faedb04a2
Only hide popups when window is raised, not on every state change
2023-01-24 13:15:53 +00:00
TheFGFSEagle
3e861b0a44
Better menu item click and hover behaviour
2023-01-24 13:15:53 +00:00
James Turner
7651d66c38
Disable Canvas menubar for now
2023-01-13 14:42:41 +00:00
James Turner
73fbeaade2
Canvas: keyboards bindings handled in widget
2023-01-11 11:47:27 +00:00
TheFGFSEagle
a5e30023bd
Added menu bar widget and global menu bar, menu item improvements
2023-01-11 11:47:27 +00:00
TheFGFSEagle
2cf388e674
Added real keyboard shortcut support for menu items
2023-01-11 11:47:27 +00:00