Commit Graph

3286 Commits

Author SHA1 Message Date
Rom Walton 508a739f23 MGR: Remove dead code 2014-03-06 12:28:07 -05:00
Rom Walton 9a7e5ebb3a MGR: We need to cast mb_str() calls when using fprintf or some other C Runtime function. 2014-03-06 12:14:00 -05:00
Charlie Fenton a3bccdb438 MGR: Get assert handler working on Macintosh to log output to the log file on release builds.
- Fix build break on Mac: wxUSE_DEBUGREPORT is defined as 1 even though wxDebugReport() is not available in wxCocoa built from wxCocoa.xcodeproj.
2014-03-06 04:53:19 -08:00
Rom Walton c9982c4813 MGR: Only dump a crash report if wxUSE_DEBUGREPORT is defined in wxWidgets. 2014-03-05 21:49:24 -05:00
Rom Walton 1ea098fb3d MGR: Re-introduce the OnEndSession event handler. 2014-03-05 17:23:40 -05:00
Rom Walton 7ee5fe3423 MGR: If an assert is thrown while running under a debugger, break into the debugger. 2014-03-05 16:50:58 -05:00
Rom Walton 00aa8b4dbf MGR: Update BOINC icon set to v5. 2014-03-05 15:29:51 -05:00
Rom Walton cd7ac528a2 MGR: Hookup wxWidgets 3.0 diagnostics framework, redirect asserts to stderr.
MGR: Remove what are now over active asserts complaining about pConfig being NULL.  Apparently we knew already knew that pConfig could be NULL in certain circumstances and followed up with a check to return from the function if pConfig was NULL, that code was added in 2007.  The assert check wasn't really needed after that point.
2014-03-05 13:57:44 -05:00
Rom Walton 1ee90f063e MGR: Setup an assert handler under the wxWidgets 3.x framework, log output to the log file on release builds. 2014-03-05 12:08:56 -05:00
Rom Walton 68d844aea6 MGR: same as previous commit. 2014-03-05 11:47:38 -05:00
Rom Walton 347b42b4c3 MGR: Remove obsolete code that should no longer be needed. 2014-03-05 11:46:16 -05:00
Charlie Fenton 80bbfae79c MGR: Update Mac precompiled header file for debugging options appropriate with wxWidgets-3.0 2014-03-04 05:23:30 -08:00
Rom Walton 7e552df932 MGR: Enforce a 16x16 image for the advanced prefs tab control for all platforms. wxImageList is initialized for 16x16 and would probably throw an error for any other size. 2014-03-03 12:13:59 -05:00
Charlie Fenton e2c845f922 MGR: Fix broken icon in Advanced Preferences "Exclusive Applications" tab
- GetIcon(wxDefaultSize) for wxIconBundle objects uses wxSystemSettings::GetMetric(wxSYS_ICON_X) which is not supported on Mac.
2014-03-03 05:20:18 -08:00
Charlie Fenton 0c20ed0487 MGR: Another round of improvements and simplification of Mac code for wxCocoa 3.0
- I found a better way to work around an issue with wxCocoa which prevented BOINC Manager from running if launched hidden (when launched automatically on user login) than the one I implemented in commit 082aff7.
 - This change allowed me to again call the original wxApp::CallOnInit().
 - The original wxApp::CallOnInit() fixed the clean up on logout or system shutdown, ensuring preferences file is written, so I could remove my nasty hack in commit 0aefd62.
2014-03-03 04:36:47 -08:00
Charlie Fenton 0aefd62468 MGR: On Mac, clean up properly on logout or system shutdown to ensure preferences file is written 2014-03-01 07:13:00 -08:00
Charlie Fenton 19d2721fba MGR: If user moves SimpleView window, immediately save its new position to registry / config file 2014-03-01 03:52:48 -08:00
Charlie Fenton 0d25479c38 MGR: Still more improvements and simplification of Mac code for wxCocoa 3.0 2014-03-01 02:58:48 -08:00
Charlie Fenton 0fc3952d68 MGR: Fix save and restore of main window position on Mac 2014-02-28 04:01:58 -08:00
Charlie Fenton 21bf0cb7dd MGR: after initial install with acct_mgr_url.xml file, if we automatically showed the Attach Wizard, hide the Manager only if branded for GridRepublic, Charity Engine or Progress Thru Processors. 2014-02-27 01:25:49 -08:00
Charlie Fenton 3df677b6bc MGR: Further improvements and simplification of Mac code for wxCocoa 3.0 2014-02-26 06:47:39 -08:00
Charlie Fenton b7b9e0acd3 MGR: Improvements to comments 2014-02-25 07:48:30 -08:00
Charlie Fenton 082aff7f16 MGR: Work around an issue with wxCocoa which prevented BOINC Manager from running if launched hidden (when launched automatically on user login) 2014-02-25 07:47:21 -08:00
Rom Walton 5423db74fe MGR: Remove older icon templates (v1, v2, v3). 2014-02-24 17:56:18 -05:00
Rom Walton 55439869d1 MGR: Load missing icon sizes for High DPI systems on Windows. 2014-02-23 23:20:27 -05:00
Rom Walton 7471b381f7 client & manager: Update icons for all client-side components. (v4) 2014-02-23 23:12:30 -05:00
Rom Walton aa7af4c966 client & manager: Update icons for all client-side components. (v3b) 2014-02-22 20:04:40 -05:00
Charlie Fenton 12c25457df MGR: Fix compiler error on Mac. 2014-02-20 00:20:59 -08:00
David Anderson 486ceec90e Manager: the attach_project GUI RPC was using the web RPC URL; it needs to use the master URL 2014-02-19 23:54:52 -08:00
Rom Walton 062839a431 MGR: wxSystemOptions::GetMetric doesn't appear to be implemented on the Mac, so hard code the desired icon size to 16x16 for the menu bar. 2014-02-19 10:19:24 -05:00
Rom Walton a14f17bf9f MGR: Fix the calls to SetDefault() for CSkinAdvanced on Mac and Linux. 2014-02-18 20:44:11 -05:00
Rom Walton 0533f82d4a MGR: Fix how we pass the ISO language code to the CC.
Using mb_str() can be problematic if you do not reuse the pointer right away, if the wxString is used in any other way between when you extract the pointer to the data and the data itself the reference is freed and the pointer can end up pointing to something else entirely.
2014-02-18 00:36:03 -05:00
Rom Walton 36fce3f9db client & manager: Update icons for all client-side components. (v2) 2014-02-17 16:20:29 -05:00
Rom Walton da3ac5c72a MGR: If the desired icon size is missing use the next higher or lower one that is available. 2014-02-14 16:18:18 -05:00
Rom Walton 95a45dee5a client & manager: Update icons for all client-side components. 2014-02-14 16:05:42 -05:00
Charlie Fenton 3c7dc5d3c1 MGR: Possible fix for excess CPU usage when Manager window is closed / hidden
- I think this is safe, but it needs testing to ensure it has no adverse side effects
2014-02-14 02:50:46 -08:00
Rom Walton e528e9f723 MGR: Commit new icon templates from Jacob Klein. 2014-02-13 21:39:55 -05:00
Charlie Fenton a3dd54dd46 Mac: fixes to building and linking wxCocoa-3.0.0
- Ensure that Debug build of Manager uses Debug build of wxWidgets, and Release build of manager uses Release build of wxWidgets.
 - Ensure that wxWidgets is built to use UTF-8 encoding on Mac, to match Mac manager.
2014-02-13 05:59:10 -08:00
David Anderson 36460bc288 Compile fixes for Ubuntu 2014-02-06 12:17:28 -08:00
David Anderson 8934f46d88 translations, message tweak 2014-02-02 00:18:20 -08:00
Rom Walton f88dcb7754 MGR: If an account manager is specified via an installer, skip displaying the attach wizard. 2014-01-31 15:33:15 -05:00
Charlie Fenton ce346b5133 MGR: Work around apparent wxCocoa 3.0 bugs in Select Computer dialog on Mac 2014-01-30 05:08:29 -08:00
Rom Walton ecb7fbea42 MGR: Use wxDir instead of wxFile to check for the directories existence. 2014-01-28 22:06:04 -05:00
Rom Walton 41a8b26117 MGR: If the DATADIR registry entry is missing, check to see if the data directory exists at the default location. If so, use it over the current directory. 2014-01-28 21:54:43 -05:00
David Anderson c4f4421ff0 client/manager/server: use HTTPS for web RPCs if possible
The web RPCs done by the client during project attach
(lookup_account, create_account)
have an email address and password hash in their request.
Network sniffers could potentially see these,
so we should use HTTPS for these RPCs if possible.
However, not all BOINC projects have SSL-enabled web servers.
So I did the following:

- Change get_project_config.php to return an additional
  <web_rpc_url_base> element.
  This is SECURE_URL_BASE (if specified in the project's
  project.inc config file) or, if not, the master URL.
- This new element is parsed into the PROJECT_CONFIG structure.
- In calls to create_account and lookup_account,
  the Manager uses PROJECT_CONFIG::web_rpc_url_base
  if it's available, else the master URL.

So, the new Manager/client uses HTTPS for RPCs to projects
that have updated their get_project_config.php,
and specify a SECURE_URL_BASE with https:// prefix.

Android note: I added code to parse the new config element,
but didn't change the higher-level code;
Joachim will need to do this.
2014-01-28 13:25:59 -08:00
Rom Walton 3dbe238996 client & manager: Convert several files to UTF-8 encoding. BOINCBaseView.cpp needed to be converted on a Windows machine to properly handle the original encoding. 2014-01-28 15:29:59 -05:00
Charlie Fenton 0bbaf7285e MGR: scroll Event Log to bottom when switching from “Show only this project” to “Show all messages” or vice-versa 2014-01-28 04:37:29 -08:00
Charlie Fenton 8cebb0d6ac MGR: message tweaks 2014-01-22 03:41:52 -08:00
Rom Walton 4e2fb97c16 MGR: Save event log state information before OS GUI animation effects get a hold of it.
Attempting to save state in the destructor leads to funky values because the animations have completed and the destructor is called from an idle loop garbage collector.
2014-01-15 10:31:07 -05:00
David Anderson 3aa9ae0e16 Manager: display notices in Helvetica font; message tweak 2014-01-14 23:30:08 -08:00