Commit Graph

395 Commits

Author SHA1 Message Date
David Anderson 28e18f6b8d Manager, client: use WxWidgets functions for number formatting
Turns out WxWidgets has functions for localized number formatting.
This was added in 2.9 so we weren't able to use it last time I checked.

Remove our own number-formatting code.
Don't do localized number formatting in client.
2015-09-22 11:22:07 -07:00
David Anderson 787225d5d0 Manager: use Wx interfaces for getting number formatting chars 2015-09-17 13:58:40 -07:00
Vitalii Koshura 2fda7c4cd3 Fix issue #79: Add commandline option and option to preferences dialog. 2015-07-30 01:21:04 +03:00
Rom Walton fdb166067b MGR: Remove wxWidgets 2.8 language code conversion functionality. We have been using wxWidgets 3.x for over two years now. 2015-05-26 11:21:57 -04:00
Charlie Fenton 2ce6da11a5 MGR: fix a bug in my last commit (e6607a6) in Linux when a modal dialog is open which prevented bringing bringing the modal dialog with the main window forward on top of Event Log. (Linux allows the Event Log to be brought forward and made active even if we have a modal dialog displayed (associated with our main frame.) 2015-01-21 07:41:02 -08:00
Charlie Fenton e6607a6340 MGR: work around a Linux bug in wxWidgets which prevents bringing the main window forward on top of Event Log (or any modeless dialog.)
- On all platforms, preserve Z-order of main window and Event Log when hiding / showing or deactivating / activating Manager.
2015-01-16 03:22:10 -08:00
Charlie Fenton 13aa32baa2 Mac Installer & MGR: delete BOINC Manager's wxSingleInstanceChecker lock file in case wxSingleInstanceChecker failed to delete it (such as due to a crash.) 2014-09-08 03:59:35 -07:00
Rom Walton 5fc1116f33 MGR: On Windows Vista and newer, let the service control manager shutdown the core client to prevent crash dialogs from appearing on some peoples systems when Windows is shutting down. 2014-08-18 13:17:15 -04:00
Rom Walton df48d6cae1 MGR: Language Codes 0 and 1 are special cased wxWidgets, for both cases use the default language. 2014-06-25 16:49:28 -04:00
Rom Walton c48332d4bb MGR: Convert wxWidgets 2.8 language codes into ISO standard language codes before use. 2014-06-24 13:45:53 -04:00
Rom Walton 77ad8427d2 MGR: Reset everybody's language selection back to the default OS UI locale, in the future use the ISO language code to determine which locale to use for the manager. 2014-06-18 11:14:29 -04:00
Charlie Fenton 526f2d4524 MGR: disable all wxWidgets debugging support in release builds on Mac (asserts. logging, etc.).
Remove Manager code for writing asserts to log files; it is no longer used since wxASSERT() is now disabled for all platforms.
2014-05-29 16:12:19 -07:00
Rom Walton 1bbc5e96e2 client & MGR: On Windows, handle expansion of environment variables in the registry value that stores DATADIR. 2014-05-06 11:28:47 -04:00
Charlie Fenton 41026f89e0 MGR: Simplify logic introduced in my commit 0f68132; start replacing deprecated Carbon APIs with Cocoa code. 2014-03-15 04:56:14 -07:00
Charlie Fenton 305f4f3e64 MGR: Properly handle opening Event Log after login on Mac 2014-03-14 03:48:25 -07:00
Charlie Fenton 7824d57af3 MGR: Fix bugs in launching hidden on Mac OS 10.6 and more simplification of Mac code for wxCocoa 3.0 2014-03-13 06:39:00 -07:00
Charlie Fenton 8a62446432 MGR: On Mac, fix showing of windows when activated after login by means other than "Open" menu item from task bar (Dock or menu bar icon) 2014-03-11 06:54:28 -07:00
Rom Walton 09250aeebb MGR: Treat asserts like other messages to be logged, include date/time as well as thread id. 2014-03-07 15:31:49 -05:00
Charlie Fenton d4292370e3 MGR: Fixes for fast user switching support
- Fix a crash bug which prevented "Launch another BOINC Manager" from working
 - Fix compiler warnings of possible buffer overflow due to incorrect calls to strncat()
 - Adjust directories for per-user files on Macintosh
2014-03-07 00:30:48 -08:00
Rom Walton 2f83235e0c LIB: Introduce the notion of per-user account log files. Setup the manager, tray applet, and screen saver to use per-user account log files. Technically the default screen saver should be as well.
Log Locations:
WIN   : %APPDATA%\BOINC
MAC   : $(HOME)/Library/Logs/BOINC
Linux : $(HOME)/.BOINC
2014-03-06 23:02:04 -05:00
Rom Walton 5693eae24b MGR: Fix single instance detection so that it is compatible with Fast User Switching on Windows and Mac. We are now using wxSingleInstanceChecker which should be compatible on all platforms. 2014-03-06 14:47:00 -05:00
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 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 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 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 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
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 95a45dee5a client & manager: Update icons for all client-side components. 2014-02-14 16:05:42 -05: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
Rom Walton 9b2a93a8fb MGR: Fix which icon is displayed in the system tray when BOINC is running. ICO files need to be created for the suspended and disconnected states. XPM files will look bad in high DPI environments. 2014-01-13 13:55:16 -05:00
Charlie Fenton 5c9e012d5b MGR: Prevent zero-size window in a rare situation where registry values have accidentally been set to zero 2013-12-10 02:48:49 -08:00
David Anderson 8f7e94ec5d Client and Manager: make notices translatable
- Add a GUI RPC ("set_language") that lets the Manager communicate
  the user's selected language code to the client at startup.
- The client stores the language code in the client state file
- The client appends a "lang=X" GET argument to the URLs from
  which notices are fetched.
- The next steps (not done) are 1) to change the get_notices.php
  script to parse the argument and do translation, and
  2) extend our Pootle system to allow volunteer translation
  of notices by all projects.
2013-12-03 10:47:56 -08:00
Rom Walton 98954ac572 MGR: Bug fix to my previous commit, initialize string after we initialize the wxLocale object with the proper locale information. 2013-12-02 10:01:44 -05:00
Rom Walton 7a4d5fafee MGR: Store the ISO language ID for future use.
Usage: wxString strLang = wxGetApp().GetISOLanguageID();
2013-12-01 15:15:43 -05:00
Charlie Fenton 43579ef1a2 Mac: For newer Apple LLVM Compiler, fix warnings about hiding overloaded virtual functions
- Remove obsolete source files
2013-11-20 03:37:35 -08:00
Charlie Fenton 82d7c575a1 MGR: Rewrite Notices (Advanced and Simple Views) to use wxWebView (in progress) 2013-11-11 06:36:30 -08:00
Charlie Fenton d8fdda9f91 MGR: Fix errors from previous merge of master into into charlief/wxwidgets30 branch 2013-10-22 03:56:48 -07:00
Charlie Fenton 5314522ac1 Merge commit '03cc6849c7d32f0028869a581ad03916ceb4d8b5' into charlief/wxwidgets30
# By David Anderson (617) and others
# Via Oliver Bock (56) and others
* commit '03cc6849c7d32f0028869a581ad03916ceb4d8b5': (1943 commits)
  remote job submission: add C++ interface to estimate_batch function
  translation stuff
  locale: Update compiled localization files
  Commit from Pootle Demo by user admin.: 1563 of 2856 strings translated (190 fuzzy).
  Commit from Pootle Demo by user admin.: 2741 of 2859 strings translated (45 fuzzy).
  Commit from Pootle Demo by user admin.: 1097 of 2859 strings translated (154 fuzzy).
  locale: Update compiled localization files
  Commit from Pootle Demo by user admin.: 2831 of 2859 strings translated (1 fuzzy).
  Commit from Pootle Demo by user admin.: 1097 of 2859 strings translated (154 fuzzy).
  Commit from Pootle Demo by user admin.: 3158 of 3183 strings translated (2 fuzzy).
  client: Remove build environment changes that attempted to detect Android, it wasn't needed.
  client: fix Android OS detection
  client: only add the pthread libs if not linking for Android
  android: Bulk import of localization text
  android: Bulk import of localization text
  locale: Update compiled localization files
  Commit from Pootle Demo by user admin.: 2817 of 2859 strings translated (4 fuzzy).
  Commit from Pootle Demo by user admin.: 2830 of 2859 strings translated (1 fuzzy).
  locale: Update compiled localization files
  Commit from Pootle Demo by user admin.: 2741 of 2859 strings translated (95 fuzzy).
  ...

Conflicts:
	checkin_notes
	clientgui/AsyncRPC.cpp
	clientgui/BOINCGUIApp.cpp
	clientgui/DlgEventLog.cpp
	clientgui/DlgEventLogListCtrl.cpp
	clientgui/DlgEventLogListCtrl.h
	clientgui/MainDocument.cpp
	clientgui/NoticeListCtrl.cpp
	clientgui/mac/MacBitmapComboBox.cpp
	clientgui/mac/SetVersion.cpp
	clientgui/mac/templates/SystemMenu-Info.plist
	clientgui/sg_BoincSimpleFrame.cpp
	mac_build/boinc.xcodeproj/project.pbxproj
	win_build/example_app_multi_thread.vcproj
	win_build/gr_boinc_ss.vcproj
	win_build/sleeper.vcproj
	win_build/uc2.vcproj
	win_build/uc2_graphics.vcproj
	win_build/vboxwrapper.vcproj
	win_build/wrapper.vcproj
2013-10-22 03:53:45 -07:00