mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
First round of caf::FontTools
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user