blob: 4a3591a32240dd6aa27be51af45ee7c4724c8372 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "MirandaTextField.h"
#include "MirandaFont.h"
MirandaTextField::MirandaTextField(MirandaSkinnedDialog *dlg, const char *name, const char *aDescription)
: TextField(dlg, name)
{
font = new MirandaFont(this, aDescription);
}
MirandaTextField::~MirandaTextField()
{
delete font;
}
MirandaSkinnedDialog * MirandaTextField::getDialog() const
{
return (MirandaSkinnedDialog *) TextField::getDialog();
}
void MirandaTextField::configure()
{
TextFieldState *field = (TextFieldState *) getDialog()->getDefaultState()->getField(getName());
_ASSERT(field != NULL);
font->registerFont(field->getFont());
}
|