#3997 Use AppEnum for font size in preferences as well so it is more easily shared.

This commit is contained in:
Gaute Lindkvist
2019-02-04 14:23:16 +01:00
parent 5bbde43dad
commit f15d6dd385
10 changed files with 76 additions and 93 deletions

View File

@@ -18,11 +18,17 @@
#pragma once
#include <cvfBase.h>
#include <cafFixedAtlasFont.h>
#include "cvfBase.h"
#include "cvfObject.h"
#include <map>
namespace caf
{
class FixedAtlasFont;
template<typename T> class AppEnum;
}
class RimSummaryCaseCollection;
//==================================================================================================
@@ -42,10 +48,10 @@ public:
FONT_SIZE_32
};
typedef caf::AppEnum<FontSize> FontSizeType;
static cvf::ref<caf::FixedAtlasFont> getFont(FontSize size);
private:
static caf::FixedAtlasFont::FontSize mapToAtlasFontSize(FontSize fontSize);
static std::map<FontSize, cvf::ref<caf::FixedAtlasFont>> ms_fonts;
};