diff options
| author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-04-13 00:26:46 +0000 |
|---|---|---|
| committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-04-13 00:26:46 +0000 |
| commit | 19a7d971aaca383901babdc0852eadea12c3c0cd (patch) | |
| tree | b8624097ff482b694c858c008e81b22a427a9a66 /Plugins/extraicons/ExtraIcon.cpp | |
| parent | fda46e22fa15bd77a6d1e2610e9fd9b272dc04fa (diff) | |
extraicons: merge more than one icon with same name and some fixes
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@161 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/extraicons/ExtraIcon.cpp')
| -rw-r--r-- | Plugins/extraicons/ExtraIcon.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Plugins/extraicons/ExtraIcon.cpp b/Plugins/extraicons/ExtraIcon.cpp index 6dd63b8..7fc60dc 100644 --- a/Plugins/extraicons/ExtraIcon.cpp +++ b/Plugins/extraicons/ExtraIcon.cpp @@ -21,7 +21,7 @@ ExtraIcon::ExtraIcon(const char *name, const char *description, const char *descIcon, int(*OnClick)(WPARAM wParam,
LPARAM lParam)) :
- name(name), description(Translate(description)), descIcon(descIcon), OnClick(OnClick), slot(-1)
+ name(name), description(description), descIcon(descIcon), OnClick(OnClick), slot(-1)
{
}
@@ -39,11 +39,21 @@ const char *ExtraIcon::getDescription() const return description.c_str();
}
+void ExtraIcon::setDescription(const char *desc)
+{
+ description = desc;
+}
+
const char *ExtraIcon::getDescIcon() const
{
return descIcon.c_str();
}
+void ExtraIcon::setDescIcon(const char *icon)
+{
+ descIcon = icon;
+}
+
int ExtraIcon::getSlot() const
{
return slot;
|
