Commit graph

22 commits

Author SHA1 Message Date
Candice Bentéjac
9b5dd40b02 [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00
Fabien Castan
831443c29d [ui] NodeEditor: refactor ChunksList and add global stats 2021-01-22 11:38:53 +01:00
Fabien Castan
2705c89130 [ui] GraphEditor: single tab group + status table
- Use a single tab group for attributes, log, statistics, status
- Use a ListView with key/value to display the node status fields (instead of a file viewer)
2020-01-27 16:08:18 +01:00
Yann Lanthony
bedda0c5b6
[ui] simplify loading of statistics file
* NodeLog: remove intermediate property for Loader
* StatViewer
   * keep only one function to load source file
   * only send request only after the previous one fully completed
  * update deltaTime before initializing charts
  * reset "sourceModified" property when source changes
2019-08-06 10:23:59 +02:00
Lee Geertsen
1822bbe13d Dynamically load TextFileViewer or StatViewer depending on selected tab 2019-07-26 11:35:44 +02:00
Yann Lanthony
d7f8311dcf
[ui] NodeLog: set TextFileViewer source when chunks ListView is ready
Avoid going through an empty source when switching from one node to another (currentChunk being invalid the time the ListView is being constructed).
2019-05-15 20:17:09 +02:00
Yann Lanthony
17556427fd
[ui] NodeLog: PySide2 5.11 compatibility fixes
* downgrade imports to work with versions prior to 5.12
* remove ES7 syntax
2019-05-09 18:18:48 +02:00
Yann Lanthony
55dba55d19
[ui] New TextFileViewer for displaying log files
Introduce a new TextFileViewer component with auto-reload feature based on a ListView instead of a TextArea for performance reasons. Uses the text content split on line breaks as ListView's model.
Features: 
 * auto-scroll to bottom
 * display line numbers
 * customizable line delegates (e.g.: display a real progress bar)
 * color lines according to log level
2019-05-07 11:47:09 +02:00
Yann Lanthony
3b656d97fd [ui] NodeLog: load file only if visible
* when visibility changes, only load current file if log is actually visible
* set 'keepCursorPosition' default value to false in 'loadCurrentFile' method
2018-09-06 15:56:52 +02:00
Yann Lanthony
143b519dbd [ui] NodeLog: cross-platform monospace display
Specify multiple fixed size font families:
- Linux: "Monospace" 
- Windows: "Consolas" 
- OSX: "Monaco"
2018-09-06 15:56:52 +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
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
b9a1e57b79 [ui][log] reload file when auto-reload timer stops
useful to reload the file when status goes from RUNNING to ERROR/SUCCESS
2018-02-26 17:00:20 +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
b08a6d65bf [ui] logs: use Monospace font 2018-01-29 16:17:27 +01:00
Yann Lanthony
96d648d76d [ui] logs: reset text if file could not be opened 2018-01-29 16:16:04 +01:00
Yann Lanthony
817e286d8f [ui] logs: add button to control auto-refresh when chunk is running 2018-01-26 12:23:32 +01:00
Yann Lanthony
796551dc38 [ui] logs: don't reload unchanged file + improve position restoring
* in case the textArea changes, restore the scrollbar position to where it was (not only the cursor position)
2018-01-25 21:46:43 +01:00
Yann Lanthony
0bf2ffc4af [ui] logs: load first chunk's log by default 2018-01-25 21:36:44 +01:00
Yann Lanthony
5f72a8a4eb [ui] NodeLog: add initial log file read when chunk status changes 2018-01-03 16:00:27 +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