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.
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.
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.
Programming styles notes:
- string utility functions shouldn't be members of MainDocument.cpp
- don't overload features into 1 function; use separate functions
- use descriptive names rather than "clean", "sanitize" etc.
- use void for functions that don't return anything
- if you copy and paste code, fix the comments
connection information to the manager
- MGR: Add a "Show VM Console" button for those tasks which
report a remote desktop port number.
client/
app.cpp, .h
app_control.cpp
clientgui/
Events.h
MainDocument.cpp, .h
ViewWork.cpp, .h
lib/
gui_rpc_client.h
gui_rpc_client_ops.cpp
svn path=/trunk/boinc/; revision=25036
and main window are open.
- MGR: Don't replace control characters for regular messages.
clientgui/
BOINCGUIApp.cpp, .h
DlgEventLog.cpp
MainDocument.cpp, .h
NoticeListCtrl.cpp
svn path=/trunk/boinc/; revision=22054
display the messages dialog.
- MGR: The simple GUI wasn't restoring state properly
thereby causing the reminder frequency to be set to
zero and preventing any reminders from being displayed.
- MGR: Rework the notices code so the document doesn't
make any assumtions about the UI.
- MGR: Fix a bug in the Linux notification window code.
Synchronize event behavior with Windows.
clientgui/
AdvancedFrame.cpp, .h
BOINCBaseFrame.cpp
BOINCTaskBar.cpp, .h
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
sg_DlgMessages.cpp
sg_ProjectsComponent.cpp, .h
ViewNotices.cpp
clientgui/gtk/
taskbarex.cpp
svn path=/trunk/boinc/; revision=22040
are now translatable,
using the convention that any substring enclosed in _(" ... ")
should be passed throughh wxGetTranslation() or the equivalent.
- client: when writing messages to stdout, strip out _(...)
- manager: translate strings from client
- scheduler: message tweaks
svn path=/trunk/boinc/; revision=21706
- manager: code reorg. ViewTransfers and DlgItemProperties
both had a long member function to generate a string describing a task.
One of these was out of date.
Replaced these with a single non-member function.
- manager: fixed sizer problem in attach wizard that caused missing word
- client: minor code reorg
svn path=/trunk/boinc/; revision=21412
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
- MGR: When a notification is clicked open up the GUI
and switch to the notification tab in the advanced
view.
- MGR: Reorder tabs
- MGR: Review messages tab
- MGR: cleanup code in various places
clientgui/
AdvancedFrame.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp, .h
DlgEventLog.cpp, .h (Added)
Events.h
MainDocument.cpp, .h
ViewNews.cpp, .h (Deleted)
ViewNotifications.cpp, .h (Added)
win_build/
boincmgr.vcproj
svn path=/trunk/boinc/; revision=19976