Commit graph

19 commits

Author SHA1 Message Date
Julien-Haudegond
a5407fc8c7 [ui] Graph Editor: remove useless attributes property 2020-07-29 11:34:45 +02:00
Julien-Haudegond
2d953d7319 [core] add enabled property on attributes
The new property "enabled" allows to define a lambda to dynamically enable/disable parameters.
Disabled parameters are not used in the uid, not exported to the command line and not visible in the interface.
2020-07-24 17:36:17 +02:00
Yann Lanthony
45faa860c9 [ui] AttributeEditor: remove SortFilterDelegateModel
Usage of DelegateModel for model filtering has not proven to be the most stable solution, and might be responsible for random crashes happening during engine's garbage collection.  Implement Loader-based alternative:
* first delegate is a Loader which creates the AttributeItemDelegate if necessary
* compensate spacing using negative height when element is hidden
2019-02-08 15:37:06 +01:00
Yann Lanthony
b5c985b3fb [ui] GraphEditor: solo 3D media with Double Click + Control modifier
* allow to solo a 3D media from the GraphEditor by double clicking on a node or an attribute with the Control modifier pressed
* consistent with Viewer3D.MediaLibrary behavior (solo on Ctrl+Click on visibility button)
* handle supported file extensions in Viewer3DSettings
2019-01-07 16:19:42 +01:00
Yann Lanthony
00feb46667 [ui] extract NodeEditor from AttributeEditor
* NodeEditor
    * exposes Node parameters: compatibility, attributes and logs
    * provides a placeholder when no active Node
* AttributeEditor
    * only displays the list of Attributes
    * use 'AttributeEditor' for GroupAttributes in AttributeItemDelegate
* Layout
   * move NodeEditor on the same SplitView level as GraphEditor
   * move current node name and menu to the Panel's header
2019-01-04 17:30:37 +01:00
Yann Lanthony
1c935b6b5a [ui] GraphEditor: show/hide advanced Attributes
* use SortFilterModels to filter out  advanced attributes when hidden
* add GraphEditorSettings with persistent settings related to the GraphEditor
2018-12-20 11:17:23 +01:00
Yann Lanthony
717b4f8b37 [ui] GraphEditor: display compatible attributes in Viewer3D on double click 2018-12-07 16:07:41 +01:00
Yann Lanthony
7db4beea89 [ui] use Node label in GraphEditor 2018-11-19 15:17:37 +01:00
Yann Lanthony
0128cd56f0 [ui] add CompatibilityBadge on CompatibilityNodes
* add badge icon on nodes in GraphEditor
* add badge banner in AttributeEditor with upgrade button when available
2018-07-19 13:50:45 +02:00
Yann Lanthony
2f2390e465 [ui] fix Palette propagation
* bugfix: in latest PySide2 versions, application palette is not properly applied to all QtQuick Controls 2 components. Force this by exposing QApplication palette and bind it to the root ApplicationWindow.
* rename all "palette" ids to "activePalette" to avoid clashes with "palette" property on QtQuick Controls 2
* use parent component palette when it makes sense to propagate active/disabled style (instead of always using Active SystemPalette)
2018-05-28 15:30:09 +02:00
Yann Lanthony
f1b42acc14 [ui] add FilepathHelper Python class to manipulate paths and QUrls
* avoid non-cross platform hacks to convert string path to urls
* use standard python API
2018-03-06 15:32:33 +01:00
Yann Lanthony
2cdc83f06f [ui] add string <--> file representation convertors
* convenient methods to conform strings to Qt file reprensentation using the "file:/" protocol prefix
* use those methodes when manipulating files
2018-02-26 16:59:25 +01:00
Yann Lanthony
b931632ea2 [ui] lose edit focus on background click and TextField validation 2018-02-06 12:19:42 +01:00
Yann Lanthony
f6ff0b9151 [ui] use MaterialIcons instead of ASCII 2018-02-05 19:42:30 +01:00
Yann Lanthony
60f1f36ff8 [ui] AttributeEditor: add contextual actions on File params
* add 'Open Containing Folder'/'Open File' actions for filepaths
* add 'Open Folder' action for folders
* misc: tweak spacings
2018-02-05 19:04:39 +01:00
Yann Lanthony
516a9641bd [ui] display index as label for ListAttribute's children 2018-02-05 17:31:13 +01:00
Yann Lanthony
4d3509847a [ui] move label inside AttributeItemDelegate
* avoid duplication of code for displaying labels of GroupAttribute's children
* display input/output aligned to the left/right
* add a background to improve readability
2018-02-05 15:05:34 +01:00
Yann Lanthony
36d2411d06 [ui] introduce NodeLog Component to monitor NodeChunks
* give access to Node's chunks log files (log, statistics, status) with auto-reload when current NodeChunk is being computed
* add tabs system in the AttributeEditor to switch between attributes edition and Node log
2017-12-28 21:37:26 +01:00
Yann Lanthony
886ded7f19 [ui] create GraphEditor module 2017-12-12 17:47:27 +01:00
Renamed from meshroom/ui/qml/AttributeEditor.qml (Browse further)