MuseScore  3.4
Music composition and notation
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Ms::PaletteCell Struct Reference

#include <palettemodel_list.h>

Public Member Functions

 PaletteCell ()=default
 
 PaletteCell (std::unique_ptr< Element > e, const QString &_name, QString _tag=QString(), qreal _mag=1.0)
 
 PaletteCell ()=default
 
 PaletteCell (std::unique_ptr< Element > e, const QString &_name, QString _tag=QString(), qreal _mag=1.0)
 
const char * translationContext () const
 
QString translatedName () const
 
void retranslate ()
 Retranslates cell content, e.g. More...
 
void setElementTranslated (bool translate)
 
void write (XmlWriter &xml) const
 
bool read (XmlReader &)
 
QByteArray mimeData () const
 

Static Public Member Functions

static PaletteCellPtr readMimeData (const QByteArray &data)
 
static PaletteCellPtr readElementMimeData (const QByteArray &data)
 

Public Attributes

std::unique_ptr< Elementelement
 
QString name
 
QString tag
 
bool drawStaff { false }
 
double x { 0.0 }
 
double y { 0.0 }
 
double xoffset { 0.0 }
 
double yoffset { 0.0 }
 
qreal mag { 1.0 }
 
bool readOnly { false }
 
std::unique_ptr< ElementuntranslatedElement
 
bool visible { true }
 
bool custom { false }
 
bool active { false }
 

Static Public Attributes

static constexpr const char * mimeDataFormat = "application/musescore/palette/cell"
 

Constructor & Destructor Documentation

◆ PaletteCell() [1/4]

Ms::PaletteCell::PaletteCell ( )
default

◆ PaletteCell() [2/4]

Ms::PaletteCell::PaletteCell ( std::unique_ptr< Element e,
const QString &  _name,
QString  _tag = QString(),
qreal  _mag = 1.0 
)
inline

◆ PaletteCell() [3/4]

Ms::PaletteCell::PaletteCell ( )
default

◆ PaletteCell() [4/4]

Ms::PaletteCell::PaletteCell ( std::unique_ptr< Element e,
const QString &  _name,
QString  _tag = QString(),
qreal  _mag = 1.0 
)

Member Function Documentation

◆ mimeData()

QByteArray Ms::PaletteCell::mimeData ( ) const

◆ read()

bool Ms::PaletteCell::read ( XmlReader e)

◆ readElementMimeData()

PaletteCellPtr Ms::PaletteCell::readElementMimeData ( const QByteArray &  data)
static

◆ readMimeData()

PaletteCellPtr Ms::PaletteCell::readMimeData ( const QByteArray &  data)
static

◆ retranslate()

void Ms::PaletteCell::retranslate ( )

Retranslates cell content, e.g.

text if the element is TextBase.

◆ setElementTranslated()

void Ms::PaletteCell::setElementTranslated ( bool  translate)

◆ translatedName()

QString Ms::PaletteCell::translatedName ( ) const

◆ translationContext()

const char * Ms::PaletteCell::translationContext ( ) const

◆ write()

void Ms::PaletteCell::write ( XmlWriter xml) const

Member Data Documentation

◆ active

bool Ms::PaletteCell::active { false }

◆ custom

bool Ms::PaletteCell::custom { false }

◆ drawStaff

bool Ms::PaletteCell::drawStaff { false }

◆ element

std::unique_ptr< Element > Ms::PaletteCell::element

◆ mag

qreal Ms::PaletteCell::mag { 1.0 }

◆ mimeDataFormat

constexpr const char* Ms::PaletteCell::mimeDataFormat = "application/musescore/palette/cell"
static

◆ name

QString Ms::PaletteCell::name

◆ readOnly

bool Ms::PaletteCell::readOnly { false }

◆ tag

QString Ms::PaletteCell::tag

◆ untranslatedElement

std::unique_ptr<Element> Ms::PaletteCell::untranslatedElement

◆ visible

bool Ms::PaletteCell::visible { true }

◆ x

double Ms::PaletteCell::x { 0.0 }

◆ xoffset

double Ms::PaletteCell::xoffset { 0.0 }

◆ y

double Ms::PaletteCell::y { 0.0 }

◆ yoffset

double Ms::PaletteCell::yoffset { 0.0 }

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