3838#include " dom/barline.h"
3939#include " dom/beam.h"
4040#include " dom/bend.h"
41+ #include " dom/box.h"
4142#include " dom/bracket.h"
4243#include " dom/breath.h"
4344
@@ -191,6 +192,8 @@ void SingleDraw::drawItem(const EngravingItem* item, Painter* painter, const Pai
191192 case ElementType::EXPRESSION: draw (item_cast<const Expression*>(item), painter, opt);
192193 break ;
193194
195+ case ElementType::FBOX: draw (item_cast<const Box*>(item), painter, opt);
196+ break ;
194197 case ElementType::FERMATA: draw (item_cast<const Fermata*>(item), painter, opt);
195198 break ;
196199 case ElementType::FIGURED_BASS: draw (item_cast<const FiguredBass*>(item), painter, opt);
@@ -223,6 +226,8 @@ void SingleDraw::drawItem(const EngravingItem* item, Painter* painter, const Pai
223226 break ;
224227 case ElementType::HARMONY: draw (item_cast<const Harmony*>(item), painter, opt);
225228 break ;
229+ case ElementType::HBOX: draw (item_cast<const Box*>(item), painter, opt);
230+ break ;
226231 case ElementType::HOOK: draw (item_cast<const Hook*>(item), painter, opt);
227232 break ;
228233
@@ -318,6 +323,8 @@ void SingleDraw::drawItem(const EngravingItem* item, Painter* painter, const Pai
318323
319324 case ElementType::TAPPING: draw (item_cast<const Tapping*>(item), painter, opt);
320325 break ;
326+ case ElementType::TBOX: draw (item_cast<const Box*>(item), painter, opt);
327+ break ;
321328 case ElementType::TEMPO_TEXT: draw (item_cast<const TempoText*>(item), painter, opt);
322329 break ;
323330 case ElementType::TEXT: draw (item_cast<const Text*>(item), painter, opt);
@@ -341,6 +348,8 @@ void SingleDraw::drawItem(const EngravingItem* item, Painter* painter, const Pai
341348 case ElementType::TUPLET: draw (item_cast<const Tuplet*>(item), painter, opt);
342349 break ;
343350
351+ case ElementType::VBOX: draw (item_cast<const Box*>(item), painter, opt);
352+ break ;
344353 case ElementType::VIBRATO_SEGMENT: draw (item_cast<const VibratoSegment*>(item), painter, opt);
345354 break ;
346355 case ElementType::VOLTA_SEGMENT: draw (item_cast<const VoltaSegment*>(item), painter, opt);
@@ -952,6 +961,14 @@ void SingleDraw::draw(const Bend* item, Painter* painter, const PaintOptions& op
952961 }
953962}
954963
964+ void SingleDraw::draw (const Box* item, Painter* painter, const PaintOptions&)
965+ {
966+ TRACE_DRAW_ITEM;
967+ const Box::LayoutData* ldata = item->ldata ();
968+ painter->setFont (item->iconFont ());
969+ painter->drawText (ldata->bbox (), muse::draw::AlignCenter, Char (item->iconCode ()));
970+ }
971+
955972void SingleDraw::draw (const Bracket* item, Painter* painter, const PaintOptions& opt)
956973{
957974 TRACE_DRAW_ITEM;
0 commit comments