Commit Graph

337 Commits

Author SHA1 Message Date
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
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 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
Charlie Fenton 45ec33f653 MGR: Revert my changes of 18 March to Mac Task Bar Icon; always call the same instance of CTaskBarIcon::SetIcon()
svn path=/trunk/boinc/; revision=25523
2012-03-31 12:34:43 +00:00
Charlie Fenton 49fda2e686 MGR: Fix a Mac-only bug which sometimes failed to show the snooze icon
svn path=/trunk/boinc/; revision=25443
2012-03-18 12:35:09 +00:00
Charlie Fenton d8bff2cb64 MGR: Fix a Mac-only bug which showed Event Log if About BOINC is selected from task bar menu when BOINC is hidden
svn path=/trunk/boinc/; revision=25281
2012-02-17 13:59:57 +00:00
Charlie Fenton 9da40e98b3 MGR: On Mac, ensure any modal dialog remains in front when Manager is activated
svn path=/trunk/boinc/; revision=25240
2012-02-11 08:44:48 +00:00
Rom Walton 68ccd1e611 - MGR: Tweak the z-order of BOINC Manager owned windows a little bit.
Image a case where BOINC Manager and the BOINC Manager event log
        live side-by-side or only slightly overlapped, and the user wants
        to use a full screen/maximized window.  If the bring the BOINC
        manager window back into focus while that app is still running
        make sure the event log comes forward as well.  The event log
        should appear behind the main window in the case they are
        overlapped.
        
    clientgui/
        BOINCGUIApp.cpp, .h

svn path=/trunk/boinc/; revision=25129
2012-01-23 19:30:51 +00:00
Charlie Fenton ecf6c103a3 Mac: In permissions error alert: show branded name and path to bad file or subdirectory
svn path=/trunk/boinc/; revision=25082
2012-01-17 10:37:38 +00:00
Charlie Fenton 52d06bce98 Mac: In permissions error alert: show branded name and path to bad file or subdirectory
svn path=/trunk/boinc/; revision=25081
2012-01-17 09:38:32 +00:00
Charlie Fenton 3b50e9d9d5 MGR: in Simple View, localize institution, science area and description
svn path=/trunk/boinc/; revision=24815
2011-12-16 10:27:30 +00:00
Charlie Fenton 519a5145cd Limit change of 9 November to only Debug builds for "-NSDocumentRevisionsDebugMode=YES" command line arg
svn path=/trunk/boinc/; revision=24597
2011-11-15 02:06:18 +00:00
Charlie Fenton 248c9e8bc7 MGR & client: On Mac, to work around bug in XCode 4.2, ignore command line arg "-NSDocumentRevisionsDebugMode=YES"
svn path=/trunk/boinc/; revision=24575
2011-11-10 22:53:12 +00:00
Charlie Fenton b0f667561e Mgr: Bug fix
svn path=/trunk/boinc/; revision=24538
2011-11-07 10:57:06 +00:00
Rom Walton 687195e7f0 Quick Updates
svn path=/trunk/boinc/; revision=24510
2011-11-03 02:35:04 +00:00
Rom Walton afb727eba3 - Remove dead code related to v5 graphics applications from the
client software.
    
    client/
        boinc_cmd.cpp
    clientgui/
        AsyncRPC.cpp, .h
        BOINCGUIApp.cpp, .h
        MainDocument.cpp
    clientgui/gtk/
        taskbarex.cpp
    clientscr/
        screensaver.cpp
    lib/
        gui_rpc_client.h
        gui_rpc_client_ops.cpp
    win_build/
        win-config.h

svn path=/trunk/boinc/; revision=24398
2011-10-14 19:02:43 +00:00
Rom Walton f93c8d4c65 - MGR: Remove code that blocks the switch to simple view when an
accessibility aid is running.
        
    clientgui/
        BOINCGUIApp.cpp
        AdvancedFrame.cpp

svn path=/trunk/boinc/; revision=24397
2011-10-14 05:03:48 +00:00
David Anderson b16f603a8a - client (and API and manager): change the data structure
used for system process info
    Old: vector of PROCINFO.
        Descendants of a process were found by recursively
        iterating through the vector.
        Operations are O(n)
    New: map of (id, PROCINFO),
        and each PROCINFO has a vector of its children.
        Operations are O(log(n))
    Also combined Mac/Win/Linux variants of code that
    was essentially the same.


svn path=/trunk/boinc/; revision=24117
2011-09-02 17:45:29 +00:00
Charlie Fenton 3d0d724d56 MGR: Event Log menu item restores Event Log when Minimized
svn path=/trunk/boinc/; revision=23701
2011-06-09 09:25:04 +00:00
Charlie Fenton 9b39d53bbb MGR: Rework exit dialog and client shutdown logic for second Manager instance
svn path=/trunk/boinc/; revision=23676
2011-06-08 10:09:36 +00:00
Charlie Fenton 8e701831d1 MGR: Fix shutting down of Client on Linux
svn path=/trunk/boinc/; revision=23598
2011-05-25 11:15:39 +00:00
Charlie Fenton b824421599 MGR: Fix shutting down of Client on Linux
svn path=/trunk/boinc/; revision=23597
2011-05-25 11:13:20 +00:00
Charlie Fenton 800f78f52f MGR: Remove from Skin Manager items no longer used by SimpleGUI
svn path=/trunk/boinc/; revision=23211
2011-03-10 10:25:54 +00:00
Charlie Fenton bf9640859b MGR: Remove the old SimpleGUi from the projects
svn path=/trunk/boinc/; revision=23139
2011-03-03 11:55:16 +00:00
Rom Walton 701ba814ff - MGR: Turn -boincargs into a string instead of an option.
clientgui/
        BOINCGUIApp.cpp

svn path=/trunk/boinc/; revision=23135
2011-03-02 19:41:42 +00:00
Charlie Fenton d73d785dd9 MGR: Eliminate unnecessary #ifdef
svn path=/trunk/boinc/; revision=22994
2011-02-04 00:13:48 +00:00
Charlie Fenton bf789a23db Add new Simple GUI
svn path=/trunk/boinc/; revision=22948
2011-01-27 14:36:49 +00:00
Rom Walton 33ea737f0b - MGR(WIN): While it is a perfectly valid thing to use FindWindow() and
ShowWindow() on an application frame to restore an application from
        a minimized state or a hidden state on Windows(75% of the UI test 
        automation would fail at Microsoft without this ability), it appeartly
        isn't for other platforms.  wxWidgets is or appears to be tracking window
        state internally, which leads to problems when the OS restores the window
        and the rest of the framework doesn't know about that change in state.
        Certain window events were being ignored (like WM_CLOSE, menu selection
        events, etc.). So replace the previous mechinism for bringing an existing
        instance of the BOINC Manager to the foreground by creating a new global
        window message which is tracked by the system tray icon.  When the new
        global message is fired make sure the CBOINCGUIApp::SetActiveGUI() function
        is called to restore the window state which in turn updates all the internal
        framework data structures.
        
    clientgui/
        BOINCGUIApp.cpp
    clientgui/
        BOINCTaskBar.cpp, .h
    clientgui/msw/
        taskbarex.cpp, .h

svn path=/trunk/boinc/; revision=22547
2010-10-18 19:21:46 +00:00
Charlie Fenton 70936974cf MGR: Don't require --multiple arg to launch a new instance if both --namehost and --password args are specified
svn path=/trunk/boinc/; revision=22520
2010-10-15 02:07:39 +00:00
Rom Walton 5f7f2a8bcd - MGR: Complete above changes for the Mac
clientgui/
        BOINCGUIApp.cpp, .h
        MainDocument.cpp

svn path=/trunk/boinc/; revision=22506
2010-10-14 19:37:13 +00:00
Rom Walton f204e817f6 - MGR: Check for a duplicate instance much earlier in the initialization
cycle, before any window or document creation.  Prevents rapid window
        creation and then destruction.
        
    clientgui/
        BOINCGUIApp.cpp, .h

svn path=/trunk/boinc/; revision=22504
2010-10-14 18:16:24 +00:00
Rom Walton 8a79417f19 - Win/Linux: Implement the launch new manager functionality for Windows
and Linux.
        
    clientgui/
        AdvancedFrame.cpp
        BOINCGUIApp.cpp, .h
    lib/
        util.h

svn path=/trunk/boinc/; revision=22497
2010-10-13 21:02:42 +00:00
Charlie Fenton 0568d761e9 MGR: Add command-line argument --multiple or -m to allow running multiple instances of BOINC Manager; add "Launch another BOINC Manager" menu item to Advanced menu
svn path=/trunk/boinc/; revision=22451
2010-10-06 11:13:07 +00:00
Rom Walton be8fe4877d - MGR: Make the new BOINC skin the default skin.
clientgui/
        BOINCGUIApp.cpp
        SkinManager.cpp, .h
    clientgui/skins/BOINC/graphic/
        <Various Files>
    clientgui/skins/BOINC/
        skin.xml
    clientgui/skins/People for a Smarter Planet/
        skin.xml
    win_build/
        boincmgr.vcproj

svn path=/trunk/boinc/; revision=22415
2010-09-28 19:23:57 +00:00
Charlie Fenton 7c032fe498 MGR: Further refinements to Client shutdown logic on Manager Exit
svn path=/trunk/boinc/; revision=22287
2010-08-24 01:45:12 +00:00
Charlie Fenton 4f492fe41a MGR: if another instance of Manager is running show Select Computer dialog with extra text; exit Manager if user cancels
svn path=/trunk/boinc/; revision=22186
2010-08-11 12:18:07 +00:00
Charlie Fenton 8e5a2910bb MGR: Add command-line parameters for automatic connection to remote host; If currently connected host name is empty string, don't autorestart local client
svn path=/trunk/boinc/; revision=22161
2010-08-07 06:48:25 +00:00
Rom Walton d72472ce01 - MGR: Remove EVT_END_SESSION event handler for now. It was causing a
recursive call to itself on shutdown thereby halting the Windows
        shutdown procedure on Windows XP and older systems. It would
        eventually crash the process with a stack overflow error.
        
    clientgui/
        BOINCGUIApp.cpp, .h

svn path=/trunk/boinc/; revision=22137
2010-08-05 16:42:55 +00:00
Charlie Fenton b93f426966 MGR: Fix a bug that hid the Event Log when switching between Advanced and Simple Views
svn path=/trunk/boinc/; revision=22079
2010-07-30 07:30:11 +00:00
Charlie Fenton fe7ac49c42 MGR: if Event Log was open, show it _behind_ main window when "opening" Manager after it was hidden
svn path=/trunk/boinc/; revision=22055
2010-07-24 00:54:10 +00:00