// // 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> #include "CurveEditor.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, 800); CurveEditor ce(10, 10, 780, 780); window.end(); window.resizable(ce); window.show(1, argv); return Fl::run(); }