UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
ZqDlgSGOptions Class Reference

#include <zqdlg_sgoptions.hpp>

Classes

class  CoordWatcher
 
class  TimeWatcher
 

Public Member Functions

 ZqDlgSGOptions (QWidget *parent, ZqbNatGroup *pNatCoord, ZqbNatGroup *pNatTime)
 
virtual ~ZqDlgSGOptions ()
 
void setCoordLabel (const QString &qsCoordLabel)
 
void setTimeLabel (const QString &qsTimeLabel)
 
int showModal ()
 
void show ()
 
void hide ()
 
void setCoords (double c[2])
 
void setTimes (double t[2])
 
void updateCoords ()
 
void updateBounds ()
 
void updateSteps ()
 
void attachArea (QzqArea *pArea)
 
void detachArea (QzqArea *pArea)
 
void apply ()
 

Public Attributes

ZqDlgSGOptions::TimeWatcher m_Time
 
ZqDlgSGOptions::CoordWatcher m_Coord
 

Protected Attributes

ScaleAndGrid * m_pDlg
 
std::set< QzqArea * > m_AttachedArea
 

Friends

class ScaleAndGrid
 

Detailed Description

Dialog window for scale and grid settings and for manual zoom tasks too.

Constructor & Destructor Documentation

ZqDlgSGOptions::ZqDlgSGOptions ( QWidget *  parent,
ZqbNatGroup pNatCoord,
ZqbNatGroup pNatTime 
)

Create dialog window but don't display it. Attach coordinate and time natural groups.

virtual ZqDlgSGOptions::~ZqDlgSGOptions ( )
virtual

Destroy the dialog.

Member Function Documentation

void ZqDlgSGOptions::apply ( )

Apply changes and redraw all attached areas.

void ZqDlgSGOptions::attachArea ( QzqArea pArea)

Attach QzqArea object to be redrawn on scale & grid & range parameters. Case of OK or Apply button is pressed currently enterd vales are pushed, QzqArea::redraw(true) is called and all related objects are forced to repaint themselves with new parameters.

void ZqDlgSGOptions::detachArea ( QzqArea pArea)

Detach QzqArea object.

void ZqDlgSGOptions::hide ( )

Hide the dialog.

void ZqDlgSGOptions::setCoordLabel ( const QString &  qsCoordLabel)

Set label for coordinate

void ZqDlgSGOptions::setCoords ( double  c[2])

Set new coordinates in GUI.

void ZqDlgSGOptions::setTimeLabel ( const QString &  qsTimeLabel)

Set label for time

void ZqDlgSGOptions::setTimes ( double  t[2])

Set new times in GUI.

void ZqDlgSGOptions::show ( )

Show the dialog.

int ZqDlgSGOptions::showModal ( )

Show the modal dialog. Return the code which is usually returned by QDialog::exec().

void ZqDlgSGOptions::updateBounds ( )

Update coord and time bounds in GUI.

void ZqDlgSGOptions::updateCoords ( )

Update coordinates in GUI.

void ZqDlgSGOptions::updateSteps ( )

Update scale & grid step in GUI.

Member Data Documentation

std::set<QzqArea*> ZqDlgSGOptions::m_AttachedArea
protected

Container of attached QzqArea objects to be repainted on parameters change.

ScaleAndGrid* ZqDlgSGOptions::m_pDlg
protected

Dialog widget pointer.


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