diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.am | 5 | ||||
| -rw-r--r-- | src/flcurve.cxx | 55 |
2 files changed, 59 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 629a3df..12380e5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -bin_PROGRAMS = pnmlcms +bin_PROGRAMS = pnmlcms flcurve pnmlcms_SOURCES = \ pnmlcms.c \ @@ -6,3 +6,6 @@ pnmlcms_SOURCES = \ noinst_HEADERS = \ pnm.h + +flcurve_SOURCES = \ + 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 <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(); +} |
