2012-05-26 14:26:10 +02:00
|
|
|
//=============================================================================
|
|
|
|
// MuseScore
|
|
|
|
// Music Composition & Notation
|
|
|
|
//
|
|
|
|
// Copyright (C) 2010-2011 Werner Schweer
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License version 2
|
|
|
|
// as published by the Free Software Foundation and appearing in
|
|
|
|
// the file LICENCE.GPL
|
|
|
|
//=============================================================================
|
|
|
|
|
|
|
|
#ifndef __TEXTFRAME_H__
|
|
|
|
#define __TEXTFRAME_H__
|
|
|
|
|
|
|
|
#include "box.h"
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
namespace Ms {
|
|
|
|
|
2012-05-26 14:26:10 +02:00
|
|
|
//---------------------------------------------------------
|
2012-07-25 11:49:34 +02:00
|
|
|
// @@ TBox
|
2014-05-16 13:44:32 +02:00
|
|
|
/// Text frame.
|
2012-05-26 14:26:10 +02:00
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
class TBox : public VBox {
|
2012-05-28 11:29:21 +02:00
|
|
|
Q_OBJECT
|
2014-10-16 11:56:06 +02:00
|
|
|
Text* _text;
|
2012-05-28 11:29:21 +02:00
|
|
|
|
2012-05-26 14:26:10 +02:00
|
|
|
public:
|
|
|
|
TBox(Score* score);
|
2014-10-16 11:56:06 +02:00
|
|
|
~TBox();
|
2014-06-24 18:36:02 +02:00
|
|
|
virtual TBox* clone() const { return new TBox(*this); }
|
|
|
|
virtual Element::Type type() const { return Element::Type::TBOX; }
|
2014-10-16 11:56:06 +02:00
|
|
|
virtual void write(Xml&) const override;
|
|
|
|
virtual void read(XmlReader&) override;
|
2012-05-26 14:26:10 +02:00
|
|
|
|
|
|
|
virtual void layout();
|
2014-10-16 11:56:06 +02:00
|
|
|
virtual void scanElements(void* data, void (*func)(void*, Element*), bool all=true);
|
|
|
|
Text* text() { return _text; }
|
2012-05-26 14:26:10 +02:00
|
|
|
};
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
|
|
|
|
} // namespace Ms
|
2012-05-26 14:26:10 +02:00
|
|
|
#endif
|
|
|
|
|