view Class Reference

The View functions provide information about the contents of selected View windows. More...

Public Slots

String currentView ()
 returns a unique identifier for the current, active View. More...
 
String type (String viewName)
 returns a string that indicates what type of View the currentView is. More...
 
void refreshViews ()
 forces a refresh of the drawing and scene planning views. More...
 
QObjectcurrentToolManager (String viewName=String())
 Returns the drawing tool manager. More...
 
QPoint viewPosition (String viewName)
 Returns the position of the top left corner of the given view. More...
 
StringList viewList (String viewType=String())
 Returns a list of available views of the given type. More...
 

Detailed Description

The View functions provide information about the contents of selected View windows.

function viewScript()
{
var myView = view.currentView();
System.println(view.type(myView));
}

Member Function Documentation

◆ currentToolManager

QObject* view::currentToolManager ( String  viewName = String())
slot

Returns the drawing tool manager.

If no argument is passed, returns the drawing tool manager from the current view.

Parameters
viewName: The name of the view to get the drawing tool manager from.
Returns
The drawing tool manager of the given view. Can be null.

◆ currentView

String view::currentView ( )
slot

returns a unique identifier for the current, active View.

◆ refreshViews

void view::refreshViews ( )
slot

forces a refresh of the drawing and scene planning views.

◆ type

String view::type ( String  viewName)
slot

returns a string that indicates what type of View the currentView is.

Parameters
viewNameThe current view value, as returned by the currentView function.

◆ viewList

StringList view::viewList ( String  viewType = String())
slot

Returns a list of available views of the given type.

Parameters
viewType: The type of view to get the list of available views for.
Note
If no parameter is passed, the list will contain every available view.
Returns
Returns an array of view names.

◆ viewPosition

QPoint view::viewPosition ( String  viewName)
slot

Returns the position of the top left corner of the given view.

The point (0,0) is the top left corner of the main display.

Parameters
viewName: The name of the view to get the position of.
Returns
Returns the position of the view in pixels.