From 7f193b33048e6c270f7a6cd99dd31a94f03fe26c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 12 Jan 2008 22:38:32 +0100 Subject: add flcurve --- src/flcurve.cxx | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/flcurve.cxx (limited to 'src/flcurve.cxx') diff --git a/src/flcurve.cxx b/src/flcurve.cxx new file mode 100644 index 0000000..ca0f8ff --- /dev/null +++ b/src/flcurve.cxx @@ -0,0 +1,55 @@ +// +// Copyright 2008 Johannes Hofmann +// +// This software may be used and distributed according to the terms +// of the GNU General Public License, incorporated herein by reference. + +#include +#include +#include +#include + +#include +#include +#include + +#include <../config.h> + + +void +usage() { + fprintf(stderr, + "flcurve %s\n" + VERSION); +} + +int +main(int argc, char **argv) { + int c, n, i, err; + + while ((c = getopt(argc, argv, "?hs:g:d:f:i:")) != EOF) { + switch (c) { + case '?': + case 'h': + usage(); + exit(0); + default: + i = optind - 1; + n = Fl::arg(argc, argv, i); + if (n == 0) { + err++; + } else { + optind = i; + } + break; + } + } + + Fl_Window window(800, 600); + window.end(); + + + window.show(1, argv); + + return Fl::run(); +} -- cgit v1.2.3