GLIMSView Source Code Documentation

ViewSet Class Reference

#include <viewset.h>

Inheritance diagram for ViewSet:

Inheritance graph
[legend]

List of all members.


Detailed Description

Contains a set of View objects and allows set wide actions to be handled for all views.

This also provides a current list of the views names in the Window menu item.

Definition at line 22 of file viewset.h.


Public Slots

void initViews ()
void resetViews ()
void repaintViews ()
void redrawViews ()
void popupView (ViewPopupAction *)

Signals

void viewSetChanged ()

Public Member Functions

 ViewSet ()
virtual ~ViewSet ()
void addView (View &)
void delView (int iview)
unsigned int size ()
ViewgetView (int iview)
void setSelBox (Rect &selbox)
Viewoperator[] (int iview)
void setActGrp (QActionGroup *grp)
void setMenuParent (QWidget *p)
void setRSM (ImageFormat::ScaleType st)

Protected Attributes

std::vector< View * > mViewSet
QActionGroup * mMenuGroup
QWidgetmMenuParent

Constructor & Destructor Documentation

ViewSet::ViewSet (  )  [inline]

Definition at line 30 of file viewset.h.

virtual ViewSet::~ViewSet (  )  [inline, virtual]

Definition at line 33 of file viewset.h.


Member Function Documentation

void ViewSet::addView ( View view  ) 

Definition at line 5 of file viewset.cpp.

References View::getViewState(), mMenuGroup, mMenuParent, ViewState::mName, mViewSet, popupView(), and viewSetChanged().

Referenced by MainToolbar::buildDefaultViews(), and MainToolbar::fromXML().

Here is the call graph for this function:

void ViewSet::delView ( int  iview  ) 

Definition at line 25 of file viewset.cpp.

References mViewSet, and viewSetChanged().

unsigned int ViewSet::size (  ) 

View & ViewSet::getView ( int  iview  ) 

Definition at line 38 of file viewset.cpp.

References mViewSet.

Referenced by MainToolbar::buildViews(), and MainToolbar::setupProj().

void ViewSet::setSelBox ( Rect selbox  ) 

Definition at line 56 of file viewset.cpp.

References mViewSet.

Referenced by VectorEditor::viewMouseMove(), and VectorEditor::viewMouseRelease().

View& ViewSet::operator[] ( int  iview  )  [inline]

Definition at line 41 of file viewset.h.

void ViewSet::setActGrp ( QActionGroup *  grp  )  [inline]

Definition at line 44 of file viewset.h.

Referenced by MainToolbar::buildMenu().

void ViewSet::setMenuParent ( QWidget p  )  [inline]

Definition at line 53 of file viewset.h.

Referenced by MainToolbar::buildMenu().

void ViewSet::setRSM ( ImageFormat::ScaleType  st  ) 

void ViewSet::initViews (  )  [slot]

Definition at line 71 of file viewset.cpp.

References mViewSet.

Referenced by MainToolbar::setupProj().

void ViewSet::resetViews (  )  [slot]

Definition at line 61 of file viewset.cpp.

References mViewSet.

void ViewSet::repaintViews (  )  [slot]

void ViewSet::redrawViews (  )  [slot]

Definition at line 42 of file viewset.cpp.

References mViewSet.

void ViewSet::popupView ( ViewPopupAction act  )  [slot]

Definition at line 79 of file viewset.cpp.

References View::getViewState(), ViewState::mName, and mViewSet.

Referenced by addView().

void ViewSet::viewSetChanged (  )  [signal]

Referenced by addView(), and delView().


Member Data Documentation

std::vector<View*> ViewSet::mViewSet [protected]

QActionGroup* ViewSet::mMenuGroup [protected]

Definition at line 26 of file viewset.h.

Referenced by addView().

Definition at line 27 of file viewset.h.

Referenced by addView().


The documentation for this class was generated from the following files:

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov