First round of caf::FontTools

This commit is contained in:
Gaute Lindkvist
2020-05-09 11:23:58 +02:00
parent 0e70cf809c
commit 2fe4372dc2
86 changed files with 1021 additions and 966 deletions

View File

@@ -20,6 +20,7 @@
#include "RiaDefines.h"
#include "cafFontTools.h"
#include "cafPdmChildField.h"
#include "cafPdmField.h"
#include "cafPdmObject.h"
@@ -50,7 +51,7 @@ struct RimMdiWindowGeometry
bool isMaximized;
};
class RimViewWindow : public caf::PdmObject
class RimViewWindow : public caf::PdmObject, public caf::FontHolderInterface
{
CAF_PDM_HEADER_INIT;
@@ -83,19 +84,6 @@ public:
void viewNavigationChanged();
// Font methods relates to RimPreferences settings
// When the preferences are changed, these methods are called to propagate the changes into the windows.
virtual bool hasCustomFontSizes( RiaDefines::FontSettingType fontSettingType, int defaultFontSize ) const
{
return false;
}
virtual bool
applyFontSize( RiaDefines::FontSettingType fontSettingType, int oldFontSize, int fontSize, bool forceChange = false )
{
return false;
}
protected:
void removeMdiWindowFromMdiArea();