1 /********************************************************************************
2 *                                                                               *
3 *                  F O X   D e s k t o p   C a l c u l a t o r                  *
4 *                                                                               *
5 *********************************************************************************
6 * Copyright (C) 2001,2005 by Jeroen van der Zijp.   All Rights Reserved.        *
7 *********************************************************************************
8 * This program is free software; you can redistribute it and/or modify          *
9 * it under the terms of the GNU General Public License as published by          *
10 * the Free Software Foundation; either version 2 of the License, or             *
11 * (at your option) any later version.                                           *
12 *                                                                               *
13 * This program is distributed in the hope that it will be useful,               *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
16 * GNU General Public License for more details.                                  *
17 *                                                                               *
18 * You should have received a copy of the GNU General Public License             *
19 * along with this program; if not, write to the Free Software                   *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
21 *********************************************************************************
22 * $Id: main.cpp,v 1.8 2005/01/16 16:06:06 fox Exp $                             *
23 ********************************************************************************/
24 #include "fx.h"
25 #include "fxkeys.h"
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <sys/stat.h>
29 #include <signal.h>
30 #ifndef WIN32
31 #include <unistd.h>
32 #endif
33 #include <ctype.h>
34 #include "Calculator.h"
35 
36 
37 // Start the whole thing
main(int argc,char * argv[])38 int main(int argc,char *argv[]){
39 
40   // Make application
41   FXApp application("Calculator",FXString::null);
42 
43   // Open display
44   application.init(argc,argv);
45 
46   // Main window
47   Calculator* calculator=new Calculator(&application);
48 
49   // Handle interrupt to save stuff nicely
50   application.addSignal(SIGINT,calculator,Calculator::ID_CLOSE);
51 
52   // Create app
53   application.create();
54 
55   // Run
56   return application.run();
57   }
58 
59 
60