gui::RevisionTool Class Reference

Toolbar widget for changing revision. More...

#include <revisiontool.h>

List of all members.

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

Detailed Description

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


Constructor & Destructor Documentation

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

Default constructor of RevisionTool

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

default destructor


Member Function Documentation

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

Parameters:
e resize event

References revList.

void gui::RevisionTool::revisionChanged ( int  revision  )  [signal]

Signal emitted when user changes the revision in this control

Parameters:
revision number of selected revision
void gui::RevisionTool::selectRevision ( int  revision  )  [slot]

Called on selecting a new revision from menu

Parameters:
revision selected revision
void gui::RevisionTool::setDocument ( boost::shared_ptr< pdfobjects::CPdf newDocument  )  [slot]

Called on loading of new document

Parameters:
newDocument Reference to new PDF document
QSize gui::RevisionTool::sizeHint (  )  const

return size hint of this control

Returns:
size hint from inner revision list
void gui::RevisionTool::updateRevision ( int  revision  )  [slot]

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

Parameters:
revision selected revision

Member Data Documentation

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().


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