1 /*************************************************************************** 2 main.cpp - entry point 3 ------------------- 4 begin : Sat May 17 2003 5 copyright : (C) 2003 by J�r�me Laheurte 6 email : fraca7@free.fr 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 18 #ifdef HAVE_CONFIG_H 19 # include <config.h> 20 #endif 21 22 #ifdef HAVE_FL_WITH_LC_H 23 # include <FL/Fl.h> 24 #else 25 # include <FL/Fl.H> 26 #endif 27 28 #include "MainWindow.h" 29 #include "Configuration.h" 30 31 MainWindow *AppWindow; 32 main(int argc,char * argv[])33int main (int argc, char *argv[]) 34 { 35 int ret; 36 37 load_config(); 38 AppWindow = new MainWindow(); 39 Fl::lock(); 40 ret = Fl::run(); 41 save_config(); 42 return ret; 43 } 44