Commit Graph

56 Commits

Author SHA1 Message Date
Florian Festi 1b2f5791bd Use Boxes.description in the cli help and the web interface 2017-11-30 22:48:02 +01:00
Marius Bergmann b13cef20ed Refactor `boxes` start script
- split up into separate functions
2017-11-29 20:04:21 +01:00
Florian Festi 53052fc2e0 Show sample images for generators in menu 2017-05-08 21:35:19 +02:00
Florian Festi f08b19e54e Make serving static files a bit more efficient 2017-05-07 20:31:27 +02:00
Florian Festi f48fc32cf0 Link to self.css instead of including it in every page 2017-05-07 16:19:00 +02:00
Florian Festi 7b33c46033 Serve static files 2017-05-07 16:19:00 +02:00
Florian Festi b63dcfeee6 Make Traylayout work without main function 2017-04-05 04:33:42 +02:00
Florian Festi bffd732c3f scripts/boxes: Use generator classes instead of main functions
Make Boxes.parseArgs more robust
--list generators by UI group.
Pass arguments explicitly instead of fiddling with sys.argv
2017-04-05 04:33:28 +02:00
Florian Festi 10cad241ef Fix boxes script when passing no param 2017-03-13 11:41:12 +01:00
Florian Festi 0398c3ae98 Remove Traylayout from the Inkscape plugin
as the two stage input does not work with the INkspace plugin system
2017-03-03 22:20:44 +01:00
Florian Festi 6cae3d7dc7 Filter out --id passed from Inkscape
Move message about missing generator to stderr
2017-02-26 18:54:34 +01:00
Florian Festi 5ef277fc21 boxes2inkscape: Execute boxes directly, add dependency
Default to str as type of inputs
2017-02-25 19:45:55 +01:00
Florian Festi e0a4d06c43 Hackish way to make scriptsboxes to work with Inkscape. 2017-02-23 17:38:26 +01:00
Florian Festi 39e74e67ba Add scripts/boxes2inkscape for generating inx files from box generators
Code for handling traylayout still missing.
2017-02-23 17:38:26 +01:00
Florian Festi b9fef2c6e1 Follow symlinks when determining path of boxes library from executable 2017-02-23 17:38:26 +01:00
Florian Festi 6264798655 Boxes.py link - next try 2017-02-15 22:03:52 +01:00
Florian Festi 7e672eced2 Fix link back to menu in generators 2017-02-15 22:01:26 +01:00
Florian Festi 065130a19b Python 2 compat: use codes to read css 2017-02-15 21:50:54 +01:00
Florian Festi 527388c5f2 Update text on menu page 2017-02-15 15:56:38 +01:00
Florian Festi 96708189a8 Add license header 2017-02-15 15:56:02 +01:00
Florian Festi a71f9a2bed Web UI tweaks 2017-02-13 23:15:02 +01:00
Florian Festi d3c76f2b9e Put box generator into groups and adjust the menu web page accordingly 2017-02-13 17:31:58 +01:00
Florian Festi 8dc13440ee Fix boolean params. Not passing 0, None, False or off works for setting them to False
Thanks to chrisjshull for pointing out how to fix this in the web UI.
Fixes #19
2017-01-08 17:25:36 +01:00
Florian Festi 71d918f6a5 Make logo smaller for generators 2016-12-18 21:22:19 +01:00
Florian Festi 9fe60c27fb Traylayout: Make textarea monospace in web UI 2016-12-11 22:31:27 +01:00
Florian Festi 9a35ce5b15 boxesserver: unquote_plus all params 2016-12-11 22:31:12 +01:00
Florian Festi 3a4c0cd49c Use default value for checkboxes in the web UI.
There are still issues with the boolean params when default is True
2016-11-30 21:44:22 +01:00
Florian Festi 981c99a7d8 Remove general Boxes.py description from generator web pages 2016-11-26 13:59:41 +01:00
Florian Festi fe79970cc3 Beautify web UI
Watch self.css
2016-11-01 23:46:25 +01:00
Florian Festi 6d39db75e1 Remove group prefix when showing params in web interface
Make groups collapsable
2016-10-31 22:17:52 +01:00
Florian Festi 5a721df82b Put arguments into groups and use them to display them in the web interface 2016-10-31 22:11:54 +01:00
Florian Festi 4ae6303053 Open self.css from absolute path 2016-10-08 15:08:30 +02:00
Florian Festi 07df27fa48 Round forth corners 2016-10-08 14:09:46 +02:00
spezi b4f9eca80b add styles 2016-10-08 13:58:23 +02:00
Florian Festi 6dd482be9c Generate the list of generators automatically
Generate new traylayout class to make this work with the web interface
Minor fix to not error out in web interface for non existing doc string
2016-07-31 17:18:17 +02:00
Florian Festi 1849bfd5ab New PlanetaryGear generator 2016-07-25 19:14:35 +02:00
Florian Festi a7728d8e32 New GearBox generator 2016-07-16 15:32:06 +02:00
Florian Festi 5201138390 Add Pulley generator 2016-07-13 20:04:57 +02:00
Florian Festi 33a1333ad9 Add FlexTest2 for new 2D flex pattern 2016-07-12 16:54:44 +02:00
Marius Bergmann 4b487014d0 Fix project for use within virtualenv
- Use /usr/bin/env to determine path to python3 instead of a hard-coded
  path, so that virtualenv stubs work properly.
- Change package name to 'boxes' ('boxes.py' did not work within
  virtualenv).
2016-07-12 13:13:03 +02:00
Florian Festi b3797c95ea Handle missing files correctly when checking for altered sources
This may happen when checking out older versions or parallel branches
2016-06-30 11:54:24 +02:00
Florian Festi d9efb53fc5 Remove redundant Demobox from web interface 2016-06-30 11:52:17 +02:00
Florian Festi 9f4e115c9a Support formats via pstoedit 2016-06-29 13:58:26 +02:00
Florian Festi ab1809c42b Add support for choices in arguments to web interface 2016-06-29 13:58:06 +02:00
Florian Festi 8188821332 Clarify error message for unknown generator names 2016-06-22 23:13:50 +02:00
Florian Festi 3c5b3147f4 Fix boolean params in web interface by switching to action=store, type=bool
instead of using action=store_true
2016-06-21 21:53:24 +02:00
Florian Festi 6688957a72 New flexbox 2016-06-14 20:36:26 +02:00
Florian Festi 3361f2ae13 Restart standalone http server when sources have changed 2016-06-07 20:24:46 +02:00
Florian Festi 60b12f821e Fix Python 2 compitiblility issue with urllib 2016-05-22 12:37:35 +02:00
Florian Festi 6a0842805f Remove print statement tripping up in httpd 2016-05-22 12:18:23 +02:00