 |
OpendTect
6.6
|
Go to the documentation of this file.
13 #include "uibasemod.h"
54 inline const mQtclass(QFont&) qFont()
const {
return *qfont_; }
64 const char*
key()
const {
return key_; }
69 uiFont(
const char* ky,
const char* family,
135 #define FontList uiFontList::getInst
uiFont & get(const char *ky=0)
Settings class holds the user settings. It is an IOPar.
Definition: settings.h:34
uiFont(const char *ky, const char *family, int ps=FontData::defaultPointSize(), FontData::Weight w=FontData::defaultWeight(), bool it=FontData::defaultItalic())
uiFont must be created through the uiFontList
Definition: uifontsel.h:28
StdSz
Definition: fontdata.h:67
const mQtclass(QFont &) qFont() const
Definition: uifont.h:54
Notifier< uiFont > changed
Definition: uifont.h:65
bool selectFont(FontData &, uiParent *=0, const uiString &title=uiString::emptyString())
pops a selector box to select a new font
#define mGlobal(module)
Definition: commondefs.h:180
Set of BufferString objects.
Definition: bufstringset.h:26
const char * key() const
Definition: uifont.h:64
static bool defaultItalic()
const ObjectSet< uiFont > & fonts() const
Definition: uifont.h:100
bool inited_
Definition: uifont.h:127
ObjectSet< uiFont > fonts_
Definition: uifont.h:118
uiFont(const char *ky, FontData fd=FontData())
#define mExpClass(module)
Definition: commondefs.h:177
static Weight defaultWeight()
static void setFontData(mQtclass(QFont)&, const FontData &)
static void getFontData(FontData &, const mQtclass(QFont)&)
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
void use(const Settings &)
void setFontData(const FontData &)
Updates internal QFont and QFontMetrics.
ObjectSet< uiFont > & fonts()
Definition: uifont.h:101
uiFont & operator=(const uiFont &)
void addOldGuess(const IOPar &, const char *)
uiParent const uiString & title
pops a selector box to select a new font
Definition: uifont.h:26
uiFont & getFromQfnt(mQtclass(QFont *))
BufferString key_
Definition: uifont.h:80
static int defaultPointSize()
static uiFontList & getInst()
static const char * defaultFamily()
Weight
Definition: fontdata.h:23
void removeOldEntries(Settings &)
uiFont & add(const char *ky, const FontData &)
static mQtclass(QFont) *createQFont(const FontData &)
uiFont & gtFont(const char *, const FontData *=0, const mQtclass(QFont *)=0)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiFont & get(FontData::StdSz)
uiFontList()
Definition: uifont.h:92
#define mQtclass(cls)
Definition: commondefs.h:234
void listKeys(BufferStringSet &)
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
static const uiString & emptyString()
Definition: uistring.h:300
int width(const uiString &) const
Definition: uiparent.h:26
Data needed to make an actual font.
Definition: fontdata.h:20
uiFont & add(const char *ky, const char *f=FontData::defaultFamily(), int ptsz=FontData::defaultPointSize(), FontData::Weight w=FontData::defaultWeight(), bool it=FontData::defaultItalic())
mFDQtclass(QFont) mFDQtclass(QFontMetrics) bool selectFont(uiFont &
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
FontData fontData() const
mQtclass(QFontMetrics &) qfontmetrics_
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021