ORE Studio 0.0.4
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
CompositeLegsWidget Class Referencefinal

Reusable widget for displaying and editing a list of composite legs. More...

#include <CompositeLegsWidget.hpp>

Inherits QWidget.

Collaboration diagram for CompositeLegsWidget:
Collaboration graph

Signals

void legsChanged ()
 

Public Member Functions

 CompositeLegsWidget (QWidget *parent=nullptr)
 
void setLegs (const std::vector< trading::domain::composite_leg > &legs)
 Populate the table from a vector of legs.
 
std::vector< trading::domain::composite_leglegs () const
 Collect the current table contents as a typed vector.
 
void setReadOnly (bool readOnly)
 Enable or disable editing of the legs table and buttons.
 

Detailed Description

Reusable widget for displaying and editing a list of composite legs.

Manages a QTableWidget with Seq / Trade ID columns. Embed in any dialog that deals with composite_leg records (CompositeTrade, MultiLegOption).

Member Function Documentation

◆ setLegs()

void setLegs ( const std::vector< trading::domain::composite_leg > &  legs)

Populate the table from a vector of legs.

Does not emit legsChanged().

◆ legs()

std::vector< trading::domain::composite_leg > legs ( ) const

Collect the current table contents as a typed vector.

Rows with an empty Trade ID are skipped.