Permalink
Browse files

Added setting for days to check (min 5, default 14)

  • Loading branch information...
1 parent 2235df5 commit 77b53a744fef92e9e0ae9e2ed29c9f698f66d973 @bruderstein committed Dec 2, 2011
@@ -62,21 +62,24 @@ BEGIN
LTEXT "Overall Progress:",IDC_STATIC,7,64,56,8
END
-IDD_CONFIGDIALOG DIALOGEX 0, 0, 266, 128
+IDD_CONFIGDIALOG DIALOGEX 0, 0, 266, 154
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Plugin Manager Settings"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- DEFPUSHBUTTON "OK",IDOK,74,105,63,14
- PUSHBUTTON "Cancel",IDCANCEL,154,105,63,14
+ DEFPUSHBUTTON "OK",IDOK,74,127,63,14
+ PUSHBUTTON "Cancel",IDCANCEL,154,127,63,14
EDITTEXT IDC_PROXYADDRESS,59,7,200,14,ES_AUTOHSCROLL
EDITTEXT IDC_PROXYPORT,59,30,40,14,ES_AUTOHSCROLL
LTEXT "Proxy address:",IDC_STATIC,7,9,50,8
LTEXT "Proxy port:",IDC_STATIC,7,34,38,8
CONTROL "Notify of plugin updates at startup",IDC_NOTIFY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,59,54,127,10
- CONTROL "Show unstable plugins",IDC_SHOWUNSTABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,60,70,87,10
+ CONTROL "Show unstable plugins",IDC_SHOWUNSTABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,60,92,87,10
CONTROL "Install plugins for all users",IDC_INSTALLALLUSERS,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,60,87,99,10
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,60,109,99,10
+ LTEXT "Check for plugin updates every ",IDC_STATIC,59,68,103,8
+ EDITTEXT IDC_DAYSTOCHECK,164,65,20,14,ES_AUTOHSCROLL
+ LTEXT "days",IDC_STATIC,189,68,69,8
END
IDD_UPDATESNOTIFY DIALOGEX 0, 0, 402, 164
@@ -103,7 +106,7 @@ GUIDELINES DESIGNINFO
BEGIN
IDD_CONFIGDIALOG, DIALOG
BEGIN
- BOTTOMMARGIN, 110
+ BOTTOMMARGIN, 136
END
END
#endif // APSTUDIO_INVOKED
@@ -1,9 +1,9 @@
#ifndef _PLUGINMANAGERVERSION_H
#define _PLUGINMANAGERVERSION_H
-#define PLUGINMANAGERVERSION_STRING "1.0.0.0"
-#define PLUGINMANAGERVERSION_RESOURCE 1,0,0,0
-#define PLUGINMANAGERVERSION_RESOURCE_STRING "1, 0, 0, 0"
+#define PLUGINMANAGERVERSION_STRING "1.0.1.0"
+#define PLUGINMANAGERVERSION_RESOURCE 1,0,1,0
+#define PLUGINMANAGERVERSION_RESOURCE_STRING "1, 0, 1, 0"
#define PLUGINMANAGERVERSION_RELEASEDATE "December 2011"
#endif
@@ -96,10 +96,12 @@ void SettingsDialog::initialiseOptions()
::SetWindowTextA(GetDlgItem(_hSelf, IDC_PROXYPORT), "");
::SendMessage(GetDlgItem(_hSelf, IDC_NOTIFY), BM_SETCHECK, g_options.notifyUpdates ? BST_CHECKED : BST_UNCHECKED, 0);
-
+
::SendMessage(GetDlgItem(_hSelf, IDC_SHOWUNSTABLE), BM_SETCHECK, g_options.showUnstable ? BST_CHECKED : BST_UNCHECKED, 0);
-
+
+ _ltoa_s(g_options.daysToCheck, tmp, 15, 10);
+ ::SetWindowTextA(GetDlgItem(_hSelf, IDC_DAYSTOCHECK), tmp);
::SendMessage(GetDlgItem(_hSelf, IDC_INSTALLALLUSERS), BM_SETCHECK, g_options.installLocation == INSTALLLOC_APPDATA ? BST_UNCHECKED : BST_CHECKED, 0);
@@ -115,6 +117,10 @@ void SettingsDialog::setOptions()
::GetWindowTextA(GetDlgItem(_hSelf, IDC_PROXYPORT), address, MAX_PATH);
g_options.proxyInfo.setProxyPort(atol(address));
+
+ ::GetWindowTextA(GetDlgItem(_hSelf, IDC_DAYSTOCHECK), address, MAX_PATH);
+ g_options.daysToCheck = atol(address);
+
LRESULT result = ::SendMessage(GetDlgItem(_hSelf, IDC_NOTIFY), BM_GETCHECK, 0, 0);
if (BST_CHECKED == result)
g_options.notifyUpdates = TRUE;
@@ -38,14 +38,15 @@
#define IDC_REINSTALL 1021
#define IDC_BUTTON2 1022
#define IDC_UPDATEDESC 1023
+#define IDC_DAYSTOCHECK 1024
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 116
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1024
+#define _APS_NEXT_CONTROL_VALUE 1025
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

0 comments on commit 77b53a7

Please sign in to comment.