Differences From Artifact [4375fba2fc66f9ab]:
- File
src/gui_main.d
- 2012-07-15 13:24:12 - part of checkin [b6026abfcf] on branch trunk - Simplified GUI code. (user: kinaba) [annotate]
To Artifact [4124e840a1a49af9]:
- File
src/gui_main.d
- 2012-07-15 13:27:45 - part of checkin [3014ab5a8a] on branch trunk - Clean up. (user: kinaba) [annotate]
1 import util; 1 import util;
2 import gui; 2 import gui;
3 import output; 3 import output;
4 import driver; 4 import driver;
5 import solver; 5 import solver;
6 import std.stdio; <
7 pragma(lib, "dfl.lib"); 6 pragma(lib, "dfl.lib");
8 7
9 void main(string[] argv) 8 void main(string[] argv)
10 { 9 {
11 bool automate = (argv.length>=2 && std.string.indexOf(argv[1],"auto")>=0 10 bool automate = (argv.length>=2 && std.string.indexOf(argv[1],"auto")>=0
12 11
13 auto d = new Driver(stdin); 12 auto d = new Driver(stdin);
14 d.addObserver!(GuardedOutput)(); 13 d.addObserver!(GuardedOutput)();
15 d.addObserver!(GUI!MainSolver)().run(&d.command, automate); 14 d.addObserver!(GUI!MainSolver)().run(&d.command, automate);
16 } 15 }