Cleaned up handling of what things should be drawn by using the DrawWhat enumeration type.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1072 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-06 03:05:40 +00:00
parent 6c782bb033
commit b586790421
16 changed files with 113 additions and 82 deletions
+15 -7
View File
@@ -96,13 +96,21 @@ void DataViewer::updateStyles(bool only_content_dependent) {
// ----------------------------------------------------------------------------- : Utility for ValueViewers
bool DataViewer::nativeLook() const { return false; }
bool DataViewer::drawBorders() const { return false; }
bool DataViewer::drawEditing() const { return false; }
bool DataViewer::drawFocus() const { return false; }
wxPen DataViewer::borderPen(bool) const { return wxPen(); }
ValueViewer* DataViewer::focusedViewer() const { return nullptr; }
Context& DataViewer::getContext() const { return set->getContext(card); }
bool DataViewer::nativeLook() const {
return false;
}
DrawWhat DataViewer::drawWhat(const ValueViewer*) const {
return (DrawWhat)(DRAW_NORMAL | nativeLook() * DRAW_NATIVELOOK);
}
bool DataViewer::viewerIsCurrent(const ValueViewer*) const {
return false;
}
Context& DataViewer::getContext() const {
return set->getContext(card);
}
Rotation DataViewer::getRotation() const {
if (!stylesheet) stylesheet = set->stylesheet;