summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/Main.cpp
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-12-25 00:30:57 +0000
committerRené Schümann <white06tiger@gmail.com>2014-12-25 00:30:57 +0000
commita58980cb6fcfb7fb81696a72546c1fc4c82ed4f0 (patch)
tree1de49cb03d5c9c3bb10f458e9affd29d310ff547 /plugins/SendScreenshotPlus/src/Main.cpp
parentc0846ad8541a49f1467d32d3208df9671779f5b8 (diff)
SendSS:
- removed mir_icolib and replaced with direct calls (using defines to simplify usage, improved performance) * improved icon define names * renamed ssClose.ico => ssCancel.ico to better reflect its use * slight improvement to ssEditOn.ico !!! this change dramatically changed SendSS's internal icon layout, iconpacks for SendSS must to be adjusted git-svn-id: http://svn.miranda-ng.org/main/trunk@11610 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/Main.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/Main.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp
index 565b9a88af..be7537d8eb 100644
--- a/plugins/SendScreenshotPlus/src/Main.cpp
+++ b/plugins/SendScreenshotPlus/src/Main.cpp
@@ -36,6 +36,32 @@ HANDLE g_hNetlibUser=0;//!< Netlib Register User
FI_INTERFACE* FIP=NULL;
int hLangpack;//Miranda NG langpack used by translate functions, filled by mir_getLP()
+IconItem ICONS[]={
+ {LPGEN("Main Icon"),"main",IDI_MAIN,32},
+ {LPGEN("Main Icon"),"mainxs",IDI_MAIN},
+ {LPGEN("Target Cursor"),"target",IDI_TARGET,32},
+ {LPGEN("Target Desktop"),"monitor",IDI_MONITOR,32},
+};
+IconItem ICONS_BTN[]={
+ {LPGEN("Help"),"help",IDI_HELP},
+ {LPGEN("Open Folder"),"folder",IDI_FOLDER},
+ {LPGEN("Description off"),"desk",IDI_DESK},
+ {LPGEN("Description on"),"deskon",IDI_DESKON},
+ {LPGEN("Delete off"),"del",IDI_DEL},
+ {LPGEN("Delete on"),"delon",IDI_DELON},
+ {LPGEN("Prev"),"arrowl",IDI_ARROWL},
+ {LPGEN("Next"),"arrowr",IDI_ARROWR},
+ {LPGEN("Update"),"update",IDI_UPDATE},
+ {LPGEN("OK"),"ok",IDI_OK},
+ {LPGEN("Cancel"),"cancel",IDI_CANCEL},
+// {LPGEN("Apply"),"apply",IDI_APPLY},
+ {LPGEN("Edit"),"edit",IDI_EDIT},
+ {LPGEN("Edit on"),"editon",IDI_EDITON},
+ {LPGEN("Copy"),"copy",IDI_COPY},
+ {LPGEN("BBC"),"bbc",IDI_BBC},
+ {LPGEN("BBC link"),"bbclnk",IDI_BBC2},
+ {LPGEN("Down arrow"),"downarrow",IDI_DOWNARROW},
+};
static HANDLE m_hFolderScreenshot=0;
TCHAR* GetCustomPath() {
@@ -236,7 +262,8 @@ DLL_EXPORT int Load(void)
m_hookModulesLoaded=HookEvent(ME_SYSTEM_MODULESLOADED,hook_ModulesLoaded);
m_hookSystemPreShutdown=HookEvent(ME_SYSTEM_PRESHUTDOWN,hook_SystemPreShutdown);
/// icons
- IcoLib_LoadModule();
+ Icon_Register(g_hSendSS,SZ_SENDSS,ICONS,sizeof(ICONS)/sizeof(IconItem),SZ_SENDSS);
+ Icon_Register(g_hSendSS,SZ_SENDSS "/" LPGEN("Buttons"),ICONS_BTN,sizeof(ICONS_BTN)/sizeof(IconItem),SZ_SENDSS);
/// services
#define srv_reg(name) do{\
m_h##name=CreateServiceFunction(SZ_SENDSS "/" #name, service_##name);\