Commit Graph

3810 Commits

Author SHA1 Message Date
Vitalii Koshura 44164f3cc0
Fix copyright symbol
This fxes #2493

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-04-30 23:29:15 +03:00
David Anderson 92a8730259
Merge pull request #2459 from AenBleidd/fix_2444_wizard
[Manager] Fix fields populating on 'Add Project' wizard on launch
2018-04-24 20:35:12 -07:00
Vitalii Koshura 7e05377b7c
[Manager] Remove unnecessary extra line and extra space 2018-04-10 13:30:23 +03:00
Vitalii Koshura cdb68aaa00
[Manager] Fix fields populating on 'Add Project' wizard on launch
When opening 'Add Project' wizard it shows next fields empty:
Research area, Organisation, and Web site.
This happens because of EllipseStringIfNeeded() function that truncates the string to 0 symbols because the wizard window was not constructed yet and has undefined size.

This fixes #2444.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-04-09 19:20:31 +03:00
Juha Sointusalo fb16e55293 client: show build not OS platform in messages
The client shows what kind of operating system it has detected in startup log message and elsewhere. This is confusing and not helping in troubleshooting when people expect these messages to describe the client itself.

Change the messages to use client's build platform instead.

Startup log message, output of --version and user agent string should be safe to change without breaking anything. The client still uses OS platform in various places but changing these would break stuff:

- Scheduler request XML. Scheduler expects scheduler_request.platform_name to be OS primary platform.
- client_state.xml. Client writes OS primary platform and alt platforms separately to client_state.xml. The client reads primary platform only to see if it has changed. The client doesn't read alt platforms but some other program might and depends on the platforms being as they are now. Not changing this means the client won't be able to detect when its own platform has changed. OS platform changes are still detected.
- get_state GUI RPC. The client writes primary platform to client_state.platform_name and all platforms, including primary, to client_state.platform. BOINC Manager only reads client_state.platform. As such, client_state.platform_name could be changed to client's build platform but some 3rd party manager might depend on it being OS primary platform.
- time_stats_log. The client writes platform info there. Unclear who uses that information.

Closes #2386.
2018-03-30 11:23:11 +03:00
Juha Sointusalo f97421a735 mgr: remove SET_LOCALE from DlgDiagnosticLogFlags.cpp
SET_LOCALE is no-op when using per-thread locales making SET_LOCALE
unnecessary.

When per-thread locales are not available using SET_LOCALE in
CDlgDiagnosticLogFlags can cause Manager to get stuck to C locale. The
lifetime of two SET_LOCALE objects can be interleaved if log flags are
loaded or saved and an async RPC is launched at the same time. If the
lifetimes are interleaved the first object sets global locale to C. The
second object saves the global locale that was set to C by the first
object. First object restores the global locale correctly. After that
the second object incorrectly restores the global locale to C.
2018-03-28 16:21:33 +03:00
Juha Sointusalo 450f89ec39 lib, mgr: use per-thread locales on Linux
On Linux, Manager sometimes prints timestamps in C locale instead of the
locale user has chosen. This happens when Manager is formatting a
timestamp and at the same time a GUI RPC is in progress. GUI RPCs
temporarily set the global locale to C locale with SET_LOCALE.

Use SET_LOCALE's per-thread locale version and set thread locale in
Manager's RPC thread to fix this.

Also clean up #ifdef mazes in SET_LOCALE and Manager's RPC thread now
that there are HAVE_* macros available. Remove OS X < 10.4 code because
that old OS X versions are not supported any more.

Fixes #2399.
2018-03-28 16:20:15 +03:00
Juha Sointusalo 6e2204c082 build: check for per-thread locale support
Allows fixing and cleaning up per-thread locale support in Manager and
libboinc.

locale.h and xlocale.h were checked for libboinc_graphics. Move
xlocale.h check to correct place and remove locale.h check. locale.h has
been part of C standard library since C89.

The support for per-thread locales cannot be reliably inferred from the
existence of different headers. Some systems declare uselocale() in
locale.h, others in xlocale.h and xlocale.h is no longer included in GNU
libc. Instead explicitly check for uselocale() and
_configthreadlocale().

Add uselocale() check result to Mac config.h so that the #ifdef mazes
can be simplified.

Also correct quoting in AC_CHECK_FUNCS and AC_CHECK_HEADERS calls.
2018-03-28 16:07:54 +03:00
Vitalii Koshura a9d5b8ef1a
Fix copyright year
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-02-26 16:49:02 +02:00
Vitalii Koshura d5e8ab2c64
[Manager] Fix copyright year in About window
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-02-23 03:20:51 +02:00
Vitalii Koshura 0fd1d4524c
Merge pull request #2194 from JuhaSointusalo/mgr-fix-eventlog-colors
Manager: Fix eventlog colors

This fixes #1083
2018-02-05 22:01:30 +02:00
Juha Sointusalo b0f6783c94 mgr(gtk): use correct clipboard when copying text
X11 has two clipboards, CLIPBOARD and PRIMARY. CLIPBOARD is used for
copy-paste operations in the same manner as in other GUI environments.
PRIMARY is used for text selections. Any selected text is automatically
copied to PRIMARY and can be pasted with mouse middle click.

wxClipboard is used to access both clipboard types. wxClipboard
remembers which clipboard was last used and continues to use it until it
is told otherwise. So when user selects text somewhere in Manager
wxClipboard is set to access PRIMARY. When user later clicks Copy button
in Properties dialog or in Event Log the text goes to PRIMARY against
user's expectations.

Fix this by telling wxClipboard to use CLIPBOARD in Properties dialog
and Event Log Copy buttons.
2018-02-02 23:02:11 +02:00
Christian Beer 818a40f4d5 Manager: remove extra whitespace 2018-01-29 21:08:50 +01:00
Christian Beer 27bb3c9e89 Manager: support wxWidgets without webview component
This is a combination of contributions by Jan Engelhardt (#2093) and Olly Betts (https://anonscm.debian.org/cgit/pkg-boinc/boinc.git/commit/?id=60f4cd232522db0750b2dff56bd327dc44a51534) to make the Manager work without webview support. This is mainly needed for Linux distributions that are migrating to a newer webkitgtk library.
2018-01-29 21:08:50 +01:00
Vitalii Koshura 8e3ab601f1 Manager: Use wxHtmlWindow in DlgItemProperties.
Add font face and color attributes

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-01-29 21:08:50 +01:00
Vitalii Koshura b07661ef3f Manager: Use wxHtmlWindow in DlgItemProperties.
Use wxHtmlWindow instead of wxWebView.
Handle mouse events to show the correct state of the 'Copy selected' button.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-01-29 21:08:50 +01:00
CharlieFenton 038d274f23
Merge branch 'master' into dpa_autologin_client 2017-12-01 02:17:04 -08:00
Vitalii Koshura af86bc8a54
Manager: Change back 'Forgot your account info?' to 'Forgot your password?'
This reverts #2197 pull request after the discussion on #1049.
Fixes #1049.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-11-21 02:20:32 +02:00
David Anderson a8f8908e7d Manager: don't bother checking for autologin file before showing attach wizard
The way things work now, autologin is completed before
this code is reached (since it follows a GUI RPC)
2017-11-17 02:02:06 -08:00
Charlie Fenton ca920a47bc Manager: remove obsolete comment 2017-11-16 03:02:44 -08:00
Charlie Fenton b8467bb5af Merge branch 'dpa_autologin_client' of https://github.com/BOINC/boinc into dpa_autologin_client
# By David Anderson
# Via David Anderson
* 'dpa_autologin_client' of https://github.com/BOINC/boinc:
  Win installer: don't overwrite project list file.
  login_token_lookup RPC: make it work for account managers too
  Client: make autologin work for account managers as well as projects.
2017-11-16 02:58:01 -08:00
Charlie Fenton 051f9e656c Manager: if client is auto-attaching to a project, increase the delay before displaying the "Communicating with client" dialog from 1.5 seconds to 60 second. This allows for the time the auto-attach may take before GUI RPCs are enabled. But we do display it after 60 seconds a a safety feature, so that the user can exit BOINC if the client hangs. 2017-11-16 02:57:33 -08:00
David Anderson 5c4fea1e7a Client: make autologin work for account managers as well as projects.
The login_token_lookup RPC returns different things in the 2 cases
2017-11-15 22:36:54 -08:00
Kevin Reed 703c4ce1cc
Merge pull request #2207 from BOINC/dpa_autologin_client
client/server/web: add support for streamlined register/download/attach
2017-11-15 13:02:39 -06:00
CharlieFenton 6d1fddf1b3
Merge pull request #2197 from AenBleidd/fix_1049_change_label
Manager: 'Add Project Wizard': Change label from 'Forgot your passwor…
2017-11-15 02:54:40 -08:00
CharlieFenton 2aa9f6eac1
Merge pull request #2196 from AenBleidd/fix_1048_no_next_on_failed_credetials
Manager: 'Add Project Wizard': disable 'Next' button on wrong credent…
2017-11-15 01:56:42 -08:00
David Anderson f052077621 Client: don't handle GUI RPCs until account token lookup RPC is finished.
Also change filename to "account_data.txt"
2017-11-14 16:10:44 -08:00
Kevin Reed 500790f8c7 Merge branch 'master' into dpa_autologin_client 2017-11-14 09:10:46 -06:00
David Anderson a152a1cea4 Manager, simple view: don't show attach wizard on startup if autologin file present 2017-11-13 00:31:19 -08:00
Vitalii Koshura d60e24332e
Manager: Enable 'Back' button when 'Next' is disabled on FailedLogOn page
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-11-07 00:09:29 +02:00
David Anderson bd5e265534 Manager: don't show Attach Wizard at startup if autologin in progress 2017-11-04 17:02:56 -07:00
Vitalii Koshura a6a195e352
Manager: 'Add Project Wizard': Change label from 'Forgot your password?' to 'Forgot your account info?'
This fixes #1049.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-10-29 05:53:53 +02:00
Vitalii Koshura a3951c247d
Manager: 'Add Project Wizard': disable 'Next' button on wrong credentials
Fixes #1048.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-10-29 05:38:50 +02:00
Vitalii Koshura 87ab90e34b
Manager: 'Add Project Wizard': enable 'Cancel' but for non-final steps only
Fixes #1044.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-10-29 04:06:33 +02:00
Juha Sointusalo 9e072c9a6c mgr: adjust Event Log stripe color
On Windows, wxListCtrl has a bug that makes it draw selected unfocused rows with colors used for selected focused rows when the row background color is wxSYS_COLOUR_BTNFACE.

With default color schemes, on Windows XP the list is drawn correctly, but on Windows 10 the (240,240,240) used in stripe color is coincidentally the same as wxSYS_COLOUR_BTNFACE and selected rows are drawn with wrong colors.

Fix this by using the same stripe color that wxWidgets would use by default and that is used in Projects, Tasks and Transfers lists. Future proof the code by including a workaround just in case Windows changes color scheme again. If such color scheme change occurs then the same workaround needs to be added to Projects, Tasks and Transfers lists.

Fixes #1083.
2017-10-28 22:17:28 +03:00
Juha Sointusalo 61476afc04 mgr: remove CDlgEventLogListCtrl::GetBackgroundColour()
Since the method is overridden to be private it isn't callable from outside the class and the method isn't used inside the class either.

And overriding a base class method just to return a constant color isn't very useful when the same effect can be had by, e.g., calling SetBackgroundColour() in class' constructor.

On the other hand, trying to force the background color to white may conflict with the color scheme user has chosen and should not be done.

All in all, remove the code as not useful.

Part of #1083.
2017-10-28 22:16:36 +03:00
Charlie Fenton b6e4995e7c Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:31:49 +02:00
Charlie Fenton ed9737215b Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:27:29 +02:00
Charlie Fenton 0106635756 Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:27:29 +02:00
Charlie Fenton 0a5381789d Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:27:29 +02:00
David Anderson d9e4691ebd Merge pull request #1854 from BOINC/fix_issue-714
Manager: display zero free space in disk tab
2017-10-15 15:45:15 -07:00
Gianfranco Costamagna b023a1dba2 Fix build with new glibc 2.26 * (from Charlie Fenton)
The nonstandard header <xlocale.h> has been removed.
 Most programs should use <locale.h> instead.
 If you have a specific need for the definition of
 locale_t with no other declarations, please
 contact libc-alpha@sourceware.org and explain.
2017-09-07 19:39:13 +02:00
David Anderson 6f5540e750 Merge pull request #2083 from AenBleidd/fix_2044_daily_schedule_for_pr
Manager: fix daily schedules input data check
2017-09-05 12:58:48 +02:00
David Anderson 6dd1e7d7be Merge pull request #2088 from AenBleidd/fix_1033_statusbar_text
Manager: Fix menu item description.
2017-09-05 09:39:41 +02:00
Vitalii Koshura 8efce49a14
Manager: Fix menu item description.
Fix menu item description as requested in #1033.
Also this fixes #770 because now it shows correct branded product link that should be opened.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-09-04 05:00:27 +03:00
Vitalii Koshura dcc49519b8
Manager: fix daily schedules input data check
Fix comment.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-09-01 12:14:59 +03:00
Vitalii Koshura 7b8cfd659f
Manager: fix daily schedules input data check
As requested in #2044: Daily schedules not checking hours input

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-08-31 04:01:30 +03:00
Vitalii Koshura 55d688fb19
Manager: For Statistics graph show values on Y axis with 2 digits after point if these two digits are greater than 0.01 only
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-08-31 00:48:00 +03:00
Vitalii Koshura 975c2d21bc
Manager: For Statistics graph show values on Y axis with 2 digits after point if these two digits are not zero only
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-08-30 07:10:02 +03:00
Vitalii Koshura dd0d62b396
Manager: Change OK button on Advanced Preferences to Save button
Change text labels to remove inconsistency betweeb them and button text as described in #601

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-08-19 04:52:58 +03:00