summaryrefslogtreecommitdiffstats
path: root/src/eulogium.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* [griffin.display] Add more states based on the dummy printerOlliver Schinagl2015-06-121-9/+52
| | | | | | | The dummy printer is giving us more states and allows for more advanced screens (for now). Update the progress screen with more information Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Do not update state if it is sthe same as the previous stateOlliver Schinagl2015-05-271-34/+35
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Use macro for time calculation, those magic values look too horribleOlliver Schinagl2015-05-271-14/+21
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* [griffin.display] Add mmc and usb storage optionsOlliver Schinagl2015-05-261-4/+80
| | | | | | | | Adds support for mmc or usb storage as an option. Only the last hot-plugged device is being displayed/used now, as we don't know how we want to handle multiple storage options yet. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* fix some typo-bugs and some verbosityOlliver Schinagl2015-05-261-5/+5
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add an empty buttonOlliver Schinagl2015-05-261-0/+10
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* [griffin.display] Creating an initial list is not neededOlliver Schinagl2015-05-181-7/+1
| | | | | | | | | | | | | Initially I made mount->mounts (the self list pointing pointer) an Eina_List *, and while this worked, it was wrong. It also required to have a dummy first entry to actually create the list so we could pass it around properly. The proper fix was to use a pointer to the Eina_List, and with the proper use the initial entry is no longer needed and thus no strange things need to be created around it to deal with the sentinel. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Improve comments/text a bitOlliver Schinagl2015-05-181-3/+4
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Do not use ints for something thats size_t.Olliver Schinagl2015-05-181-4/+4
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* [griffin.display] Add initial USB mount detection supportOlliver Schinagl2015-05-181-0/+266
| | | | | | | | | | | | | | | | This patch adds support for external mounts, when a user inserts or removes a USB stick (technically, if the fs is being mounted) and systemd takes notice of this, an eeze_disk object is created for this. Other media types are ignored for now, until they can be properly identified. All storage kinds should eventually end up in the mounts struct, so that the UI can scan that for mount points. Right now, only USB storage is added to this. A hack to add local storage will be required (tmpfs?) Also, all available storage is scanned during startup, in case storage was mounted during boot and thus no hotplug event is being generated. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Fix segfault when exiting and no filehandler was loadedOlliver Schinagl2015-05-131-2/+4
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add initial eeze supportOlliver Schinagl2015-05-111-1/+7
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* [displayService] Query harmaService for file handlersOlliver Schinagl2015-05-111-14/+31
| | | | | | | | | | | | Harma is the only service that knows which file types are supported by the installed engine. With this patch harma is queried for the supported file handlers. Note. We cache the result and is valid for the lifetime of the displayService. To change this a signal could be added to harma to notify the users of a changed file handler support Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Remove first run wizard as it is commented in the statemachineOlliver Schinagl2015-05-081-7/+0
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Revamp progress displayOlliver Schinagl2015-05-081-30/+20
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Remove statemachine from bed clearingOlliver Schinagl2015-05-081-10/+4
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Remove start print 'state-mini-machine'Olliver Schinagl2015-05-081-32/+6
| | | | | | | | | | | The UI is fully controlled by the states of griffin.printer.getState and thus we don't worry about various states when starting a print, we let griffin.printer worry about that. It should be noted that the griffin.printer state machine is far from complete and we may still end up in a strange state. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* fix build by adding _on_status_changed_ret and friends. Also the struct ↵Olliver Schinagl2015-05-081-15/+82
| | | | | | (ns) based messaging protocol is gone and replaced with a string parser Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add getFileHandlers from griffin, this patch breaks buildOlliver Schinagl2015-05-081-10/+13
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Clean up bed-clearing function a littleOlliver Schinagl2015-05-081-11/+10
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* add missing _on_get_print_name_retOlliver Schinagl2015-05-081-0/+18
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add progress update timer for print-progressOlliver Schinagl2015-05-081-0/+89
| | | | | | | While we poll the remaining time with griffin.printer, griffin.printer doesn't know this yet, so results are untested and may not work. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Completly disable cursor on a framebuffer deviceOlliver Schinagl2015-05-081-0/+1
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Some cleaning up, no code changesOlliver Schinagl2015-05-081-11/+6
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Remove abort button from error screenOlliver Schinagl2015-05-081-1/+3
| | | | | | | Remove the abort button from the error screen. Maybe in the future replace it with a shutdown button. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add 'clear data' routineOlliver Schinagl2015-05-081-27/+36
| | | | | | | | | | Currently there are is a lot (too much?) data in the data structures that need to be cleaned up afterwards. This patch adds a function to clear up as much as possible in one go. Additionally this patch sets some sane default values to these data Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Use new dual and split screen framesOlliver Schinagl2015-04-301-34/+26
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Properly iterate complex dbus messages, they can not be read otherwiseOlliver Schinagl2015-04-301-3/+13
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Use user-home icon and remove < symbol from the return buttonOlliver Schinagl2015-04-301-2/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* make splitscreen bottom button align betterOlliver Schinagl2015-04-291-2/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Make a warning from a printfOlliver Schinagl2015-04-291-1/+1
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* change print progress to a box from a tableOlliver Schinagl2015-04-291-34/+17
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Move (almost) all callbacks to the top, add prototypes for themOlliver Schinagl2015-04-291-215/+249
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Make vertical button box homogeneous and available to allOlliver Schinagl2015-04-291-7/+28
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* split tripple menu up into a dual buttonOlliver Schinagl2015-04-291-29/+37
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Check for print bed status before starting a printOlliver Schinagl2015-04-291-4/+74
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* improve dbus error handling a bit, i think we try to get a message, even if ↵Olliver Schinagl2015-04-291-13/+24
| | | | | | we allready know we have failed. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add error printing if the printer is in an error state, open the option for ↵Olliver Schinagl2015-04-291-4/+23
| | | | | | an error dialog Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Get and store printer statusOlliver Schinagl2015-04-291-0/+47
| | | | | | | | | | The printer service constantly emits a signal whenever the signal changes. If we connect however and if the status is for example IDLE, we won't know about this state until the signal gets emitted via a status change. To counter this, we also add a method to get the initial status. Right now, we store only the actual state. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add some very preliminary dummy IP info screenOlliver Schinagl2015-04-291-1/+18
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* add comment about what to do with the error screenOlliver Schinagl2015-04-291-0/+1
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Try to abort the print when using the abort buttonOlliver Schinagl2015-04-291-0/+14
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* fix up some wording orderOlliver Schinagl2015-04-291-2/+1
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Move return button to the top as it can be very commonly usedOlliver Schinagl2015-04-291-23/+23
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add print progress data containerOlliver Schinagl2015-04-291-1/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* typo cleanups + enable wizardOlliver Schinagl2015-04-291-3/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Move global GUI objects for the progress window into the main storage. ↵Olliver Schinagl2015-04-291-27/+29
| | | | | | Potentially this needs to be its own progress_data struct Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Make progress screen appear based on successful start of print.Olliver Schinagl2015-04-281-6/+19
| | | | | | | | With this patch we start the print progress dialog based on the return status of harma's startPrint request. If we fail to contact harma or start a print, right now we emit a generic error. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Rename _on_start_print_ret to _on_print_start_retOlliver Schinagl2015-04-281-2/+3
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add very generic basic error dialogOlliver Schinagl2015-04-281-0/+25
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>