Commit graph

35 commits

Author SHA1 Message Date
Julien-Haudegond
a5407fc8c7 [ui] Graph Editor: remove useless attributes property 2020-07-29 11:34:45 +02:00
Fabien Castan
e933e1adf6 [ui] Float attributes: ensure alignment on the left
Ensure that the important part of the number is displayed.
2020-03-18 20:21:02 +01:00
Fabien Castan
77fc562a1e [ui] AttributeEditor: improve display of long floating point values 2020-03-10 11:59:41 +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
5a38295184 [ui][AttributeEditor] display attribute technical name in tooltip
+ convert attribute description from plain text to html
2019-01-04 17:30:38 +01:00
Yann Lanthony
6ac4a9d712 [desc][qt] use QVariantList for list-type properties
* required for PySide2 > 5.11.1 (and compatible with 5.11.1)
* AttributeItemDelegate: test for list length to determine whether to create a slider component (if range is set to None on Python side, it will be an empty list on the QML/JS side)
2019-01-04 17:30:38 +01:00
Yann Lanthony
e7b49f31c7 [ui][GraphEditor] use 'C' locale for FloatParam validator + minor fixes
* using 'C' locale to ensure floating point values can be written using '.' decimal separator
* make TextField larger by default for numbers and fill width when slider is not defined
* avoid binding loop on height for ListAttributes by using contentHeight as implicitHeight
* add explicitly id for Connections in ComboBox
2019-01-04 17:30:37 +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
dc8be1efae [ui] Attribute: display icon on advanced parameters 2018-12-20 11:17:23 +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
754a4360a3 [ui] AttributeEditor: set attribute when edited TextField is destroyed
ensure attribute is correctly set when the AttributeItemDelegate is abruptly destroyed (e.g: when another node is selected)
2018-07-27 19:05:53 +02:00
Yann Lanthony
d3885331b2 [ui] AttributeEditor: fix value setting by slider + avoid scientific notation
* fix reference to non-existing slider.value 
* convert values to string to avoid e+XX notation on large numbers
* fix number of decimals based on stepSize to avoid floating point approximations
2018-07-24 15:14:31 +02:00
Yann Lanthony
ca712ef2aa [ui] AttributeEditor: don't instantiate slider if no range is defined 2018-07-19 13:50:45 +02:00
Yann Lanthony
99d6068250 [graph] make ListAttribute connectable at root level
ListAttribute can now be connected :
 * at root level to another ListAttribute (new)
 * at child level to basic Attributes
2018-06-18 14:58:35 +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
1634555bf0 [ui] replace anchors by alignments inside Layouts 2018-05-03 16:52:00 +02:00
Yann Lanthony
0249706018 [ui] add missing string paths to url conversions 2018-03-21 17:24:19 +01: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
0c071d03d1 [ui] remove ASCII icons
won't render correctly on some platforms
2018-02-26 17:01:41 +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
d91601ca8e [ui] move filepath.js to Utils module 2018-02-15 15:12:07 +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
c45ebdf83c [ui] AttributeEditor: add contextual menu on attributes
* allow to expose additional actions on individuals attributes
* add 'Reset to Default Value' action
2018-02-05 18:28:31 +01:00
Yann Lanthony
24727de477 [ui] make label of linked attributes italic 2018-02-05 18:18:30 +01:00
Yann Lanthony
4d961065a8 [ui] don't 'bold' output attributes label
outputs don't have a real default value
2018-02-05 18:17:12 +01:00
Yann Lanthony
516a9641bd [ui] display index as label for ListAttribute's children 2018-02-05 17:31:13 +01:00
Yann Lanthony
f81fdc3c51 [ui] allow file/text drop on String/File params 2018-02-05 15:22:49 +01:00
Yann Lanthony
0fec9c25b0 [ui] make labels of attributes with non-default value bold 2018-02-05 15:13:10 +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
0354c3dc9b [ui] convert text value to Number before setting Int/FloatParams 2018-02-02 15:18:20 +01:00
Yann Lanthony
e71a95de7a [ui] GraphEditor: invert TexField and Slider on Float/IntAttribute 2018-01-15 21:08:19 +01:00
Yann Lanthony
886ded7f19 [ui] create GraphEditor module 2017-12-12 17:47:27 +01:00
Renamed from meshroom/ui/qml/AttributeItemDelegate.qml (Browse further)