summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Convert all floats to doublesOlliver Schinagl2015-05-081-6/+6
| | | | | | Griffin supplies us with doubles, so use those rather then floats Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Do not use fixed printer enum, use printer stringsOlliver Schinagl2015-05-081-1/+12
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Strip naviframe, more stripping should be possible!Olliver Schinagl2015-05-011-512/+5
| | | | 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>
* Remove shadow and glows from progressbarOlliver Schinagl2015-04-302-5/+1
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Use newly created iconsOlliver Schinagl2015-04-302-136/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Remove unused/nessacery font colorsOlliver Schinagl2015-04-304-103/+13
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* make new pixel art, images are too large howeverOlliver Schinagl2015-04-306-0/+0
| | | | 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-292-7/+29
| | | | 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 status containersOlliver Schinagl2015-04-291-0/+19
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Add print progress data containerOlliver Schinagl2015-04-292-1/+3
| | | | 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-292-29/+31
| | | | | | Potentially this needs to be its own progress_data struct Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Handle button text visibility properlyOlliver Schinagl2015-04-291-4/+18
| | | | | | | | | | | Button text's can have several states and those are associated with certain looks. By default, the button is invisible and show() is called on it to make it visible. This patch sets the visible flag properly and adds all potential states we may have, setting the proper font color to match the button skin. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Use colorclasses rather then directly setting the font.Olliver Schinagl2015-04-292-5/+3
| | | | | | | This patch properly uses colorclasses to set the font color etc. It also fixes a concistency typo for focus instead of focused. 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-282-0/+27
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Always put a space between the value and the unit!Olliver Schinagl2015-04-281-1/+1
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* make corners of button a 1px smallerOlliver Schinagl2015-04-283-1/+1
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* move dummy init more logicallyOlliver Schinagl2015-04-281-1/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* store print flags in print structOlliver Schinagl2015-04-282-1/+3
|
* clear data (beter) on abortOlliver Schinagl2015-04-281-2/+5
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* print time should be an int, not a pointerOlliver Schinagl2015-04-282-2/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* make corner a little largerOlliver Schinagl2015-04-283-3/+3
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Remove old txtdataOlliver Schinagl2015-04-281-86/+13
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* add the blink service to two random buttons for initial testingOlliver Schinagl2015-04-281-2/+16
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* Initial dbus supportOlliver Schinagl2015-04-282-1/+70
| | | | | | | | | This patch adds initial dbus support for 3 interfaces for griffin; printer, led and harma. This interfaces are unused for now. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* remove const for the file and name pointers, we can not free them anymore. ↵Olliver Schinagl2015-04-281-2/+9
| | | | | | Also add a file_type enum Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* reword print-type sentinelOlliver Schinagl2015-04-281-1/+2
| | | | Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
* turn pause into an abort buttonOlliver Schinagl2015-04-281-1/+22
| | | | | | | Notice: we just 'NULL' the pointers in the print data. There may be a memory leak here! Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>