summaryrefslogtreecommitdiff
path: root/plugins/Skins/MirandaTextField.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Skins/MirandaTextField.cpp')
-rw-r--r--plugins/Skins/MirandaTextField.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/Skins/MirandaTextField.cpp b/plugins/Skins/MirandaTextField.cpp
new file mode 100644
index 0000000000..4a3591a322
--- /dev/null
+++ b/plugins/Skins/MirandaTextField.cpp
@@ -0,0 +1,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());
+}