summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 6649858..f024221 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -177,6 +177,7 @@ MainWindow::MainWindow(const char *filename)
connect(this->editActionPasteVPR, SIGNAL(triggered()), this, SLOT(pasteViewportRotation()));
connect(this->editActionZoomIn, SIGNAL(triggered()), editor, SLOT(zoomIn()));
connect(this->editActionZoomOut, SIGNAL(triggered()), editor, SLOT(zoomOut()));
+ connect(this->editActionHide, SIGNAL(triggered()), this, SLOT(hideEditor()));
// Design menu
connect(this->designActionReloadAndCompile, SIGNAL(triggered()), this, SLOT(actionReloadCompile()));
@@ -224,6 +225,7 @@ MainWindow::MainWindow(const char *filename)
connect(this->viewActionCenter, SIGNAL(triggered()), this, SLOT(viewCenter()));
connect(this->viewActionPerspective, SIGNAL(triggered()), this, SLOT(viewPerspective()));
connect(this->viewActionOrthogonal, SIGNAL(triggered()), this, SLOT(viewOrthogonal()));
+ connect(this->viewActionHide, SIGNAL(triggered()), this, SLOT(hideConsole()));
// #ifdef ENABLE_CGAL
// viewActionCGALSurface = menu->addAction("CGAL Surfaces", this, SLOT(viewModeCGALSurface()), QKeySequence(Qt::Key_F10));
@@ -790,6 +792,15 @@ void MainWindow::editUncomment()
editor->setTextCursor(cursor);
}
+void MainWindow::hideEditor()
+{
+ if (editActionHide->isChecked()) {
+ editor->hide();
+ } else {
+ editor->show();
+ }
+}
+
void MainWindow::pasteViewportTranslation()
{
QTextCursor cursor = editor->textCursor();
@@ -1421,6 +1432,15 @@ void MainWindow::viewOrthogonal()
screen->updateGL();
}
+void MainWindow::hideConsole()
+{
+ if (viewActionHide->isChecked()) {
+ console->hide();
+ } else {
+ console->show();
+ }
+}
+
void MainWindow::dragEnterEvent(QDragEnterEvent *event)
{
if (event->mimeData()->hasUrls())
contact: Jan Huwald // Impressum