//--------------------------------------------------------------------------------- void MainWindow::initialize(GlobalEventFilter* p_globalFilter) { // Create setting windows _prefWindow = new PreferencesWindow(this); _prefWindow->initialize(); // Create character related windows _creationInitWindow = new CreationInitializingWindow(this); _creationInitWindow->initialize(); connect(_creationInitWindow, SIGNAL(startCreation()), SLOT(startCharacterCreation())); connect(_creationInitWindow, SIGNAL(cancelCreation()), SLOT(cancelCharacterCreation())); // Init children ui->mainSplitView->initialize(); p_globalFilter->setMainSplitView(ui->mainSplitView); // Show init message while initializing ui->statusBar->showMessage(tr("Initializing..."), 2000); // Set global status bar APPSTATUS->setStatusBar(ui->statusBar); // Make sure the window fits the screen _targetWidth = QApplication::desktop()->width(); _targetHeight = QApplication::desktop()->height(); showMaximized(); _initMaximizer = true; }
void MainWindow::on_actionCreateTimetable_triggered() { startCreation(); }
void MainWindow::on_createButton_clicked() { startCreation(); }