Scribus
Open source desktop publishing at your fingertips
PageItemSetterBase Class Referenceabstract

#include <pageitemsetterbase.h>

Inheritance diagram for PageItemSetterBase:
Collaboration diagram for PageItemSetterBase:

Public Member Functions

 PageItemSetterBase (QWidget *parent=0)
 
virtual void changeItem (Selection *)=0
 
virtual PageItemSetterBaseclone ()=0
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void activate (const bool &act)
 

Protected Attributes

QPoint startDragPoint
 

Detailed Description

PageItemSetterBase is base class for any widget that can set properties of a page item.

note about dragging: this base class is expected to handle propper dragging, droppers must ask the pageitemsettersmanager a clone of a dropped setter based on the name.

Constructor & Destructor Documentation

PageItemSetterBase::PageItemSetterBase ( QWidget *  parent = 0)

Default constructor

Member Function Documentation

void PageItemSetterBase::activate ( const bool &  act)
protectedvirtual

Enable/Disable only children because doing the same on the widget itself disables dragging.

virtual void PageItemSetterBase::changeItem ( Selection )
pure virtual

Reset parameters and internal state to reflect properties of newly assigned (page item)^^selection .

Implemented in PageItemPositionSetter, and PageItemRotationSetter.

virtual PageItemSetterBase* PageItemSetterBase::clone ( )
pure virtual

Return a full name which first identifies the type of a setter and can be used to assossiate setters and generally help the caller to layout widgets (think pages in PP as of 2009 :) Prototype of a name could be (retaining actual layout in PP): type.group.page or the reverse page.group.type Return a setter on same property

Implemented in PageItemPositionSetter, and PageItemRotationSetter.


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