Commit fa973a4f authored by Jan Möbius's avatar Jan Möbius

Count available viewers in plugin functions

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4985 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 89fa7a56
......@@ -82,6 +82,10 @@ void setDataRoot( BaseObject* _root ) {
objectRoot_ = _root;
}
int viewers( ) {
return examiner_widgets_.size();
}
void setViewers( std::vector< glViewer* > _viewerWidgets ) {
PluginFunctions::examiner_widgets_ = _viewerWidgets;
PluginFunctions::examiner_widget_ = examiner_widgets_[0];
......
......@@ -191,6 +191,11 @@ int visibleCount();
* @{ */
//=======================================
/// Get the number of viewers
DLLEXPORT
int viewers( );
/// Set the active id of the examiner which got the last mouse events
DLLEXPORT
void setActiveExaminer( const unsigned int _id );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment