Commit graph

22 commits

Author SHA1 Message Date
Yann Lanthony
b8730324c7 [setup] add 'setupEnvironment' for setting-up standalone configuration
* setup environment vars to work in a prebuilt, standalone configuration
* call 'setupEnvironment' at the beginning of executables
2018-08-03 17:24:04 +02:00
Yann Lanthony
8852f98bea [ui] split __main__.py code into separate modules
* add meshroom.ui.app.MeshroomApp to setup Meshroom UI application
* move PaletteManager to dedicated meshroom.ui.palette module
2018-06-06 12:18:43 +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
571560a43a [ui] disable QML warnings output by default
* those warnings mostly make sense in a development context
* set MESHROOM_OUTPUT_QML_WARNINGS=1 to output QML warnings
2018-05-28 11:39:35 +02:00
Yann Lanthony
b81cf89ffe [ui] change Meshroom's icon
use new logo as application icon
2018-04-16 11:51:53 +02:00
Yann Lanthony
def7e6b634 [ui] set font size at Application level 2018-04-09 12:00:30 +02:00
Yann Lanthony
6ae591e981 [ui] module Singleton crashes at exit; expose "Filepath" as context property
TODO: find a better way to do this (wait for 'qmlRegisterSingletonType' to be available in PySide ? )
2018-03-23 11:17:11 +01:00
Yann Lanthony
ee02e5724e [ui] set organization and application names 2018-01-15 14:34:57 +01:00
Yann Lanthony
22c54bd1c5 [ui] force application exit on KeyboardInterrupt from command line 2018-01-10 11:47:32 +01:00
Yann Lanthony
a26a3f9af5 [ui] GraphEditor: add node creation menu
* expose node types model as context property
* right clicking on an empty space inside the Graph Editor opens Node Creation menu with all available node types
2017-12-18 19:46:45 +01:00
Yann Lanthony
b771352694 [ui] add main qml folder in QML import path 2017-12-05 16:00:33 +01:00
Yann Lanthony
1723f4abdc [ui] fix missing replacements QGuiApplication -> QApplication 2017-12-01 18:22:44 +01:00
Yann Lanthony
ab563dd4f5 [ui] use QApplication for Platform.FileDialog fallback
From Qt docs: "The Qt Labs Platform module uses Qt Widgets as a fallback on platforms that do not have a native implementation available. Therefore, applications that use types from the Qt Labs Platform module should link to QtWidgets and use QApplication instead of QGuiApplication."
2017-12-01 17:33:33 +01:00
Yann Lanthony
911b5ea6d0 [ui] dev: watch qml source files recursively 2017-11-17 17:43:14 +01:00
Yann Lanthony
2749e1dcdd [ui] add placeholder application icon
use AliceVision logo until meshroom has its own icon
2017-11-17 17:42:52 +01:00
Yann Lanthony
83c6d68954 [ui] add palette variation for dark theme
Crtl+Shift+P allows to toggle between light and dark theme on the fly
2017-11-17 17:40:27 +01:00
Yann Lanthony
e683238a8d [ui] update main
* use Fusion style by default (Qt >= 5.10)
* enable high DPI scaling
* parent main Reconstruction to the application
2017-10-31 16:53:35 +01:00
Yann Lanthony
c1b80ff3e3 [ui] stop potential computations when app is about to exit 2017-10-13 18:02:39 +02:00
Yann Lanthony
af53dd4ae7 [ui] new EdgeMouseArea QtQuick Component
QtQuick components providing mouse interaction for edges (cubic splines)
2017-10-13 18:01:49 +02:00
Yann Lanthony
81398e63a6 [ui] add and use QmlInstantEngine for QML hot reload 2017-10-06 15:56:38 +02:00
Yann Lanthony
4d265a08e2 [ui] main: remove hacks due to a faulty PySide2 installation 2017-10-06 15:50:51 +02:00
Yann Lanthony
48941a5782 [ui] first basic debugging UI + elementary commands
* nodes as a ListView (right click to delete a node)
* editable attributes 
* undo/redo for adding/removing nodes and attribute edition
2017-09-25 20:18:27 +02:00