summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-24 12:31:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-24 12:31:20 +0000
commit6635ad88204b3535bd5edd9a2266f79238e3a6f6 (patch)
tree2b2163b4aeb799251be464cb2f62d5ccdecce177 /plugins/DbChecker/src
parentfcaa63b4a1c5e09a0de56ad220abe6396bc508b4 (diff)
unused icons removed from dbchecker's wizard
git-svn-id: http://svn.miranda-ng.org/main/trunk@8729 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbChecker/src')
-rw-r--r--plugins/DbChecker/src/resource.h2
-rw-r--r--plugins/DbChecker/src/selectdb.cpp20
-rw-r--r--plugins/DbChecker/src/version.h2
3 files changed, 3 insertions, 21 deletions
diff --git a/plugins/DbChecker/src/resource.h b/plugins/DbChecker/src/resource.h
index a76f82ee1c..9a6e8666de 100644
--- a/plugins/DbChecker/src/resource.h
+++ b/plugins/DbChecker/src/resource.h
@@ -9,9 +9,7 @@
#define IDE_HDRLOGO 103
#define IDI_PROFILEGREEN 104
#define IDR_DEFAULT1 104
-#define IDI_PROFILEYELLOW 105
#define IDD_WELCOME 106
-#define IDI_PROFILERED 106
#define IDD_SELECTDB 107
#define IDD_OPENERROR 108
#define IDD_FILEACCESS 109
diff --git a/plugins/DbChecker/src/selectdb.cpp b/plugins/DbChecker/src/selectdb.cpp
index 32f2370077..4eef937cb0 100644
--- a/plugins/DbChecker/src/selectdb.cpp
+++ b/plugins/DbChecker/src/selectdb.cpp
@@ -103,7 +103,6 @@ static int AddDatabaseToList(HWND hwndList, const TCHAR* filename, TCHAR* dir)
return -1;
DWORD totalSize = st.st_size;
- DWORD wasted = 0;
bool isBroken = CheckBroken(filename);
@@ -125,23 +124,12 @@ static int AddDatabaseToList(HWND hwndList, const TCHAR* filename, TCHAR* dir)
lvi.iSubItem = 0;
lvi.lParam = (LPARAM)_tcsdup(filename);
lvi.pszText = szName;
- if (isBroken)
- lvi.iImage = 3;
- else if (wasted < 1024*128)
- lvi.iImage = 0;
- else if (wasted < 1024*256 + (DWORD)(totalSize > 2*1024*1024) ? 256 * 1024 : 0)
- lvi.iImage = 1;
- else
- lvi.iImage = 2;
+ lvi.iImage = (isBroken) ? 1 : 0;
int iNewItem = ListView_InsertItem(hwndList, &lvi);
TCHAR szSize[20];
mir_sntprintf(szSize, SIZEOF(szSize), _T("%.2lf MB"), totalSize / 1048576.0);
ListView_SetItemText(hwndList, iNewItem, 1, szSize);
- if (!isBroken) {
- mir_sntprintf(szSize, SIZEOF(szSize), _T("%.2lf MB"), wasted / 1048576.0);
- ListView_SetItemText(hwndList, iNewItem, 2, szSize);
- }
return iNewItem;
}
@@ -187,8 +175,6 @@ INT_PTR CALLBACK SelectDbDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM
{
HIMAGELIST hIml = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_COLOR32 | ILC_MASK, 3, 3);
ImageList_AddIcon(hIml, LoadIcon(hInst, MAKEINTRESOURCE(IDI_PROFILEGREEN)));
- ImageList_AddIcon(hIml, LoadIcon(hInst, MAKEINTRESOURCE(IDI_PROFILEYELLOW)));
- ImageList_AddIcon(hIml, LoadIcon(hInst, MAKEINTRESOURCE(IDI_PROFILERED)));
ImageList_AddIcon(hIml, LoadIcon(hInst, MAKEINTRESOURCE(IDI_BAD)));
ListView_SetImageList(GetDlgItem(hdlg, IDC_DBLIST), hIml, LVSIL_SMALL);
}
@@ -196,7 +182,7 @@ INT_PTR CALLBACK SelectDbDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM
{
LV_COLUMN lvc;
lvc.mask = LVCF_WIDTH | LVCF_FMT | LVCF_TEXT;
- lvc.cx = 205;
+ lvc.cx = 290;
lvc.fmt = LVCFMT_LEFT;
lvc.pszText = TranslateT("Database");
ListView_InsertColumn(GetDlgItem(hdlg, IDC_DBLIST), 0, &lvc);
@@ -204,8 +190,6 @@ INT_PTR CALLBACK SelectDbDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM
lvc.fmt = LVCFMT_RIGHT;
lvc.pszText = TranslateT("Total size");
ListView_InsertColumn(GetDlgItem(hdlg, IDC_DBLIST), 1, &lvc);
- lvc.pszText = TranslateT("Wasted");
- ListView_InsertColumn(GetDlgItem(hdlg, IDC_DBLIST), 2, &lvc);
TCHAR szMirandaPath[MAX_PATH];
GetModuleFileName(NULL, szMirandaPath, SIZEOF(szMirandaPath));
diff --git a/plugins/DbChecker/src/version.h b/plugins/DbChecker/src/version.h
index 911e6fc2fa..452246d18e 100644
--- a/plugins/DbChecker/src/version.h
+++ b/plugins/DbChecker/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 95
#define __RELEASE_NUM 0
-#define __BUILD_NUM 2
+#define __BUILD_NUM 3
#include <stdver.h>