From e1fb8f0895354c80fb92e0a50d12c1b8cfb76047 Mon Sep 17 00:00:00 2001 From: Dirk Wilden Date: Mon, 20 Oct 2008 12:44:37 +0000 Subject: [PATCH] git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3484 383ad7c9-94d9-4d36-a494-682f7c89f535 --- Core/Core.cc | 11 +++++++++++ Core/Core.hh | 3 +++ 2 files changed, 14 insertions(+) diff --git a/Core/Core.cc b/Core/Core.cc index 57bcc314..2ce0fb35 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -902,6 +902,11 @@ void Core::snapshot(){ } +void Core::resizeViewer(int _width, int _height ){ + if ( OpenFlipper::Options::gui() ) + coreWidget_->examiner_widget_->setSize(_width, _height); +} + /// set the descriptions for scriptable slots of the core void Core::setDescriptions(){ @@ -928,6 +933,12 @@ void Core::setDescriptions(){ QStringList("enabled"), QStringList("restriction switch")); emit setSlotDescription("setMaxFrameRate(int)", "set the maximal framerate (automatically enables framerate restriction)", QStringList("frameRate"), QStringList("Maximum frameRate")); + emit setSlotDescription("snapshotBaseFileName(QString&)", "", QStringList(), QStringList()); + emit setSlotDescription("snapshot()", "Make a snapshot of the viewer.", QStringList(), QStringList()); + emit setSlotDescription("resizeViewer(int,int)", "Resize the viewer", + QString("width,height").split(","), + QString("new width for the viewer,new height for the viewer").split(",")); + } // //----------------------------------------------------------------------------- // diff --git a/Core/Core.hh b/Core/Core.hh index 9ed7de09..abb080f3 100644 --- a/Core/Core.hh +++ b/Core/Core.hh @@ -310,6 +310,9 @@ public slots: */ void snapshot(); + /// resize the examinerViewer + void resizeViewer(int _width, int _height ); + /** @} */ //=========================================================================== -- GitLab