gui::ZoomTool Class Reference

Toolbar widget for changing zoom level. More...

#include <zoomtool.h>

List of all members.

Public Slots

void updateZoom (float zoom)

Signals

void zoomSet (float zoom)

Public Member Functions

 ZoomTool (QWidget *parent=0, const char *name=NULL)
 ~ZoomTool ()
QSize sizeHint () const

Protected Slots

void selectZoom (const QString &newZoom)

Protected Member Functions

void resizeEvent (QResizeEvent *e)

Protected Attributes

QComboBox * zoomList
QValidator * ival

Detailed Description

Toolbar widget for changing zoom level.

Toolbutton allowing to change zoom level of current page
Can be placed in toolbar in place of ordinary button


Constructor & Destructor Documentation

gui::ZoomTool::ZoomTool ( QWidget *  parent = 0,
const char *  name = NULL 
)

Default constructor of ZoomTool

Parameters:
parent Toolbar containing this control
name Name of this widget (passed to QWidget constructor)

References ival, selectZoom(), and zoomList.

gui::ZoomTool::~ZoomTool (  ) 

default destructor

References ival, and zoomList.


Member Function Documentation

void gui::ZoomTool::resizeEvent ( QResizeEvent *  e  )  [protected]

Called on resizing of property editing control Will simply set the same fixed size to inner Zoom list

Parameters:
e resize event

References zoomList.

void gui::ZoomTool::selectZoom ( const QString &  newZoom  )  [protected, slot]

Called on setting new zoom from this control

Parameters:
newZoom 

References debug::DBG_DBG, guiPrintDbg, and zoomSet().

Referenced by ZoomTool().

QSize gui::ZoomTool::sizeHint (  )  const

return size hint of this control

Returns:
size hint from inner Zoom list

References zoomList.

void gui::ZoomTool::updateZoom ( float  zoom  )  [slot]

Called to update control after selecting a new Zoom outside of this control

Parameters:
zoom selected Zoom

References zoomList.

Referenced by gui::ToolFactory::specialItem().

void gui::ZoomTool::zoomSet ( float  zoom  )  [signal]

Signal emitted when user changes the zoom level

Parameters:
zoom New zoom level

Referenced by selectZoom().


Member Data Documentation

QValidator* gui::ZoomTool::ival [protected]

Validator for zoom values

Referenced by ZoomTool(), and ~ZoomTool().

QComboBox* gui::ZoomTool::zoomList [protected]

Zoom selection editable combo

Referenced by resizeEvent(), sizeHint(), updateZoom(), ZoomTool(), and ~ZoomTool().


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