Commit Graph

374 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 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
Charlie Fenton 8f3a16b5f2 MGR: Mac updates for wxWidgets 2.9.5 (wxCocoa)
- Code cleanup
- Correct behavior when automatically running Project or Account Manager Wizard
2013-08-27 22:38:00 -07:00
Charlie Fenton 600bd154bf MGR: Mac updates for wxWidgets 2.9.5 (wxCocoa) 2013-08-27 04:42:38 -07:00
Charlie Fenton a9474c0440 MGR: Mac updates for wxWidgets 2.9.5 (wxCocoa)
- Avoid bouncing Dock icon when hiding Manager
- Avoid "ghost" image when closing or hiding windows
2013-08-26 18:28:04 -07:00
Charlie Fenton 3eb24b1ee1 MGR: Mac updates for wxWidgets 2.9.5 (wxCocoa) 2013-08-23 05:02:06 -07:00
Charlie Fenton af5cc95fc7 MGR: fix permissions error string in stderrgui.txt 2013-08-03 15:13:55 -07:00
Charlie Fenton 7d372d2803 Fix warnings of class or global variables shadowed by local variables or arguments 2013-07-29 01:31:09 -07:00
David Anderson 846b8c7757 all components: change strcpy() to strlcpy() when possible.
This commit should cover the client and manager code.
2013-06-03 20:24:48 -07:00
Charlie Fenton d171cc0e4c Mgr: clear instance pointer after delete 2013-04-30 05:55:14 -07:00
Charlie Fenton 6efb00118c Mgr: Flush Manager settings to Windows Registry or user prefs when selecting a different skin 2013-04-30 05:44:55 -07:00
Charlie Fenton 66e61912c9 Mgr: Flush Manager settings to Windows Registry or user prefs when closing Options dialog 2013-04-30 05:18:19 -07:00
Charlie Fenton c5368a62d9 Mgr: Flush Manager settings to Windows Registry or user prefs when practical to do so 2013-04-30 04:35:45 -07:00
Charlie Fenton 0562a88619 Fix file permissions 2013-04-24 04:38:22 -07:00
Charlie Fenton d7633f5040 MGR: bug fix - save settings when Windows is shut down
Work around a bug in wxWidgets 2.8.x which fails to call OnExit() when Windows is shut down, causing any changes to Manager settings to be lost.
2013-04-24 04:33:07 -07:00
Charlie Fenton a81dc2d18c Mac: Fix Quit command in Simple View and a crash bug with Quit AppleEvent 2013-03-06 16:14:17 +01:00
Rom Walton c8f165b7e1 MGR: Somehow we are receiving an WM_ACTIVATEAPP event before m_pFrame has been populated on Windows 8. If m_pFrame is NULL, ignore the event. 2013-03-05 13:42:00 +01:00
Charlie Fenton 2a2c4b0bdc Fix file permissions 2013-03-04 15:23:37 +01:00
Charlie Fenton 1561c35146 Mgr: Fix Windows hangs and simplify code for notices display 2013-03-04 15:16:59 +01:00
Rom Walton 243dc79b52 wxWidgets 2.9/3.0 changes 2013-02-04 13:03:49 -05:00
Rom Walton 4df017de3c - MGR: We don't save Simple View's width & height since it's
window is not resizable, so don't try to read them back.

svn path=/trunk/boinc/; revision=26153
2012-10-15 19:17:13 +00:00
Charlie Fenton c251286db5 MGR: Eliminate QuickDraw calls for OS 10.8 compatibility
svn path=/trunk/boinc/; revision=25667
2012-05-10 08:56:58 +00:00
Rom Walton b1c957d5b6 - MGR: Show() does not restore the window state from a minimized state. Use
maximize(false) to handle that situation.
        
    clientgui/
        BOINCBaseFrame.cpp
        BOINCGUIApp.cpp

svn path=/trunk/boinc/; revision=25588
2012-04-20 21:08:21 +00:00