Loading...
Searching...
No Matches
oscr::CustomMultiControl< Item > Class Template Reference
Inheritance diagram for oscr::CustomMultiControl< Item >:
oscr::CustomItem< Item, Control > score::FillsWidth

Detailed Description

template<typename Item>
class oscr::CustomMultiControl< Item >

halp::custom_multi_control. Values are normalized; a gesture is one undo step.

Or, when the item's values is a std::tuple, each value is the control's own (a list, a 2D point...), kept up to date, and edited through transactions, a tuple of halp::transaction, one per control. It may be shorter: the controls past its end are only shown.

Public Member Functions

 CustomMultiControl (Item item_init, std::vector< Process::ControlInlet * > ports, UiEdits &edits)
 
- Public Member Functions inherited from oscr::CustomItem< Item, Control >
 CustomItem (Item t)
 
QRectF boundingRect () const override
 
void fillWidth (qreal width) override
 
void setDocument (const score::DocumentContext &doc) noexcept
 The document the sound files drawn with draw_waveform() are looked up in.
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 

Additional Inherited Members

- Public Types inherited from oscr::CustomItem< Item, Control >
using item_type = std::decay_t< Item >
 
- Static Public Attributes inherited from oscr::CustomItem< Item, Control >
static constexpr bool groups_wheel
 
- Protected Member Functions inherited from oscr::CustomItem< Item, Control >
void finishWheel ()
 Derived controls call this before their transaction bindings go away.
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
void focusOutEvent (QFocusEvent *event) override
 
void contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
bool startDrag (QGraphicsSceneMouseEvent *event)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void dragEnterEvent (QGraphicsSceneDragDropEvent *event) override
 
void dragMoveEvent (QGraphicsSceneDragDropEvent *event) override
 
void dropEvent (QGraphicsSceneDragDropEvent *event) override
 
void wheelEvent (QGraphicsSceneWheelEvent *event) override
 
- Static Protected Member Functions inherited from oscr::CustomItem< Item, Control >
static custom_mouse_event make_event (QGraphicsSceneMouseEvent *event) noexcept
 
- Protected Attributes inherited from oscr::CustomItem< Item, Control >
Item impl
 
- Static Protected Attributes inherited from oscr::CustomItem< Item, Control >
static constexpr bool accepts_drops = requires(Item i) { i.drop(std::vector<std::string>{}); }
 

Constructor & Destructor Documentation

◆ CustomMultiControl()

template<typename Item >
oscr::CustomMultiControl< Item >::CustomMultiControl ( Item  item_init,
std::vector< Process::ControlInlet * >  ports,
UiEdits &  edits 
)
inline

edits: where the ui's edits go, so that its gestures are one undo step each, and come before any other command


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