diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-06-13 20:20:53 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-06-13 20:20:53 +0300 |
commit | f1d38c7cd246ab1b163bd4a0d70471ad452a331b (patch) | |
tree | e09ddbf8580e31e10053e2a72f17bfa24380200a | |
parent | 4908792d64656d2d59d25eaafee6691d1ad99424 (diff) |
db_autobackups: backups number changed from 100 to 9999 (issue #813)
-rw-r--r-- | plugins/Db_autobackups/res/db_autobackups.rc | 20 | ||||
-rw-r--r-- | plugins/Db_autobackups/src/options.cpp | 2 | ||||
-rw-r--r-- | plugins/Db_autobackups/src/resource.h | 6 |
3 files changed, 20 insertions, 8 deletions
diff --git a/plugins/Db_autobackups/res/db_autobackups.rc b/plugins/Db_autobackups/res/db_autobackups.rc index 31eac78f46..1b3abb71e5 100644 --- a/plugins/Db_autobackups/res/db_autobackups.rc +++ b/plugins/Db_autobackups/res/db_autobackups.rc @@ -12,7 +12,7 @@ #undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
-// Русский (Россия) resources
+// Russian (Russia) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
@@ -48,8 +48,8 @@ BEGIN CONTROL "",SPIN_PERIOD,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,136,67,10,12
COMBOBOX IDC_PT,148,67,46,30,CBS_DROPDOWNLIST | WS_TABSTOP
RTEXT "Number of backups to keep:",IDC_STATIC,13,92,147,8
- EDITTEXT IDC_ED_NUMBACKUPS,164,90,30,12,ES_NUMBER,WS_EX_RIGHT
- CONTROL "",SPIN_NUMBACKUPS,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,182,90,10,12
+ EDITTEXT IDC_ED_NUMBACKUPS,164,90,36,12,ES_NUMBER,WS_EX_RIGHT
+ CONTROL "",SPIN_NUMBACKUPS,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,188,90,12,12
LTEXT "Backup to folder:",IDC_STATIC,18,120,124,11
EDITTEXT IDC_ED_FOLDER,17,133,177,13,ES_AUTOHSCROLL
PUSHBUTTON "Browse...",IDC_BUT_BROWSE,199,132,49,14
@@ -102,6 +102,7 @@ END // remains consistent on all systems.
IDI_ICON1 ICON "backup.ico"
+
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
@@ -126,7 +127,18 @@ END #endif // APSTUDIO_INVOKED
-#endif // Русский (Россия) resources
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// AFX_DIALOG_LAYOUT
+//
+
+IDD_OPTIONS AFX_DIALOG_LAYOUT
+BEGIN
+ 0
+END
+
+#endif // Russian (Russia) resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp index bd09bf703d..575f39ab4b 100644 --- a/plugins/Db_autobackups/src/options.cpp +++ b/plugins/Db_autobackups/src/options.cpp @@ -150,7 +150,7 @@ int SetDlgState(HWND hwndDlg) SendDlgItemMessage(hwndDlg, SPIN_PERIOD, UDM_SETRANGE32, 1, (LPARAM)60);
SetDlgItemText(hwndDlg, IDC_ED_PERIOD, _itow(new_options.period, buff, 10));
- SendDlgItemMessage(hwndDlg, SPIN_NUMBACKUPS, UDM_SETRANGE32, 1, (LPARAM)100);
+ SendDlgItemMessage(hwndDlg, SPIN_NUMBACKUPS, UDM_SETRANGE32, 1, (LPARAM)9999);
SetDlgItemText(hwndDlg, IDC_ED_NUMBACKUPS, _itow(new_options.num_backups, buff, 10));
SetDlgItemText(hwndDlg, IDC_ED_FOLDER, new_options.folder);
diff --git a/plugins/Db_autobackups/src/resource.h b/plugins/Db_autobackups/src/resource.h index 40fb887c76..fce60af1e5 100644 --- a/plugins/Db_autobackups/src/resource.h +++ b/plugins/Db_autobackups/src/resource.h @@ -1,6 +1,6 @@ //{{NO_DEPENDENCIES}}
-// Включаемый файл, созданный в Microsoft Visual C++.
-// Используется D:\Others\SVN\MirandaNG\trunk\plugins\Db_autobackups\res\db_autobackups.rc
+// Microsoft Visual C++ generated include file.
+// Used by D:\Miranda NG Git_orig\plugins\Db_autobackups\res\db_autobackups.rc
//
#define IDD_OPTIONS 101
#define IDI_ICON1 270
@@ -32,7 +32,7 @@ //
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NEXT_RESOURCE_VALUE 272
+#define _APS_NEXT_RESOURCE_VALUE 273
#define _APS_NEXT_COMMAND_VALUE 40018
#define _APS_NEXT_CONTROL_VALUE 1676
#define _APS_NEXT_SYMED_VALUE 101
|