diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-12-20 12:48:32 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-12-20 12:48:32 (GMT) |
commit | d59e817381285fe03bad310de9789651e0663028 (patch) | |
tree | e405e4434a383cb04afa49e186bf4294c748fef9 /mainwin.cc | |
parent | cb147a8b82af998b641e5845d4dfad7ded908314 (diff) |
James Vasile:
Hide/show editor and console
git-svn-id: http://svn.clifford.at/openscad/trunk@183 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r-- | mainwin.cc | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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()) |