14 #include "uibasemod.h" 46 uiFont& operator=(
const uiFont&);
48 FontData fontData()
const ;
49 void setFontData(
const FontData&);
51 static void setFontData(
mQtclass(QFont)&,
const FontData&);
52 static void getFontData(FontData&,
const mQtclass(QFont)&);
53 static mQtclass(QFont)* createQFont(
const FontData&);
55 inline const mQtclass(QFont&) qFont()
const {
return *qfont_; }
65 const char*
key()
const {
return key_; }
70 uiFont(
const char* ky,
const char* family,
74 uiFont(
const char* ky,FontData fd=FontData());
75 uiFont(
const uiFont&);
79 mQtclass(QFontMetrics&) qfontmetrics_;
104 uiFont&
get(
const char* ky=0);
106 uiFont& getFromQfnt(
mQtclass(QFont*));
108 uiFont& add(
const char* ky,
const FontData&);
109 uiFont& add(
const char* ky,
121 uiFont& gtFont(
const char*,
const FontData* =0,
130 void addOldGuess(
const IOPar&,
const char*);
136 #define FontList uiFontList::getInst #define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
static bool defaultItalic()
uiFontList()
Definition: uifont.h:93
#define mQtclass(cls)
Definition: commondefs.h:229
#define mGlobal(module)
Definition: commondefs.h:163
bool inited_
Definition: uifont.h:128
Definition: uistring.h:89
mFDQtclass(QFont) mFDQtclass(QFontMetrics) bool selectFont(uiFont &
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
Weight
Definition: fontdata.h:24
Data needed to make an actual font.
Definition: fontdata.h:20
ObjectSet< uiFont > & fonts()
Definition: uifont.h:102
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Settings class holds the user settings. It is an IOPar.
Definition: settings.h:34
const mQtclass(QFont &) qFont() const
Definition: uifont.h:55
static const char * defaultFamily()
uiParent const uiString & title
pops a selector box to select a new font
Definition: uifont.h:27
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const ObjectSet< uiFont > & fonts() const
Definition: uifont.h:101
Definition: uifontsel.h:28
bool selectFont(FontData &, uiParent *=0, const uiString &title=uiString::emptyString())
pops a selector box to select a new font
StdSz
Definition: fontdata.h:65
ObjectSet< uiFont > fonts_
Definition: uifont.h:119
Notifier< uiFont > changed
Definition: uifont.h:66
const char * key() const
Definition: uifont.h:65
static Weight defaultWeight()
static int defaultPointSize()