Card preview on style panel is refreshed when styling changes

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@492 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-05 17:33:53 +00:00
parent ec1a7c82cd
commit 5a619e4ee7
3 changed files with 20 additions and 0 deletions
+4
View File
@@ -38,6 +38,10 @@ void CardViewer::redraw(const ValueViewer& v) {
}
void CardViewer::onChange() {
redraw();
}
void CardViewer::redraw() {
if (drawing) return;
up_to_date = false;
Refresh(false);
+2
View File
@@ -30,6 +30,8 @@ class CardViewer : public wxControl, public DataViewer {
/** May NOT be called while in onPaint/draw */
shared_ptr<DC> overdrawDC();
/// Invalidate and redraw the entire viewer
void redraw();
/// Invalidate and redraw (the area of) a single value viewer
virtual void redraw(const ValueViewer&);