summaryrefslogtreecommitdiff
path: root/src/openscad.cc
AgeCommit message (Collapse)Author
2014-02-17cmdline(): fix crash on file names without suffixJan Huwald
- fix witespace - fix error message: print file name
2014-02-16allow writing to standard output from command line, update output handler to ↵Jan Huwald
lambda - cmdline can output to a file or cout - output handler uses lambda instead of function pointer - this allows removing Echostream with a one-liner
2014-02-16add --action cmdline, make -o optional, partially implement usage of stdout ↵Jan Huwald
as output_file This patch introduces the --action command line argument. It can override the action determined by the file name suffix and enables writing to stdout (where no suffix exists). -o is now optional and defaults to "<inputfile>.<action>".
2014-02-16refractor command line parsingJan Huwald
- handle optional values with boost::optional<string> instead of char - handle -o/-s/-x without code duplication
2014-02-16openscad.cc: remove unreachable error statements in option parserJan Huwald
2014-02-16write output to temporary file, commit only after completionJan Huwald
cmdline() is modified to write into <output_file>~ and only after succesful completion of the given command rename this file into <output_file>. In case of failure the file is deleted. This prevents dangling errorneous output files and overwriting valid (but old) files with new trash. This patch is required for robust use of OpenSCAD in Makefiles. In case of a crash the output file must not be touched. Otherwise the update file date will trick Makefile into assuming a succesful build.
2014-02-15openscad.cc: rename std::vector and std::string to vector and stringJan Huwald
2014-02-15reduce code redundancy in cmdline()Jan Huwald
- add a map of actions (lambdas) mapped by file suffixes - centralize creation of output file - factor out model checks (# of dims, simplicity) - use output_file instead of <suffix>_output_file
2014-02-14compute application path without resorting to QtJan Huwald
cmdline() determines the application path using either Qt or boost::filesystem, depending on wether Qt is enabled. With this patch we always use boost:filesystem.
2014-02-14Merge branch 'f_improve_help' into f_refractor_openscadJan Huwald
2014-02-13allow reading .scad files from standard inputHEADmasterf_read_stdinJan Huwald
This patch loads the root source code form standard input if "-" is given as file name. In this case handle_dep() is disabled for the root module but still executed for all included files.
2014-02-13Automatize and improve --help outputf_improve_helpJan Huwald
- replace the fixed string in help() with auto-generated strings obtained (via boost:program_options) from the option_descriptions - split visible options into two actions (-o, --info, ...) and options (which only modify actions) - merge and improve the description text of the options_description and the string found in help() - use local lambda help() in main to keep calls to ::help() short
2014-02-06Backported 2e3729ab2268f29ee4ff5898f629c4a10c2d6587 to master; redo ↵Marius Kintel
assemblePath for Win. redo openscad.com to handle spaces in filenames
2014-02-05Qt5: Ported Q_WS usage to Q_OSMarius Kintel
2014-02-04Added --csglimit parameterMarius Kintel
2014-01-18killed warningMarius Kintel
2014-01-07Mac fix: We need to use bundled resources when running bundled apps in ↵Marius Kintel
cmd-line node
2014-01-03Added missing --version and --info to help outputMarius Kintel
2014-01-03Keep cmd-line and GUI separate in terms of preferences, handle experimental ↵Marius Kintel
tests separately, minor cleanups
2014-01-02Add feature registry.Torsten Paul
2013-12-08#559 Fix Qt font rendering on OS X 10.9Marius Kintel
2013-11-08Re-fix: don't add path to empty files. Fixes #536Marius Kintel
2013-10-30Invocation of openscad with an absolute path failed:Henner Zeller
./openscad /home/username/foo.scad .. because the curent working directory was always prepended; so internally, it attempted to open $PWD + /home/username/foo.scad Use platform aware QDir functionality to only prepend the absolute current working directory prefix, if the given path is relative.
2013-10-25Use PRINTB for output which might be grabbed by OS launchersMarius Kintel
2013-10-25bugfix: Allow unknown parameters. This fixes exit-on-launch issue on MacMarius Kintel
2013-10-22bugfix: starting without arguments caused a warningMarius Kintel
2013-10-22bugfix: Don't use QApplication before it's instantiatedMarius Kintel
2013-10-07Mac needs to know if we're a GUI app in order to find bundled libraries, Use ↵Marius Kintel
Qt to find application path if available
2013-10-04Mac build fixMarius Kintel
2013-10-04Mac build fix for openscad_noguiMarius Kintel
2013-10-04Make recent examplesdir changws work for MDI modeMarius Kintel
2013-10-02fix broken buildDon Bright
2013-10-02Merge branch 'master' of github.com:openscad/openscad into issue480Don Bright
Conflicts: src/openscad.cc
2013-09-25remove unused stuffVicnet
2013-09-21use debug symbols for test binaries. also remove echostream pointerDon Bright
2013-09-21make echotest work on BSD, by adding .echo as recognized extensionDon Bright
2013-09-21moving towards making tests work on bsd againDon Bright
2013-09-20restore missing digits. make --info work better. fix parser / path bugDon Bright
2013-09-20allow openscad binary to be compiled with or without QT. use non-QT for tests.Don Bright
2013-09-13Merge pull request #476 from openscad/testfixesMarius Kintel
Testfixes
2013-09-13little tweaks, cleanups, tab fixing, eliminating commentsDon Bright
2013-09-12cmdline throwntogether, integrate w chrysn tests, update resize testsDon Bright
2013-09-12fix issue #430Don Bright
2013-06-25add .term output for CSG term exportchrysn
2013-06-25drop moduledumptest, use `openscad -o ${NAME}.ast`chrysn
src/openscad.cc code was copy/pasted from .csg section; some refactoring might make things nicer, but i didn't dare change too much for lack of language knowledge
2013-06-25use openscad as a replacement for dumptest and echotestchrysn
the echotest and dumptest still contain hacks to keep the delta to the original unit tests minimal; possibly, some of these changes will make it into the openscad program, at which time they can go away from there.
2013-06-18Removed 'Root Context' debug outputMarius Kintel
2013-05-09Forgot to actually add most files in previous commit (#217)Marius Kintel
2013-04-26Further refactoring of scope/context mechanisms. Mostly related to the new ↵Marius Kintel
FileContext class. Not quite there yet, but almost
2013-04-26Refactoring: Split out FileModule from Module, Added LocalScope renamed some ↵Marius Kintel
confusing 'evaluate' methods to 'instantiate', added FileContext (not yet used)
contact: Jan Huwald // Impressum