Toolbar widget for changing revision. More...
#include <revisiontool.h>
Public Slots | |
| void | updateRevision (int revision) |
| void | selectRevision (int revision) |
| void | setDocument (boost::shared_ptr< pdfobjects::CPdf > newDocument) |
Signals | |
| void | revisionChanged (int revision) |
Public Member Functions | |
| RevisionTool (QWidget *parent=0, const char *name=NULL) | |
| ~RevisionTool () | |
| QSize | sizeHint () const |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *e) |
Protected Attributes | |
| QComboBox * | revList |
| boost::shared_ptr < pdfobjects::CPdf > | document |
Toolbar widget for changing revision.
Toolbutton listing revisions of current PDF document, with ability to switch revisions
Can be placed in toolbar in place of ordinary button
| gui::RevisionTool::RevisionTool | ( | QWidget * | parent = 0, |
|
| const char * | name = NULL | |||
| ) |
Default constructor of RevisionTool
| parent | Toolbar containing this control | |
| name | Name of this widget (passed to QWidget constructor) |
| gui::RevisionTool::~RevisionTool | ( | ) |
default destructor
| void gui::RevisionTool::resizeEvent | ( | QResizeEvent * | e | ) | [protected] |
Called on resizing of property editing control Will simply set the same fixed size to inner revision list
| e | resize event |
References revList.
| void gui::RevisionTool::revisionChanged | ( | int | revision | ) | [signal] |
Signal emitted when user changes the revision in this control
| revision | number of selected revision |
| void gui::RevisionTool::selectRevision | ( | int | revision | ) | [slot] |
Called on selecting a new revision from menu
| revision | selected revision |
| void gui::RevisionTool::setDocument | ( | boost::shared_ptr< pdfobjects::CPdf > | newDocument | ) | [slot] |
Called on loading of new document
| newDocument | Reference to new PDF document |
| QSize gui::RevisionTool::sizeHint | ( | ) | const |
return size hint of this control
| void gui::RevisionTool::updateRevision | ( | int | revision | ) | [slot] |
Called to update control after selecting a new revision outside of this control
| revision | selected revision |
boost::shared_ptr<pdfobjects::CPdf> gui::RevisionTool::document [protected] |
Reference to current PDF document
QComboBox* gui::RevisionTool::revList [protected] |
Revision selection list
Referenced by resizeEvent().