diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-01-03 05:12:30 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-01-03 05:12:30 +0000 |
commit | 05f6cf3f7788f8bfe5ee589a9f27a89217c67989 (patch) | |
tree | a39f988ad4391eb4cb4d62c5643c01cae5af13e3 /Plugins/skins/SkinLib/Dialog.cpp | |
parent | bb6784e0e1a385cdd20b41d3254093e89a210332 (diff) |
skins: It's ALIVE!
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@121 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/skins/SkinLib/Dialog.cpp')
-rw-r--r-- | Plugins/skins/SkinLib/Dialog.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Plugins/skins/SkinLib/Dialog.cpp b/Plugins/skins/SkinLib/Dialog.cpp index 712b85a..d07119e 100644 --- a/Plugins/skins/SkinLib/Dialog.cpp +++ b/Plugins/skins/SkinLib/Dialog.cpp @@ -48,6 +48,29 @@ Field * Dialog::getField(const char *name) const return NULL;
}
+Field * Dialog::getField(unsigned int pos) const
+{
+ if (pos >= fields.size())
+ return NULL;
+ return fields[pos];
+}
+
+int Dialog::getIndexOf(Field *field) const
+{
+ for(unsigned int i = 0; i < fields.size(); i++)
+ {
+ Field *f = fields[i];
+ if (field == f)
+ return i;
+ }
+
+ return -1;
+}
+
+unsigned int Dialog::getFieldCount() const
+{
+ return fields.size();
+}
const Size & Dialog::getSize() const
{
|