From a41c9020b7fcbc4d05fcb37097177cc0efc7cdce Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 1 Jul 2012 10:21:56 +0000 Subject: db_helpers.cpp deleted git-svn-id: http://svn.miranda-ng.org/main/trunk@708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StatusPlugins/StartupStatus/options.cpp | 42 +++++++++++++++---------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'plugins/StatusPlugins/StartupStatus/options.cpp') diff --git a/plugins/StatusPlugins/StartupStatus/options.cpp b/plugins/StatusPlugins/StartupStatus/options.cpp index a790561310..63edb34d4c 100644 --- a/plugins/StatusPlugins/StartupStatus/options.cpp +++ b/plugins/StatusPlugins/StartupStatus/options.cpp @@ -16,6 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include "../commonstatus.h" #include "startupstatus.h" #include "../resource.h" @@ -552,19 +553,19 @@ static INT_PTR CALLBACK StatusProfilesOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wP if ( ar[j].szMsg != NULL) ar[j].szMsg = _strdup( ar[j].szMsg ); - dat[i].szName = dbi_getAs(i, SETTING_PROFILENAME, NULL); + dat[i].szName = db_get_sa(NULL, MODULENAME, OptName(i, SETTING_PROFILENAME)); if (dat[i].szName == NULL) { if (i == defProfile) dat[i].szName = _strdup(Translate("default")); else dat[i].szName = _strdup(Translate("unknown")); } - dat[i].createTtb = dbi_getb(i, SETTING_CREATETTBBUTTON, 0); - dat[i].showDialog = dbi_getb(i, SETTING_SHOWCONFIRMDIALOG, 0); - dat[i].createMmi = dbi_getb(i, SETTING_CREATEMMITEM, 0); - dat[i].inSubMenu = dbi_getb(i, SETTING_INSUBMENU, 1); - dat[i].regHotkey = dbi_getb(i, SETTING_REGHOTKEY, 0); - dat[i].hotKey = dbi_getw(i, SETTING_HOTKEY, MAKEWORD((char)('0'+i), HOTKEYF_CONTROL|HOTKEYF_SHIFT)); + dat[i].createTtb = db_get_b(NULL, MODULENAME, OptName(i, SETTING_CREATETTBBUTTON), 0); + dat[i].showDialog = db_get_b(NULL, MODULENAME, OptName(i, SETTING_SHOWCONFIRMDIALOG), 0); + dat[i].createMmi = db_get_b(NULL, MODULENAME, OptName(i, SETTING_CREATEMMITEM), 0); + dat[i].inSubMenu = db_get_b(NULL, MODULENAME, OptName(i, SETTING_INSUBMENU), 1); + dat[i].regHotkey = db_get_b(NULL, MODULENAME, OptName(i, SETTING_REGHOTKEY), 0); + dat[i].hotKey = db_get_w(NULL, MODULENAME, OptName(i, SETTING_HOTKEY), MAKEWORD((char)('0'+i), HOTKEYF_CONTROL|HOTKEYF_SHIFT)); } } if ( !ServiceExists( MS_TTB_ADDBUTTON ) && !ServiceExists( MS_TB_ADDBUTTON )) @@ -847,21 +848,21 @@ static INT_PTR CALLBACK StatusProfilesOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wP ClearDatabase(setting); } for (i=0;i