+ setWindowTitle(QString("TTEdit! - %1").arg(filename));
+ statusBar()->showMessage(tr("File saved."));
+ editWnd->setFocus();
+}
+
+
+void MainWindow::ZoomIn(void)
+{
+ if (Global::zoom == 4.0)
+ return;
+
+ // Adjust the origin by the width/height by 1/4 (half of the scaled size).
+ // Also, need to adjust for the current zoom level...
+ Vector adjustment = (Global::screenSize / Global::zoom) * 0.25;
+ Global::origin += adjustment;
+
+ Global::zoom *= 2.0;
+
+ scaleIndicator->setText(QString("Scale: %1%").arg(Global::zoom * 100.0));
+ editWnd->update();
+}
+
+
+void MainWindow::ZoomOut(void)
+{
+ if (Global::zoom == 0.25)
+ return;
+
+ Global::zoom *= 0.5;
+
+ // Adjust the origin by the width/height by 1/4 (half of the scaled size).
+ // Also, need to adjust for the current zoom level...
+ Vector adjustment = (Global::screenSize / Global::zoom) * 0.25;
+ Global::origin -= adjustment;
+
+ scaleIndicator->setText(QString("Scale: %1%").arg(Global::zoom * 100.0));
+ editWnd->update();