mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
00b3e3a3cd
Added StyleListener, so style changes are only propagated to interested viewers. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@329 0fc631ac-6414-0410-93d0-97cfa31319b6
29 lines
1.1 KiB
C++
29 lines
1.1 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_CHOICE
|
|
#define HEADER_RENDER_VALUE_CHOICE
|
|
|
|
// ----------------------------------------------------------------------------- : Includes
|
|
|
|
#include <util/prec.hpp>
|
|
#include <render/value/viewer.hpp>
|
|
#include <data/field/choice.hpp>
|
|
|
|
// ----------------------------------------------------------------------------- : ChoiceValueViewer
|
|
|
|
/// Viewer that displays a choice value
|
|
class ChoiceValueViewer : public ValueViewer {
|
|
public:
|
|
DECLARE_VALUE_VIEWER(Choice) : ValueViewer(parent,style) {}
|
|
|
|
virtual void draw(RotatedDC& dc);
|
|
virtual void onStyleChange();
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------- : EOF
|
|
#endif
|