41 workspace->addWindow(doc); |
42 workspace->addWindow(doc); |
42 |
43 |
43 doc->show(); |
44 doc->show(); |
44 } |
45 } |
45 |
46 |
|
47 void MainWindow::showStatus() |
|
48 { |
|
49 QString filename = QFileDialog::getOpenFileName( |
|
50 this, tr("Open Log"), QDir::currentPath(), |
|
51 tr("Build log *.xml;;All files (*.*)")); |
|
52 AtAGlance *aag = new AtAGlance(filename, this); |
|
53 workspace->addWindow(aag); |
|
54 aag->traveAndPopulate(); |
|
55 aag->decideOnLayout(); |
|
56 aag->show(); |
|
57 } |
|
58 |
46 void MainWindow::createActions() |
59 void MainWindow::createActions() |
47 { |
60 { |
48 // file menu - mark as NYI |
61 // file menu - mark as NYI |
|
62 //connect(ui->actionOpen, SIGNAL(triggered()), |
|
63 // this, SLOT(openLog())); |
49 connect(ui->actionOpen, SIGNAL(triggered()), |
64 connect(ui->actionOpen, SIGNAL(triggered()), |
50 this, SLOT(openLog())); |
65 this, SLOT(showStatus())); |
51 connect(ui->actionClose, SIGNAL(triggered()), |
66 connect(ui->actionClose, SIGNAL(triggered()), |
52 workspace, SLOT(closeActiveWindow())); |
67 workspace, SLOT(closeActiveWindow())); |
53 |
68 |
54 // find menu - mark as NYI |
69 // find menu - mark as NYI |
55 connect(ui->actionFind, SIGNAL(triggered()), |
70 connect(ui->actionFind, SIGNAL(triggered()), |