sz = win->splitter()->sizes();
if (sz[1] == 0) {
sz[1] = 200;
win->splitter()->setSizes(sz);
}
win->setSourceLine(win->tikzScene()->lineNumberForSelection());
}
}
// View
void MainMenu::on_actionZoom_In_triggered()
{
if (tikzit->activeWindow() != 0) tikzit->activeWindow()->tikzView()->zoomIn();
}
void MainMenu::on_actionZoom_Out_triggered()
{
if (tikzit->activeWindow() != 0) tikzit->activeWindow()->tikzView()->zoomOut();
}
void MainMenu::on_actionAbout_triggered()
{
QMessageBox::about(this,
"TikZiT",
"TikZiT
"
"version " TIKZIT_VERSION "
"
"TikZiT is a GUI diagram editor for PGF/TikZ. It is licensed under the "
"GNU General "
"Public License, version 3.0.
"
"For more info and updates, visit: "
"tikzit.github.io
");
}
void MainMenu::on_actionCheck_for_updates_automatically_triggered()
{
tikzit->setCheckForUpdates(ui.actionCheck_for_updates_automatically->isChecked());
}
void MainMenu::on_actionCheck_now_triggered()
{
tikzit->checkForUpdates();
}