25 Commits

Author SHA1 Message Date
Lipu Fei
051dd7a6e9 WIP: Make application initialization and start up more clear
- Create SingleInstance class to handling single instance stuff.
 - Instead of calling getInstance() everywhere, initialize each object
   explicitly in order when application starts and getInstance()s do not
   create instances any more and they merely return the created
   instances.
 - Only set initial values in construtor functions __init__(). Move the
   initialization of context-aware (i.e. things that depend on other
   things) to separate functions.
 - Split application creation and initialziation into several steps and
   them should be called explicitly in the correct order.
2018-05-04 09:57:02 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Lipu Fei
ba79f44783 CURA-3470 Return list instead of set for QVariantList 2017-03-07 16:42:56 +01:00
Simon Edwards
a5181f157e Applied the profiler's pyqtSlot decorator to all of the code. 2017-01-10 13:35:39 +01:00
fieldOfView
228f5be35a Fix order of machine actions on manage printers page
MachineActionManager now uses lists instead of dicts because dicts don't maintain the order.
2016-07-29 17:14:18 +02:00
Jaime van Kessel
35a8e7ca94 Added missing decorator
CURA-1385
2016-06-23 11:41:13 +02:00
Jaime van Kessel
45dca3f878 Refactoring (Renaming variables so they are more clear & update documentation) 2016-06-23 11:09:55 +02:00
Jaime van Kessel
e1828a7689 Removed stray debug print
CURA-1385
2016-06-22 12:59:35 +02:00
Jaime van Kessel
8cfc0737ac First run actions are now properly handled
CURA-1385
2016-06-22 11:49:35 +02:00
Jaime van Kessel
8237047907 Actions are now added as buttons to machinePages
CURA-1385
2016-06-20 13:46:05 +02:00
Jaime van Kessel
83c1ee8082 Required/supported/first run actions are now added to the manager
CURA-1385
2016-06-20 10:52:18 +02:00
Jaime van Kessel
6f7affa2bf Machine actions can now be triggered from QML
CURA-1385
2016-06-17 17:22:49 +02:00
Jaime van Kessel
af3e4e3a15 Machine actions can now be used as a plugin type for Cura
CURA-1385
2016-06-17 15:45:10 +02:00
Jaime van Kessel
4beec2982e Fixed typo
CURA-1385
2016-06-17 15:23:15 +02:00
Jaime van Kessel
32143ced44 Fixed firstStart actions
CURA-1385
2016-04-29 13:15:26 +02:00
Jaime van Kessel
8cd0933b16 Fixed issue with sets not being updated
CURA-1385
2016-04-29 12:23:05 +02:00
Jaime van Kessel
69bd1a6586 Used {} instead of set
This is because the one item I put in there is not considered iteratable.

CURA-1385
2016-04-29 12:10:36 +02:00
Jaime van Kessel
ea80159939 Fixed silly typo
CURA-1538
2016-04-29 12:02:24 +02:00
Jaime van Kessel
06dfb73602 Exceptions are no longer general typed
CURA-1385
2016-04-29 11:36:06 +02:00
Jaime van Kessel
ae0e05182b First start actions are now added to correct list
CURA-1385
2016-04-29 11:12:22 +02:00
Jaime van Kessel
5a1af3b1ea Added getters for required & supported actions
CURA-1385
2016-04-29 11:11:25 +02:00
Jaime van Kessel
958918e033 Added copyright notice
CURA-1385
2016-04-29 10:21:27 +02:00
Jaime van Kessel
be7a8ca9b2 Added other add action functions
CURA-1385
2016-04-28 17:35:40 +02:00
Jaime van Kessel
978536162c Save reference to the action instead of key
CURA-1385
2016-04-28 17:30:14 +02:00
Jaime van Kessel
633d14d925 Added first stubs of MachineActions
CURA-1385
2016-04-28 17:21:09 +02:00