Logo Search packages:      
Sourcecode: scantailor version File versions  Download package

Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes

ZoneContextMenuInteraction Class Reference

Inheritance diagram for ZoneContextMenuInteraction:
Inheritance graph
[legend]
Collaboration diagram for ZoneContextMenuInteraction:
Collaboration graph
[legend]

List of all members.

Classes

class  OrderByArea
struct  StandardMenuItems
class  Visualizer
class  Zone

Public Types

typedef boost::function
< std::vector
< ZoneContextMenuItem >
EditableZoneSet::Zone const
&, StandardMenuItems const &) > 
MenuCustomizer

Public Member Functions

void contextMenuEvent (QContextMenuEvent *event, InteractionState &interaction)
void keyPressEvent (QKeyEvent *event, InteractionState &interaction)
void keyReleaseEvent (QKeyEvent *event, InteractionState &interaction)
void makeFirstFollower (InteractionHandler &handler)
void makeFirstPreceeder (InteractionHandler &handler)
void makeLastFollower (InteractionHandler &handler)
void makeLastPreceeder (InteractionHandler &handler)
void makePeerFollower (InteractionHandler &handler)
void makePeerPreceeder (InteractionHandler &handler)
void mouseMoveEvent (QMouseEvent *event, InteractionState &interaction)
void mousePressEvent (QMouseEvent *event, InteractionState &interaction)
void mouseReleaseEvent (QMouseEvent *event, InteractionState &interaction)
void paint (QPainter &painter, InteractionState const &interaction)
void proximityUpdate (QPointF const &screen_mouse_pos, InteractionState &interaction)
void wheelEvent (QWheelEvent *event, InteractionState &interaction)

Static Public Member Functions

static ZoneContextMenuInteractioncreate (ZoneInteractionContext &context, InteractionState &interaction)
static ZoneContextMenuInteractioncreate (ZoneInteractionContext &context, InteractionState &interaction, MenuCustomizer const &menu_customizer)

Protected Member Functions

ZoneInteractionContextcontext ()
virtual void onContextMenuEvent (QContextMenuEvent *event, InteractionState &interaction)
virtual void onKeyPressEvent (QKeyEvent *event, InteractionState &interaction)
virtual void onKeyReleaseEvent (QKeyEvent *event, InteractionState &interaction)
virtual void onMouseMoveEvent (QMouseEvent *event, InteractionState &interaction)
virtual void onMousePressEvent (QMouseEvent *event, InteractionState &interaction)
virtual void onMouseReleaseEvent (QMouseEvent *event, InteractionState &interaction)
virtual void onProximityUpdate (QPointF const &screen_mouse_pos, InteractionState &interaction)
virtual void onWheelEvent (QWheelEvent *event, InteractionState &interaction)
 ZoneContextMenuInteraction (ZoneInteractionContext &context, InteractionState &interaction, MenuCustomizer const &menu_customizer, std::vector< Zone > &selectable_zones)

Static Protected Member Functions

static bool defaultInteractionPermitter (InteractionState const &interaction)
static std::vector< ZonezonesUnderMouse (ZoneInteractionContext &context)

Private Slots

void highlightItem (int zone_idx)
void menuAboutToHide ()

Private Member Functions

ZoneContextMenuItem deleteMenuItemFor (EditableZoneSet::Zone const &zone)
InteractionHandlerdeleteRequest (EditableZoneSet::Zone const &zone)
void menuItemTriggered (InteractionState &interaction, ZoneContextMenuItem::Callback const &callback)
virtual void onPaint (QPainter &painter, InteractionState const &interaction)
ZoneContextMenuItem propertiesMenuItemFor (EditableZoneSet::Zone const &zone)
InteractionHandlerpropertiesRequest (EditableZoneSet::Zone const &zone)

Static Private Member Functions

static std::vector
< ZoneContextMenuItem
defaultMenuCustomizer (EditableZoneSet::Zone const &zone, StandardMenuItems const &std_items)

Private Attributes

int m_highlightedZoneIdx
InteractionState::Captor m_interaction
bool m_menuItemTriggered
std::auto_ptr< QMenu > m_ptrMenu
ZoneInteractionContextm_rContext
std::vector< Zonem_selectableZones
Visualizer m_visualizer

Detailed Description

Definition at line 42 of file ZoneContextMenuInteraction.h.


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

Generated by  Doxygen 1.6.0   Back to index