mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3997 Use AppEnum for font size in preferences as well so it is more easily shared.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user