Toolbar widget for changing page. More...
#include <pagetool.h>
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 |
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
| gui::PageTool::PageTool | ( | QWidget * | parent = 0, |
|
| const char * | name = NULL | |||
| ) |
Default constructor of PageTool
| parent | Toolbar containing this control | |
| name | Name of this widget (passed to QWidget constructor) |
| gui::PageTool::~PageTool | ( | ) |
default destructor
| void gui::PageTool::pageSet | ( | int | page | ) | [signal] |
Signal emitted when user changes the page
| 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
| 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
| 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)
| 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
| 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
| page | selected Page |
References updatePage().
Referenced by gui::ToolFactory::specialItem().
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().