Subversion Repositories programming

Rev

Rev 346 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 347
Line 25... Line 25...
25
        std::cerr << "Invalid number of elevators" << std::endl;
25
        std::cerr << "Invalid number of elevators" << std::endl;
26
        return 2;
26
        return 2;
27
    }
27
    }
28
 
28
 
29
    // Set up the controller
29
    // Set up the controller
30
    Controller c(10, 5);
30
    Controller c(numFloors, numElevators);
31
 
31
 
32
    // Start GTK
32
    // Start GTK
33
    Gtk::Main kit (argc, argv);
33
    Gtk::Main kit (argc, argv);
34
 
34
 
35
    // Create the window
35
    // Create the window
36
    Elevator_Window window;
36
    Elevator_Window window (numFloors, numElevators);
37
 
37
 
38
    // Set associations
38
    // Set associations
39
    window.set_controller (&c);
39
    window.set_controller (&c);
40
    c.set_gui (&window);
40
    c.set_gui (&window);
41
 
41