summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-13 23:42:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-13 23:42:14 +0300
commit453a2f5a1c3dbe0e2b87c2058a4e0ddf0c8f99c7 (patch)
treeaeca99de34d91f3c4274daba96debc520a070ba5 /plugins
parent37bf075d4d326f6d5577fd2ce81f0e75d5ee7311 (diff)
rest of YAMN
Diffstat (limited to 'plugins')
-rw-r--r--plugins/YAMN/src/browser/mailbrowser.cpp10
-rw-r--r--plugins/YAMN/src/main.cpp22
2 files changed, 16 insertions, 16 deletions
diff --git a/plugins/YAMN/src/browser/mailbrowser.cpp b/plugins/YAMN/src/browser/mailbrowser.cpp
index 974e46fbe4..3cb68c9f90 100644
--- a/plugins/YAMN/src/browser/mailbrowser.cpp
+++ b/plugins/YAMN/src/browser/mailbrowser.cpp
@@ -1719,10 +1719,10 @@ INT_PTR CALLBACK DlgProcYAMNMailBrowser(HWND hDlg, UINT msg, WPARAM wParam, LPAR
SizeX = coord.right - coord.left;
PosY = coord.top;
SizeY = coord.bottom - coord.top;
- db_set_dw(0, YAMN_DBMODULE, YAMN_DBPOSX, PosX);
- db_set_dw(0, YAMN_DBMODULE, YAMN_DBPOSY, PosY);
- db_set_dw(0, YAMN_DBMODULE, YAMN_DBSIZEX, SizeX);
- db_set_dw(0, YAMN_DBMODULE, YAMN_DBSIZEY, SizeY);
+ g_plugin.setDword(YAMN_DBPOSX, PosX);
+ g_plugin.setDword(YAMN_DBPOSY, PosY);
+ g_plugin.setDword(YAMN_DBSIZEX, SizeX);
+ g_plugin.setDword(YAMN_DBSIZEY, SizeY);
}
KillTimer(hDlg, TIMER_FLASHING);
@@ -2047,7 +2047,7 @@ INT_PTR CALLBACK DlgProcYAMNMailBrowser(HWND hDlg, UINT msg, WPARAM wParam, LPAR
}
}
CloseHandle(ThreadRunningEV);
- if (db_get_b(0, YAMN_DBMODULE, YAMN_CLOSEDELETE, 0))
+ if (g_plugin.getByte(YAMN_CLOSEDELETE, 0))
DestroyWindow(hDlg);
}
break;
diff --git a/plugins/YAMN/src/main.cpp b/plugins/YAMN/src/main.cpp
index db6fb2039c..75a7ea1896 100644
--- a/plugins/YAMN/src/main.cpp
+++ b/plugins/YAMN/src/main.cpp
@@ -116,7 +116,7 @@ BOOL CALLBACK EnumSystemCodePagesProc(LPTSTR cpStr)
void CheckMenuItems()
{
- Menu_ShowItem(hMenuItemMain, db_get_b(0, YAMN_DBMODULE, YAMN_SHOWMAINMENU, 1) != 0);
+ Menu_ShowItem(hMenuItemMain, g_plugin.getByte(YAMN_SHOWMAINMENU, 1) != 0);
}
int SystemModulesLoaded(WPARAM, LPARAM)
@@ -264,18 +264,18 @@ int CMPlugin::Load()
if (nullptr == (ExitEV = CreateEvent(nullptr, TRUE, FALSE, nullptr)))
return 1;
- PosX = db_get_dw(0, YAMN_DBMODULE, YAMN_DBPOSX, 0);
- PosY = db_get_dw(0, YAMN_DBMODULE, YAMN_DBPOSY, 0);
- SizeX = db_get_dw(0, YAMN_DBMODULE, YAMN_DBSIZEX, 800);
- SizeY = db_get_dw(0, YAMN_DBMODULE, YAMN_DBSIZEY, 200);
+ PosX = g_plugin.getDword(YAMN_DBPOSX, 0);
+ PosY = g_plugin.getDword(YAMN_DBPOSY, 0);
+ SizeX = g_plugin.getDword(YAMN_DBSIZEX, 800);
+ SizeY = g_plugin.getDword(YAMN_DBSIZEY, 200);
- HeadPosX = db_get_dw(0, YAMN_DBMODULE, YAMN_DBMSGPOSX, 0);
- HeadPosY = db_get_dw(0, YAMN_DBMODULE, YAMN_DBMSGPOSY, 0);
- HeadSizeX = db_get_dw(0, YAMN_DBMODULE, YAMN_DBMSGSIZEX, 690);
- HeadSizeY = db_get_dw(0, YAMN_DBMODULE, YAMN_DBMSGSIZEY, 300);
- HeadSplitPos = db_get_w(0, YAMN_DBMODULE, YAMN_DBMSGPOSSPLIT, 250);
+ HeadPosX = g_plugin.getDword(YAMN_DBMSGPOSX, 0);
+ HeadPosY = g_plugin.getDword(YAMN_DBMSGPOSY, 0);
+ HeadSizeX = g_plugin.getDword(YAMN_DBMSGSIZEX, 690);
+ HeadSizeY = g_plugin.getDword(YAMN_DBMSGSIZEY, 300);
+ HeadSplitPos = g_plugin.getWord(YAMN_DBMSGPOSSPLIT, 250);
- optDateTime = db_get_b(0, YAMN_DBMODULE, YAMN_DBTIMEOPTIONS, optDateTime);
+ optDateTime = g_plugin.getByte(YAMN_DBTIMEOPTIONS, optDateTime);
// Create new window queues for broadcast messages
YAMNVar.MessageWnds = WindowList_Create();