ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gfview/gfview.cpp
Revision: 45
Committed: Tue Sep 6 18:19:20 2011 UTC (8 years, 7 months ago) by gpertea
File size: 994 byte(s)
Log Message:
added gfview files

Line File contents
1 #include "fx.h"
2 #include "mainwin.h"
3 //---------------------------------------------------------------------------
4 // Start the whole thing
5 int main(int argc,char *argv[]){
6
7 // Make application
8 FXApp application("Cluster viewer","Fox app");
9
10 // Open display; this reads registry
11 application.init(argc,argv); //removes the fox-specific parameters, if any
12 //FXFont* appfont=new FXFont(&application,"helvetica",9,FONTWEIGHT_NORMAL);
13 FXFont* appfont=new FXFont(&application,"helvetica",9, FXFont::Normal);
14 application.setNormalFont(appfont);
15
16 // Build a window
17 //new MainWindow(&application);
18 // Make window
19 MainWindow* mainwindow=new MainWindow(&application);
20 application.setMenuPause(30);
21 // Create app
22 application.create();
23
24 mainwindow->show();
25 for (int i=1;i<argc;i++) {
26 mainwindow->newMDIChild(argv[i]);
27 }
28
29 // Run
30 int r=application.run();
31 delete appfont;
32 return r;
33 }
34 //---------------------------------------------------------------------------