![]() |
Scribus
Open source desktop publishing at your fingertips
|
#include <pageitemsetterbase.h>
Public Member Functions | |
PageItemSetterBase (QWidget *parent=0) | |
virtual void | changeItem (Selection *)=0 |
virtual PageItemSetterBase * | clone ()=0 |
Protected Member Functions | |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | activate (const bool &act) |
Protected Attributes | |
QPoint | startDragPoint |
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.
PageItemSetterBase::PageItemSetterBase | ( | QWidget * | parent = 0 | ) |
Default constructor
|
protectedvirtual |
Enable/Disable only children because doing the same on the widget itself disables dragging.
|
pure virtual |
Reset parameters and internal state to reflect properties of newly assigned (page item)^^selection .
Implemented in PageItemPositionSetter, and PageItemRotationSetter.
|
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.