Commit Graph

186 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 26f92fcaf1 Manager: fix comma-separated display of >32 bit numbers
VS apparently requires "long long" to get 64 bits.

Also: convert various floats to double in the Manager.
BOINC shouldn't use floats anywhere.  Always use doubles.
2015-09-07 01:03:54 -07:00
David Anderson 7f91596fae Manager, client: have comma_print() return a std::string, avoid static buffer problem 2015-08-27 15:05:56 -07:00
David Anderson d10bf89a25 Manager and client: print numbers with thousands separators in various places 2015-08-26 12:50:11 -07:00
David Anderson 6613560224 Manager: display total credit with thousands separators 2015-08-11 14:47:35 -07:00
David Anderson 059bb73dd8 Manager: string tweak 2015-06-03 11:00:39 -07:00
David Anderson 6b064b57e6 Manager: string tweak
Translatable strings shouldn't have spaces at the end.
This is one case - should fix all of them.
2015-05-29 11:05:11 -07:00
David Anderson 31591a8c81 Manager: show total credit as integer. Code cleanup 2015-05-29 10:58:31 -07:00
Charlie Fenton b1332ad67c MGR: Fix some crash bugs in the code to hide or rearrange columns which can occur when changing locale to a different language. 2015-05-01 03:20:05 -07:00
Charlie Fenton 54bbac5c4f MGR: Fix some crash bugs in the code to hide or rearrange columns which can occur when changing locale to a different language. 2015-04-30 03:39:59 -07:00
Charlie Fenton 9ec336e137 MGR: Remove temporary testing code. 2014-12-14 21:54:51 -08:00
Charlie Fenton a813abf863 MGR: Allow hiding some columns by default; add comments; remove unused code. 2014-12-14 21:47:37 -08:00
Charlie Fenton fc968249c3 MGR: Allow user to select which list columns to show or hide in Projects, Tasks and Transfers tabs.
- New dialog also allows restoring column configurations to defaults.
2014-12-11 06:18:47 -08:00
Charlie Fenton bdc530b0f6 MGR: Consolidate code to change column order. Add function to restore default column order. 2014-12-05 04:37:07 -08:00
Charlie Fenton 2679e13605 MGR: Allow user to change order of columns in Projects, Tasks and Transfers tabs (currently implemented by wxWidgets only for MS Windows.) 2014-12-04 06:01:15 -08:00
Charlie Fenton 1613aeaed6 MGR: Fix typo and comments 2014-06-24 20:15:49 -07:00
Charlie Fenton 36ab4dcae7 MGR: Fix typos in my commit 70639a7 for using EVT_LIST_CACHE_HINT instead of EVT_LIST_ITEM_SELECTED or EVT_LIST_ITEM_DESELECTED to immediately detect selection changes in generic wxListCtrl for updating task control panels. 2014-06-04 17:43:38 -07:00
Charlie Fenton a39f4f9a18 MGR: add #define USE_LIST_CACHE_HINT to determine which platforms should use on EVT_LIST_CACHE_HINT and which should use EVT_LEFT_DOWN to trigger checking for item selection / deselection in wxListCtrl. This makes it independent of USE_NATIVE_LISTCONTROL. This is an improvement on my commit 70639a7. 2014-05-28 01:52:33 -07:00
Charlie Fenton 70639a738a MGR: Continue fixing detection of list selection and list deselection; It turns out that triggering on EVT_LIST_CACHE_HINT works better on Windows (native wxListCtrl) but mouse click events work better on Mac (generic wxListCtrl.) We still need to determine which is better on Linux. 2014-05-21 20:13:34 -07:00
Charlie Fenton e6279e3ea8 MGR: Continue fixing detection of list selection and list deselection; deselecting by clicking on empty part of list control (below or on its right) does not generate any list events if the selected item has been scrolled out of view, so we must use mouse click events within the wxListCtrl. 2014-05-21 19:11:22 -07:00
Charlie Fenton 51c3b05839 MGR: Simplification and efficiency improvements for list selection, list deselection and updating task panels. 2014-05-21 02:39:34 -07:00
Rom Walton 1fa7573de0 MGR: Remove our list control zebra striping in favor of the wxWidgets version. It bases the background color on the selected theme. 2014-04-05 02:11:48 -04:00
Charlie Fenton 291fb3b74b MGR: Corrections to previous commit 56252e1 2013-11-05 01:37:57 -08:00
Charlie Fenton 56252e11a2 MGR: Immediately update preferences/registry on more changes:
- When Event Log is opened
  - When column widths are changed
2013-11-04 18:11:36 -08:00
Rom Walton aaeadd0a30 boincmgr: patch to change temporaries to long. Fixes# 1226
(From: Alyssa Milburn) Thanks Gianfranco Costamagna
2013-03-07 11:21:45 +01:00
David Anderson 3453ed7814 - manager: fix some compile warnings on Unix 2013-03-05 15:12:52 +01:00
David Anderson 75a7b16421 - client: print smoothed as well as instantaneous WSS
- manager: make RPC reason strings translatable


svn path=/trunk/boinc/; revision=23170
2011-03-06 22:09:51 +00:00
David Anderson 0142788e35 svn path=/trunk/boinc/; revision=22088 2010-08-01 04:27:24 +00:00
David Anderson a0380cbffa svn path=/trunk/boinc/; revision=22087 2010-08-01 04:17:04 +00:00
David Anderson 2bc044bd05 - scheduler: don't resend work if client isn't requesting work
svn path=/trunk/boinc/; revision=21823
2010-06-25 21:38:39 +00:00
David Anderson 9e64a36958 - manager: message tweak
svn path=/trunk/boinc/; revision=21813
2010-06-25 19:06:43 +00:00
David Anderson a62782c910 - manager: if a project has pending trickle up,
show it in the project status


svn path=/trunk/boinc/; revision=21416
2010-05-07 20:41:43 +00:00
David Anderson 86582342a8 - GUI RPC: in the structures used in the C++ interface to GUI RPC,
change various std::string to char[n], to improve performance.

NOTE: std::string should ONLY be used in cases where there is
no a priori limit on string length.
If there's a limit (e.g. because the string originates in
a fixed-size database field) always use char[n].

svn path=/trunk/boinc/; revision=20877
2010-03-12 17:47:17 +00:00
Rom Walton e14e1cad34 - Remove BOINC_RCSID tags from source files, we are doing branching and tagging
properly.
        
    <Various Files>

svn path=/trunk/boinc/; revision=20873
2010-03-12 16:51:57 +00:00
Charlie Fenton 0607e1822a MGR: Make GetCurrentViewPage() indepenedent of tab positons; Always set Periodic RPC timer to 1 second if showing event log; Minor code cleanup from Rom
svn path=/trunk/boinc/; revision=20005
2009-12-22 01:22:11 +00:00
Rom Walton 791040689d - MGR: Remove some old wxWidgets 2.4 cruft for dealing with Hyperlinks.
wxWidgets now natively supports them.
        
    clientgui/
        AccountInfoPage.cpp, .h
        AccountManagerInfoPage.cpp
        AdvancedFrame.cpp
        BOINCBaseFrame.cpp, .h
        BOINCGUI.cst (deleted)
        BOINCGUI.pjd (deleted)
        BOINCTaskBar.cpp
        BOINCWizards.h
        DlgAbout.cpp, .h
        DlgAdvPreferences.cpp
        DlgEventLog.cpp
        hyperlink.cpp, .h (deleted)
        ProjectInfoPage.cpp
        sg_BoincSimpleGUI.cpp
        sg_DlgMessages.cpp
        sg_DlgPreferences.cpp
        sg_ProjectsComponent.cpp
        sg_StatImageLoader.cpp
        stdwx.h
        ViewProjects.cpp
        ViewWork.cpp
        WelcomePage.cpp
        WizardAttachProject.cpp
    win_build/
        boinc_ss.vcproj
        boincmgr.vcproj
        libboinc_staticcrt.vcproj

svn path=/trunk/boinc/; revision=19982
2009-12-19 05:16:41 +00:00
Charlie Fenton 25d96f2e37 Mac MGR: Add accessibility support for disabled users to BOINCListCtrl
svn path=/trunk/boinc/; revision=19388
2009-10-29 11:13:48 +00:00
Rom Walton c6b4bcdbee - MGR: Turn GetViewName into the unlocalized version of the view
name, so the configuration group name is consistant across
        all languages and does not cause conversion issues on
        different platforms where the configuration information
        is treated differently when compiled Unicode vs. ANSI.
        
    clientgui/
        ViewMessages.cpp
        ViewNews.cpp
        ViewProjects.cpp
        ViewResources.cpp
        ViewStatistics.cpp
        ViewTransfers.cpp
        ViewWork.cpp

svn path=/trunk/boinc/; revision=17955
2009-05-01 01:32:26 +00:00
Charlie Fenton ba1efc6014 MGR: Restore m_bForceUpdateSelection logic because it is needed to prevent flicker.
svn path=/trunk/boinc/; revision=16618
2008-12-04 11:39:51 +00:00
Charlie Fenton a12f67047f MGR: Add style wxFULL_REPAINT_ON_RESIZE to Task Pane, remove previous attempts to fix its backgorund erase; remove obsolete m_bForceUpdateSelection logic.
svn path=/trunk/boinc/; revision=16597
2008-12-02 01:24:32 +00:00
Charlie Fenton 0e401b7f8d MGR: Update Tasks panel only when necessary, trying again to fix redraw glitch on Windows; fix Mac Messages tab not getting deselection events due to wxWidgets bug.
svn path=/trunk/boinc/; revision=16587
2008-12-01 09:44:01 +00:00
Charlie Fenton 98b30841a8 Fixes to Rom's refactoring of Manager code
svn path=/trunk/boinc/; revision=16359
2008-10-30 01:55:11 +00:00
Rom Walton 1f1cc48a4c - client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
    - MGR: Have the BaseFrame call a function to determine if the
        selection list should be saved instead of traversing
        the application pointer.  Each view just overrides the function
        returning a true/false value.  We don't have to worry about null
        pointers and the like.
    - MGR: BOINCGUIApp should never need to know how either the views
        work or the document.  Move the code that determines which
        RPCs should be fired into each of the views.  Have the document
        look for it there.
    - MGR: Reduce duplicate code for hiding and showing an application
    - MGR: Move some Windows and Mac specific code into functions
        and streamline the application startup and shutdown rountines.
    - MGR: Move the event processing that was in BOINCGUIApp into the
        BaseFrame.
    - MGR: General cleanup.
    - MGR: Doxygen comments.
    - MGR: Cleanup some warnings.

    client/
        rr_sim.cpp
    clientgui/
        AdvancedFrame.cpp, .h
        AsyncRPC.cpp, .h
        BOINCBaseFrame.cpp, .h
        BOINCBaseView.cpp, .h
        BOINCClientManager.cpp
        BOINCGUIApp.cpp, .h
        BOINCTaskBar.cpp
        MainDocument.cpp, .h
        sg_BoincSimpleGUI.cpp, .h
        ViewProjects.cpp, .h
        ViewTransfers.cpp, .h
        ViewWork.cpp, .h
        WelcomePage.cpp
    win_build/installerv2/
        BOINC.ism
        BOINCx64.ism
    win_build/
        sim.vcproj

svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
Charlie Fenton 33559ae292 MGR: Sort compare functions return false if values are equal
svn path=/trunk/boinc/; revision=16308
2008-10-24 11:24:39 +00:00
Charlie Fenton 160ab76aac MGR: More thorough validity checking to prevent crashes
svn path=/trunk/boinc/; revision=16247
2008-10-21 23:30:59 +00:00
David Anderson 72a24f0404 - manager: fix disk display when talking to pre-6.3 client
svn path=/trunk/boinc/; revision=16242
2008-10-21 17:26:21 +00:00
Charlie Fenton 6143284ad9 MGR: update all resource share percentages when they change.
svn path=/trunk/boinc/; revision=16226
2008-10-17 06:54:05 +00:00
Charlie Fenton 39f17fc77c MGR: Multiple fixes to Async GUI RPCs: Filter events during Please Wait dialog, hide Please Wait dialog when BOINC hidden, use try / catch blocks for all cached list data.
svn path=/trunk/boinc/; revision=16197
2008-10-14 12:35:48 +00:00
Charlie Fenton 8c66c42a7e MGR: Fix crash in Projects:Properties; Always update underlying data when changing tabs, attaching, detaching, forcing refresh, etc.
svn path=/trunk/boinc/; revision=16155
2008-10-08 08:50:18 +00:00
Charlie Fenton ea339fbe66 Add comments
svn path=/trunk/boinc/; revision=16139
2008-10-06 12:01:27 +00:00