Tobias Hunger
7572869541
live-preview: Remove splitter from PropertyEditor
2024-08-28 11:01:57 +02:00
Tobias Hunger
6d81096ac6
live-preview: Use PathBuf in DeclarationInformation
2024-08-23 18:58:44 +02:00
Tobias Hunger
51c5c67aa8
live-preview: Fix syntax errors in api.slint
...
Sometimes I am surprised my code works.
2024-08-22 23:23:51 +02:00
Olivier Goffart
3a59950751
Experimental support for named callback parameters
...
And use that in the lsp/ui implementation instead of comments.
This is only a parser support for now, the name is otherwise unused.
Hence I rather keep that experimental.
2024-08-19 14:10:01 +02:00
Tobias Hunger
0b99a3d023
live-preview: Use preferred size when requesting preview
...
Force the preview to preferred size when explicitly asking to
preview something.
2024-08-15 13:47:25 +02:00
Tobias Hunger
092ca597bb
live-preview: Remove history navigation
...
We apparently do not want history-based navigation,
so remove the code supporting that again.
2024-08-14 16:05:24 +02:00
Olivier Goffart
6f51c975f5
LSP: don't answer "Empty" for component that do not inherit
...
... instead of chekcing for "Empty" in the Slint code
Do the suggestion from https://github.com/slint-ui/slint/pull/5625#issuecomment-2228976684
2024-08-08 12:05:29 +02:00
Tobias Hunger
3f41b6f69d
live-preview: Make component selection more robust
...
... by not relying on the component name, which could be used in several
files.
2024-07-17 17:52:12 +02:00
Tobias Hunger
11b0b75e71
live-preview: Fix drops being off by several (hundred!) pixels at times
...
We did not take the scroll view being scrolled into account, so the drop
location was off by a bit, especially for elements shown far down the list.
2024-07-17 17:16:50 +02:00
Tobias Hunger
f9320b4aff
live-preview: Low-hanging fruit in the Property editor
...
* Resizing the key field works again (using an invisible hand-crafted splitter)
* The color of the active/inactive `f(x)` icon was inversed as suggested by
Daniel.
2024-07-16 18:27:47 +02:00
Tobias Hunger
3733070c33
live-preview: Remove the functionality to add components
2024-07-16 14:20:46 +02:00
Tobias Hunger
a85a1cdca1
live-preview: Disable switching between Components
...
Disable switching components by clicking on the component name in the
library.
2024-07-16 14:20:27 +02:00
Tobias Hunger
a384d957b4
live-preview: Disable the Component Label
...
It is too ugly and since we can no longer add components, it is not absolutely
necessary to rename comoponents either.
2024-07-16 14:20:13 +02:00
Florian Blasius
ed8b05548d
lsp-ui: apply ux feedback for headers ( #5628 )
2024-07-16 11:57:13 +02:00
Tobias Hunger
c7f5e8df2e
live-preview: Never report "Empty" as a base type of an element
...
... in the properties view.
2024-07-15 16:28:50 +02:00
Simon Hausmann
a4ce75de69
Remove extra vertical spacing between the header view and the library/preview/property.
2024-07-15 09:26:32 +02:00
Florian Blasius
96f2f15552
editor: added borders to groups ( #5612 )
2024-07-12 15:24:35 +02:00
Simon Hausmann
16996dfa16
Fix flicker in the component list in design mode
...
Since the category items have different heights, the extrapolation of the listview to compute the correct scrollbar height will always be off, unless listview instantiated all items.
So let's do that by hand and use a ScrollView.
2024-07-12 09:13:55 +02:00
Simon Hausmann
4c73006bf9
Remove stray imports of StyleMetrics
...
These are not needed AFAICS.
2024-07-12 09:13:35 +02:00
Florian Blasius
ca5ac29665
Editor: increase group header min height
2024-07-12 06:28:46 +02:00
Florian Blasius
86cde942b7
editor: fixed different bar heights
2024-07-11 20:07:47 +02:00
Tobias Hunger
34c9351c31
live-preview: List more components in the components list
...
* Show all file-local componanets (check is-exported)
* Parse all known files before generating the file list
Keep the document_cache with all the extra documents loaded around,
2024-07-11 18:54:40 +02:00
Florian Blasius
f32bec395b
Editor: Design Review fixes for library, properties and preview ( #5604 )
2024-07-11 16:36:57 +02:00
Florian Blasius
4bedeb5489
lsp: switch interact and edit on header
2024-07-10 21:09:57 +02:00
Florian Blasius
dada059801
Fixed import in lsp ui
2024-07-10 21:09:57 +02:00
Florian Blasius
ef14d1a4a5
Remove unused header bar
2024-07-10 21:09:57 +02:00
Florian Blasius
b573f1c7d8
Design Review: refactored lsp header
2024-07-10 21:09:57 +02:00
Tobias Hunger
489d6c6a5b
live-preview: Update categories displayed in the library
...
* Show all builtin elements under "Builtin Elements"
* Show all std-widgets under "Widgets"
* Show everything else under its file name.
2024-07-10 17:17:17 +02:00
Tobias Hunger
ec87f555e9
live-preview: Use drop-down in property editor for enums
2024-07-10 11:47:06 +02:00
Tobias Hunger
2c546fc35f
live-preview: Add function icon for complex mode in property editor
2024-07-10 11:47:06 +02:00
Tobias Hunger
05e0b4dc68
live-preview: Have a simple mode for bools and strings
...
The property editor built into the live-preview now comes with the
concept of a "simple/complex mode". There is a "K" (for complex, obviously;-)
or a "S" (for simple, just as obvious) beween the property name and property
value. you can click on the letter to switch from simple to complex mode,
but you can only switch back to simple mode if there are no complex expressions
in the line edit.
This implements a "simple" mode for bools.
# Todo
* [ ] Find icons for simple/complex mode:-)
* [ ] Figure out how to decide whether other types are "simple"
* [ ] Define more UIs for simple types
live-preview: Move simple property code into rust
... and handle simple strings in addition to bool.
2024-07-10 11:47:06 +02:00
Tobias Hunger
5663aa0cfd
live-preview: Navigate to property
...
Clicking on an existing property in the PropertyEditor will ask
the editor to navigate to the right place.
2024-06-28 18:55:32 +02:00
Tobias Hunger
74a8779e9c
live-preview: Add a property editor
2024-06-28 10:58:45 +02:00
Tobias Hunger
4decde2632
live-preview: Split out tool components from component-list
...
... so I can reuse them in a to-be-defined PropertyEditor component.
2024-06-27 13:11:42 +02:00
Tobias Hunger
80bab3c04d
live-preview: Pretty up the Api file
...
No code change, just rearrange lines and some more comments.
2024-06-26 17:19:07 +02:00
Tobias Hunger
bd32c2f143
live-preview: Use a global Api object in the UI
...
... to avoid going throught the root node with everything.
2024-06-26 15:14:14 +02:00
Tobias Hunger
caacd487ac
live-preview: Make the component list a bit prettier
2024-06-24 14:10:16 +02:00
Tobias Hunger
a810fc1df3
live-preview: Move renaming of component fucntionality into the ComponentLabel
...
... remobving the functionality fronm the ComponentList again.
2024-06-24 14:10:16 +02:00
Tobias Hunger
d0d0327049
live-preview: Only pass information on the component previewed once
2024-06-24 14:10:16 +02:00
Tobias Hunger
127535b0e1
live-preview: Keep a stack of components previewed
...
... and add back/forward buttons to navigate between them.
2024-06-24 14:10:16 +02:00
Tobias Hunger
1b88f70086
live-preview: Add a "show preview" button into the component list
...
... It is *UGLY*, really *UGLY*. But it works ;-)
2024-06-24 14:10:16 +02:00
Tobias Hunger
35b61fa852
live-preview: Show a label of the component currently visible
...
* Make the location a click-target that asks the editor to navigate to that
component
2024-06-24 14:10:16 +02:00
Tobias Hunger
37d6922983
live_preview: Wire up component renaming
2024-06-21 14:40:50 +02:00
Tobias Hunger
97daf41245
live-preview: Add a button to add a new component with
...
... and make it trigger a function in preview.rs.
2024-06-19 11:45:37 +02:00
Aurindam Jana
3523e86359
Simplify commercial license ( #3063 )
...
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license ( #5257 )
...
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Tobias Hunger
8dcd9713ff
live-preview: Manually implement a drag distance threshold
...
This should fix e.g. a click on a selected item in slintpad to actually move
the element.
2024-05-08 18:39:56 +02:00
Tobias Hunger
51564c4cea
live-preview: Fix select-behind
...
Brown paper bag issue: Actually map the click to the right place :-(
2024-05-08 12:49:12 +02:00
Tobias Hunger
3d34c3be6d
live-preview: Move already placed elements
...
Allow to move already placed elements in Design Mode of the live preview.
Todo: GridLayout is not supported yet.
2024-04-29 22:50:29 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License ( #4994 )
...
Updated the version from 1.1 to 1.2
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00