20 #include "ElementiGrafici.h" 21 #include <qapplication.h> 24 int main(
int argc,
char **argv){
25 QApplication::setColorSpec( QApplication::CustomColor );
26 QApplication a(argc,argv);
28 f.setGeometry(100,200,800,355);
29 a.setMainWidget( &f );
31 int *FileList = (
int *)calloc(argc,
sizeof(
int));
33 for(
int i=1;i<argc;i++){
34 if(argv[i][0] !=
'-'){
35 FileList[NFile++] = i;
37 if(!strcmp(argv[i],
"-c") && i<argc-1){
38 f.ConfFile(argv[i+1]);
42 f.DataFile(argv,FileList,NFile);