mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
e46cbe66b2
Added 'right' and 'bottom' properties to style as an alternative way of specifying width/height; Added content_width, content_height and content_lines properties that give feedback on text rendering; Always show warnings when showing errors and vice-versa, this prevents script errors from appearing before the reader/parse error that caused them; Finally some preliminairy work on export templates git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@428 0fc631ac-6414-0410-93d0-97cfa31319b6
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
//+----------------------------------------------------------------------------+
|
|
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
|
|
//| Copyright: (C) 2001 - 2007 Twan van Laarhoven |
|
|
//| License: GNU General Public License 2 or later (see file COPYING) |
|
|
//+----------------------------------------------------------------------------+
|
|
|
|
#ifndef HEADER_RENDER_VALUE_TEXT
|
|
#define HEADER_RENDER_VALUE_TEXT
|
|
|
|
// ----------------------------------------------------------------------------- : Includes
|
|
|
|
#include <util/prec.hpp>
|
|
#include <render/value/viewer.hpp>
|
|
#include <render/text/viewer.hpp>
|
|
#include <data/field/text.hpp>
|
|
|
|
// ----------------------------------------------------------------------------- : TextValueViewer
|
|
|
|
/// Viewer that displays a text value
|
|
class TextValueViewer : public ValueViewer {
|
|
public:
|
|
DECLARE_VALUE_VIEWER(Text) : ValueViewer(parent,style) {}
|
|
|
|
virtual void prepare(RotatedDC& dc);
|
|
virtual void draw(RotatedDC& dc);
|
|
virtual void onValueChange();
|
|
virtual void onStyleChange();
|
|
|
|
protected:
|
|
TextViewer v;
|
|
};
|
|
|
|
|
|
// ----------------------------------------------------------------------------- : EOF
|
|
#endif
|