MuseScore  3.4
Music composition and notation
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Ms::StaffListItem Class Reference

#include <instrwidget.h>

Inheritance diagram for Ms::StaffListItem:
Inheritance graph
[legend]
Collaboration diagram for Ms::StaffListItem:
Collaboration graph
[legend]

Public Member Functions

 StaffListItem ()
 
 StaffListItem (PartListItem *li)
 
int partIdx () const
 
void setPartIdx (int val)
 
void setClefType (const ClefTypeList &val)
 
const ClefTypeListclefType () const
 
void setDefaultClefType (const ClefTypeList &val)
 
const ClefTypeListdefaultClefType () const
 
void setLinked (bool val)
 
bool linked () const
 
void setStaffType (const StaffType *)
 
void setStaffType (int)
 
const StaffTypestaffType () const
 
int staffTypeIdx () const
 
void initStaffTypeCombo (bool forceRecreate=false)
 
QComboBox * staffTypeCombo ()
 
Staffstaff () const
 
void setStaff (Staff *s)
 
ListItemOp op () const
 
void setOp (ListItemOp v)
 

Private Slots

void staffTypeChanged (int)
 

Private Member Functions

int staffTypeIdx (int idx) const
 

Private Attributes

int _partIdx
 
bool _linked
 
ClefTypeList _defaultClefType
 
ClefTypeList _clefType
 
QComboBox * _staffTypeCombo { nullptr }
 
Staff_staff { 0 }
 
ListItemOp _op { ListItemOp::KEEP }
 

Static Private Attributes

static int customStandardIdx
 
static int customPercussionIdx
 
static int customTablatureIdx
 
static constexpr int CUSTOM_STAFF_TYPE_IDX = -1000
 

Constructor & Destructor Documentation

◆ StaffListItem() [1/2]

Ms::StaffListItem::StaffListItem ( )

◆ StaffListItem() [2/2]

Ms::StaffListItem::StaffListItem ( PartListItem li)

Member Function Documentation

◆ clefType()

const ClefTypeList& Ms::StaffListItem::clefType ( ) const
inline

◆ defaultClefType()

const ClefTypeList& Ms::StaffListItem::defaultClefType ( ) const
inline

◆ initStaffTypeCombo()

void Ms::StaffListItem::initStaffTypeCombo ( bool  forceRecreate = false)

◆ linked()

bool Ms::StaffListItem::linked ( ) const
inline

◆ op()

ListItemOp Ms::StaffListItem::op ( ) const
inline

◆ partIdx()

int Ms::StaffListItem::partIdx ( ) const
inline

◆ setClefType()

void Ms::StaffListItem::setClefType ( const ClefTypeList val)

◆ setDefaultClefType()

void Ms::StaffListItem::setDefaultClefType ( const ClefTypeList val)
inline

◆ setLinked()

void Ms::StaffListItem::setLinked ( bool  val)

◆ setOp()

void Ms::StaffListItem::setOp ( ListItemOp  v)
inline

◆ setPartIdx()

void Ms::StaffListItem::setPartIdx ( int  val)

◆ setStaff()

void Ms::StaffListItem::setStaff ( Staff s)
inline

◆ setStaffType() [1/2]

void Ms::StaffListItem::setStaffType ( const StaffType st)

◆ setStaffType() [2/2]

void Ms::StaffListItem::setStaffType ( int  idx)

◆ staff()

Staff* Ms::StaffListItem::staff ( ) const
inline

◆ staffType()

const StaffType * Ms::StaffListItem::staffType ( ) const

◆ staffTypeChanged

void Ms::StaffListItem::staffTypeChanged ( int  idx)
privateslot

◆ staffTypeCombo()

QComboBox* Ms::StaffListItem::staffTypeCombo ( )
inline

◆ staffTypeIdx() [1/2]

int Ms::StaffListItem::staffTypeIdx ( int  idx) const
private

◆ staffTypeIdx() [2/2]

int Ms::StaffListItem::staffTypeIdx ( ) const

Member Data Documentation

◆ _clefType

ClefTypeList Ms::StaffListItem::_clefType
private

◆ _defaultClefType

ClefTypeList Ms::StaffListItem::_defaultClefType
private

◆ _linked

bool Ms::StaffListItem::_linked
private

◆ _op

ListItemOp Ms::StaffListItem::_op { ListItemOp::KEEP }
private

◆ _partIdx

int Ms::StaffListItem::_partIdx
private

◆ _staff

Staff* Ms::StaffListItem::_staff { 0 }
private

◆ _staffTypeCombo

QComboBox* Ms::StaffListItem::_staffTypeCombo { nullptr }
private

◆ CUSTOM_STAFF_TYPE_IDX

constexpr int Ms::StaffListItem::CUSTOM_STAFF_TYPE_IDX = -1000
staticprivate

◆ customPercussionIdx

int Ms::StaffListItem::customPercussionIdx
staticprivate

◆ customStandardIdx

int Ms::StaffListItem::customStandardIdx
staticprivate

◆ customTablatureIdx

int Ms::StaffListItem::customTablatureIdx
staticprivate

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