diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-12 22:38:32 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-12 22:38:32 +0100 |
| commit | 7f193b33048e6c270f7a6cd99dd31a94f03fe26c (patch) | |
| tree | 5c5bdd34d051216adfc1e817da68d08e14b4e2a2 /src/flcurve.cxx | |
| parent | b83757adfe66862e34bccd8b70190711c5143639 (diff) | |
add flcurve
Diffstat (limited to 'src/flcurve.cxx')
| -rw-r--r-- | src/flcurve.cxx | 55 |
1 files changed, 55 insertions, 0 deletions
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 <Johannes.Hofmann@gmx.de> +// +// This software may be used and distributed according to the terms +// of the GNU General Public License, incorporated herein by reference. + +#include <string.h> +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> + +#include <FL/Fl.H> +#include <FL/Fl_Window.H> +#include <FL/fl_draw.H> + +#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(); +} |
