gui::PageTool Class Reference

Toolbar widget for changing page. More...

#include <pagetool.h>

List of all members.

Public Slots

void updatePage (int page)
void updatePage (const QSPage &p, int page)

Signals

void pageSet (int page)

Public Member Functions

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

Protected Slots

void selectPage ()

Protected Member Functions

void resizeEvent (QResizeEvent *e)
void updatePage ()
void selectPage (const QString &newPage)

Protected Attributes

QLineEdit * pageNum
QIntValidator * ival
int curPage

Detailed Description

Toolbar widget for changing page.

Toolbutton showing current page number and allowing to change it
Can be placed in toolbar in place of ordinary button


Constructor & Destructor Documentation

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

Default constructor of PageTool

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

default destructor


Member Function Documentation

void gui::PageTool::pageSet ( int  page  )  [signal]

Signal emitted when user changes the page

Parameters:
page New page
void gui::PageTool::resizeEvent ( QResizeEvent *  e  )  [protected]

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

Parameters:
e resize event
void gui::PageTool::selectPage (  )  [protected, slot]

Called on setting new page from this control

Referenced by selectPage().

void gui::PageTool::selectPage ( const QString &  newPage  )  [protected]

Called on setting new page from this control

Parameters:
newPage String containing new page number

References pageNum, and selectPage().

QSize gui::PageTool::sizeHint (  )  const

return size hint of this control (with widht for approx 4 characters)

Returns:
size hint
void gui::PageTool::updatePage (  )  [protected]

Update the string in this control from internal variables

Referenced by updatePage().

void gui::PageTool::updatePage ( const QSPage p,
int  page 
) [slot]

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

Parameters:
page selected Page
p unused QSPage reference
void gui::PageTool::updatePage ( int  page  )  [slot]

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

Parameters:
page selected Page

References updatePage().

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


Member Data Documentation

int gui::PageTool::curPage [protected]

Current page

QIntValidator* gui::PageTool::ival [protected]

Validator for zoom values

QLineEdit* gui::PageTool::pageNum [protected]

Page selection editbox

Referenced by selectPage().


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