diff --git a/Core/Core.cc b/Core/Core.cc index 57bcc314be058850b159e97253aa46b9f87175c7..2ce0fb35942b2ac049fe85f6b5a91df58791a922 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 9ed7de09353c8c83acaf30183e9949c5ada018bf..abb080f3d213959fc540b150e2cedac29e52513d 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 ); + /** @} */ //===========================================================================