Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ViewMode Class Reference

To hold the configuration of a single view mode. A view mode specifies which features should be shown and how each read should be sliced in layers. More...

#include <viewmode.h>

List of all members.

Public Types

typedef QPtrList< LayerLayerList

Public Member Functions

 ViewMode (QDomElement &elem, SecItDict &secItDict)
 ~ViewMode ()
QString name ()

Public Attributes

LayerList layerList
int zoom
QString m_name


Detailed Description

To hold the configuration of a single view mode. A view mode specifies which features should be shown and how each read should be sliced in layers.

Definition at line 52 of file viewmode.h.


Member Typedef Documentation

typedef QPtrList< Layer > ViewMode::LayerList
 

Definition at line 59 of file viewmode.h.


Constructor & Destructor Documentation

ViewMode::ViewMode QDomElement &  elem,
SecItDict secItDict
 

Definition at line 73 of file viewmode.cpp.

References layerList, m_name, and zoom.

00074 {
00075     layerList.setAutoDelete( true );
00076 
00077     //            QDomElement elem = node.toElement();
00078     m_name = elem.attribute("name","");
00079     Q_ASSERT((elem.hasAttribute("name")  && elem.hasAttribute("zoom")));
00080     QString zoomStr = elem.attribute( "zoom","");
00081     zoom = zoomStr.toInt();
00082     //            name = elem.attribute("name", "");
00083 
00084     QString shortcut  = elem.attribute("shortcut", "");
00085     //QKeySequence keyS( shortcut );
00086 
00087 
00088 
00089     QDomNode node2 = elem.firstChild();
00090     while ( !node2.isNull() )
00091     {
00092         if ( node2.isElement() && node2.nodeName() == "layer"  )
00093         {
00094             QDomElement layerElem = node2.toElement();
00095             Q_ASSERT((layerElem.hasAttribute("height")  && layerElem.hasAttribute("allowOverlapStr")));
00096             layerList.append( new Layer( layerElem, secItDict ) );
00097         }
00098         node2 = node2.nextSibling();
00099     }
00100 }

ViewMode::~ViewMode  )  [inline]
 

Definition at line 56 of file viewmode.h.

00057     {}


Member Function Documentation

QString ViewMode::name  ) 
 

Definition at line 102 of file viewmode.cpp.

References m_name.

Referenced by TrapperView::mode().

00103 {
00104     return m_name;
00105 
00106 }


Member Data Documentation

LayerList ViewMode::layerList
 

Definition at line 60 of file viewmode.h.

Referenced by TrapperView::paintFeatures(), and ViewMode().

QString ViewMode::m_name
 

Definition at line 62 of file viewmode.h.

Referenced by name(), and ViewMode().

int ViewMode::zoom
 

Definition at line 61 of file viewmode.h.

Referenced by ViewMode().


The documentation for this class was generated from the following files:
Generated on Fri Mar 17 17:45:02 2006 for trapper by  doxygen 1.4.4