2005-01-20 23:22:22 +00:00
|
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
|
// Copyright (C) 2005 University of California
|
2004-09-21 01:30:29 +00:00
|
|
|
|
//
|
2005-01-20 23:22:22 +00:00
|
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
2004-09-21 01:30:29 +00:00
|
|
|
|
//
|
2005-01-20 23:22:22 +00:00
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
2004-09-21 01:30:29 +00:00
|
|
|
|
//
|
2005-01-20 23:22:22 +00:00
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
2007-10-09 11:35:47 +00:00
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
|
|
|
#pragma implementation "BOINCBaseView.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "stdwx.h"
|
2004-10-26 01:59:44 +00:00
|
|
|
|
#include "BOINCGUIApp.h"
|
|
|
|
|
#include "MainDocument.h"
|
2004-09-21 01:30:29 +00:00
|
|
|
|
#include "BOINCBaseView.h"
|
|
|
|
|
#include "BOINCTaskCtrl.h"
|
|
|
|
|
#include "BOINCListCtrl.h"
|
2006-01-09 14:03:13 +00:00
|
|
|
|
#include "Events.h"
|
2004-09-22 21:53:07 +00:00
|
|
|
|
|
2004-09-21 01:30:29 +00:00
|
|
|
|
#include "res/boinc.xpm"
|
2008-06-25 13:12:39 +00:00
|
|
|
|
#include "res/sortascending.xpm"
|
|
|
|
|
#include "res/sortdescending.xpm"
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(CBOINCBaseView, wxPanel)
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
CBOINCBaseView::CBOINCBaseView() {}
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-09-06 06:18:36 +00:00
|
|
|
|
CBOINCBaseView::CBOINCBaseView(wxNotebook* pNotebook) :
|
2005-04-21 06:04:26 +00:00
|
|
|
|
wxPanel(pNotebook, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
|
|
|
|
|
{
|
2005-04-27 06:55:28 +00:00
|
|
|
|
wxASSERT(pNotebook);
|
2005-04-21 06:04:26 +00:00
|
|
|
|
|
|
|
|
|
m_bProcessingTaskRenderEvent = false;
|
|
|
|
|
m_bProcessingListRenderEvent = false;
|
|
|
|
|
|
2005-07-22 20:19:58 +00:00
|
|
|
|
m_bForceUpdateSelection = true;
|
2008-03-18 18:19:49 +00:00
|
|
|
|
m_bIgnoreUIEvents = false;
|
2005-07-22 20:19:58 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
//
|
|
|
|
|
// Setup View
|
|
|
|
|
//
|
|
|
|
|
m_pTaskPane = NULL;
|
|
|
|
|
m_pListPane = NULL;
|
2008-06-26 01:25:31 +00:00
|
|
|
|
m_iProgressColumn = -1;
|
|
|
|
|
m_iSortColumn = -1;
|
2008-06-25 13:12:39 +00:00
|
|
|
|
m_SortArrows = NULL;
|
|
|
|
|
|
2005-09-06 06:18:36 +00:00
|
|
|
|
SetName(GetViewName());
|
2005-07-21 09:43:40 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
SetAutoLayout(TRUE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
CBOINCBaseView::CBOINCBaseView(
|
2005-09-06 06:18:36 +00:00
|
|
|
|
wxNotebook* pNotebook, wxWindowID iTaskWindowID, int iTaskWindowFlags, wxWindowID iListWindowID, int iListWindowFlags) :
|
|
|
|
|
wxPanel(pNotebook, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
|
|
|
|
|
{
|
2005-04-27 06:55:28 +00:00
|
|
|
|
wxASSERT(pNotebook);
|
2004-10-26 01:59:44 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
m_bProcessingTaskRenderEvent = false;
|
|
|
|
|
m_bProcessingListRenderEvent = false;
|
2004-10-26 01:59:44 +00:00
|
|
|
|
|
2005-09-30 09:00:50 +00:00
|
|
|
|
m_bForceUpdateSelection = true;
|
2008-03-18 18:19:49 +00:00
|
|
|
|
m_bIgnoreUIEvents = false;
|
2005-09-30 09:00:50 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
//
|
|
|
|
|
// Setup View
|
|
|
|
|
//
|
|
|
|
|
m_pTaskPane = NULL;
|
|
|
|
|
m_pListPane = NULL;
|
2004-12-15 23:08:18 +00:00
|
|
|
|
|
2005-09-06 06:18:36 +00:00
|
|
|
|
SetName(GetViewName());
|
2005-07-21 09:43:40 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
SetAutoLayout(TRUE);
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
wxFlexGridSizer* itemFlexGridSizer = new wxFlexGridSizer(2, 0, 0);
|
2005-04-27 06:55:28 +00:00
|
|
|
|
wxASSERT(itemFlexGridSizer);
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
itemFlexGridSizer->AddGrowableRow(0);
|
|
|
|
|
itemFlexGridSizer->AddGrowableCol(1);
|
|
|
|
|
|
|
|
|
|
m_pTaskPane = new CBOINCTaskCtrl(this, iTaskWindowID, iTaskWindowFlags);
|
2005-04-27 06:55:28 +00:00
|
|
|
|
wxASSERT(m_pTaskPane);
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
m_pListPane = new CBOINCListCtrl(this, iListWindowID, iListWindowFlags);
|
2005-04-27 06:55:28 +00:00
|
|
|
|
wxASSERT(m_pListPane);
|
2008-06-24 10:52:12 +00:00
|
|
|
|
|
2005-04-21 06:04:26 +00:00
|
|
|
|
itemFlexGridSizer->Add(m_pTaskPane, 1, wxGROW|wxALL, 1);
|
|
|
|
|
itemFlexGridSizer->Add(m_pListPane, 1, wxGROW|wxALL, 1);
|
|
|
|
|
|
2005-04-27 06:32:40 +00:00
|
|
|
|
SetSizer(itemFlexGridSizer);
|
|
|
|
|
|
|
|
|
|
Layout();
|
2008-06-24 10:52:12 +00:00
|
|
|
|
|
2008-06-24 11:47:34 +00:00
|
|
|
|
#if USE_NATIVE_LISTCONTROL
|
|
|
|
|
m_pListPane->PushEventHandler(new MyEvtHandler(m_pListPane));
|
2008-06-24 10:52:12 +00:00
|
|
|
|
#else
|
|
|
|
|
(m_pListPane->GetMainWin())->PushEventHandler(new MyEvtHandler(m_pListPane));
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
m_iProgressColumn = -1;
|
2008-06-25 10:38:16 +00:00
|
|
|
|
m_iSortColumn = -1;
|
|
|
|
|
m_bReverseSort = false;
|
2008-06-25 13:12:39 +00:00
|
|
|
|
|
|
|
|
|
m_SortArrows = new wxImageList(16, 16, true);
|
|
|
|
|
m_SortArrows->Add( wxIcon( sortascending_xpm ) );
|
|
|
|
|
m_SortArrows->Add( wxIcon( sortdescending_xpm ) );
|
|
|
|
|
m_pListPane->SetImageList(m_SortArrows, wxIMAGE_LIST_SMALL);
|
2004-09-21 01:30:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2008-06-24 10:52:12 +00:00
|
|
|
|
CBOINCBaseView::~CBOINCBaseView() {
|
|
|
|
|
if (m_pListPane) {
|
|
|
|
|
#if USE_NATIVE_LISTCONTROL
|
|
|
|
|
m_pListPane->PopEventHandler(true);
|
|
|
|
|
#else
|
|
|
|
|
(m_pListPane->GetMainWin())->PopEventHandler(true);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
2008-06-25 13:12:39 +00:00
|
|
|
|
if (m_SortArrows) {
|
|
|
|
|
delete m_SortArrows;
|
|
|
|
|
}
|
2008-06-24 10:52:12 +00:00
|
|
|
|
}
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
|
|
|
|
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
|
// The name of the view.
|
2004-09-21 01:30:29 +00:00
|
|
|
|
// If it has not been defined by the view "Undefined" is returned.
|
|
|
|
|
//
|
2005-09-02 21:03:36 +00:00
|
|
|
|
wxString& CBOINCBaseView::GetViewName() {
|
|
|
|
|
static wxString strViewName(wxT("Undefined"));
|
|
|
|
|
return strViewName;
|
2004-09-21 01:30:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
|
// The user friendly name of the view.
|
|
|
|
|
// If it has not been defined by the view "Undefined" is returned.
|
|
|
|
|
//
|
|
|
|
|
wxString& CBOINCBaseView::GetViewDisplayName() {
|
|
|
|
|
static wxString strViewName(wxT("Undefined"));
|
|
|
|
|
return strViewName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2004-09-21 01:30:29 +00:00
|
|
|
|
// The user friendly icon of the view.
|
|
|
|
|
// If it has not been defined by the view the BOINC icon is returned.
|
|
|
|
|
//
|
2005-04-07 07:04:50 +00:00
|
|
|
|
const char** CBOINCBaseView::GetViewIcon() {
|
2005-04-08 16:58:55 +00:00
|
|
|
|
wxASSERT(boinc_xpm);
|
2004-09-21 01:30:29 +00:00
|
|
|
|
return boinc_xpm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2006-12-29 16:35:33 +00:00
|
|
|
|
// The rate at which the view is refreshed.
|
|
|
|
|
// If it has not been defined by the view 1 second is retrned.
|
|
|
|
|
//
|
|
|
|
|
const int CBOINCBaseView::GetViewRefreshRate() {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
bool CBOINCBaseView::FireOnSaveState(wxConfigBase* pConfig) {
|
|
|
|
|
return OnSaveState(pConfig);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
bool CBOINCBaseView::FireOnRestoreState(wxConfigBase* pConfig) {
|
|
|
|
|
return OnRestoreState(pConfig);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-20 22:22:41 +00:00
|
|
|
|
int CBOINCBaseView::GetListRowCount() {
|
|
|
|
|
wxASSERT(m_pListPane);
|
|
|
|
|
return m_pListPane->GetItemCount();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-06-24 10:49:42 +00:00
|
|
|
|
void CBOINCBaseView::FireOnListRender(wxTimerEvent& event) {
|
2005-04-20 22:22:41 +00:00
|
|
|
|
OnListRender(event);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
void CBOINCBaseView::FireOnListSelected(wxListEvent& event) {
|
|
|
|
|
OnListSelected(event);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
void CBOINCBaseView::FireOnListDeselected(wxListEvent& event) {
|
|
|
|
|
OnListDeselected(event);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
wxString CBOINCBaseView::FireOnListGetItemText(long item, long column) const {
|
|
|
|
|
return OnListGetItemText(item, column);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
int CBOINCBaseView::FireOnListGetItemImage(long item) const {
|
|
|
|
|
return OnListGetItemImage(item);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
wxListItemAttr* CBOINCBaseView::FireOnListGetItemAttr(long item) const {
|
|
|
|
|
return OnListGetItemAttr(item);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2006-01-30 23:05:52 +00:00
|
|
|
|
void CBOINCBaseView::OnListRender(wxTimerEvent& event) {
|
2005-04-07 07:04:50 +00:00
|
|
|
|
if (!m_bProcessingListRenderEvent) {
|
2004-10-26 01:59:44 +00:00
|
|
|
|
m_bProcessingListRenderEvent = true;
|
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
wxASSERT(m_pListPane);
|
2004-10-26 01:59:44 +00:00
|
|
|
|
|
2005-04-10 19:01:23 +00:00
|
|
|
|
int iDocCount = GetDocCount();
|
|
|
|
|
int iCacheCount = GetCacheCount();
|
2005-04-07 07:04:50 +00:00
|
|
|
|
if (iDocCount != iCacheCount) {
|
|
|
|
|
if (0 >= iDocCount) {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
EmptyCache();
|
2004-10-26 01:59:44 +00:00
|
|
|
|
m_pListPane->DeleteAllItems();
|
2008-01-30 03:13:57 +00:00
|
|
|
|
} else {
|
2005-04-10 19:01:23 +00:00
|
|
|
|
int iIndex = 0;
|
|
|
|
|
int iReturnValue = -1;
|
2005-04-07 07:04:50 +00:00
|
|
|
|
if (iDocCount > iCacheCount) {
|
|
|
|
|
for (iIndex = 0; iIndex < (iDocCount - iCacheCount); iIndex++
|
|
|
|
|
) {
|
2005-01-06 22:06:35 +00:00
|
|
|
|
iReturnValue = AddCacheElement();
|
2005-04-08 16:58:55 +00:00
|
|
|
|
wxASSERT(!iReturnValue);
|
2004-10-26 01:59:44 +00:00
|
|
|
|
}
|
2005-04-07 07:04:50 +00:00
|
|
|
|
wxASSERT(GetDocCount() == GetCacheCount());
|
|
|
|
|
} else {
|
|
|
|
|
for (iIndex = 0; iIndex < (iCacheCount - iDocCount); iIndex++
|
|
|
|
|
) {
|
2005-01-06 22:06:35 +00:00
|
|
|
|
iReturnValue = RemoveCacheElement();
|
2005-04-08 16:58:55 +00:00
|
|
|
|
wxASSERT(!iReturnValue);
|
2004-10-26 01:59:44 +00:00
|
|
|
|
}
|
2005-04-07 07:04:50 +00:00
|
|
|
|
wxASSERT(GetDocCount() == GetCacheCount());
|
2004-10-26 01:59:44 +00:00
|
|
|
|
}
|
2005-01-06 22:06:35 +00:00
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
m_pListPane->SetItemCount(iDocCount);
|
2004-10-26 01:59:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2004-12-02 21:43:44 +00:00
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
if (iDocCount) {
|
2008-06-25 10:38:16 +00:00
|
|
|
|
SynchronizeCache();
|
2005-04-08 16:58:55 +00:00
|
|
|
|
}
|
2004-12-02 21:43:44 +00:00
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
if (_EnsureLastItemVisible() && (iDocCount != iCacheCount)) {
|
2005-04-07 07:04:50 +00:00
|
|
|
|
m_pListPane->EnsureVisible(iDocCount - 1);
|
2005-04-08 16:58:55 +00:00
|
|
|
|
}
|
2004-12-08 23:13:20 +00:00
|
|
|
|
|
2008-06-27 04:34:47 +00:00
|
|
|
|
if (m_pListPane->m_bIsSingleSelection) {
|
|
|
|
|
// If no item has been selected yet, select the first item.
|
2006-01-31 12:21:34 +00:00
|
|
|
|
#ifdef __WXMSW__
|
2008-06-27 04:34:47 +00:00
|
|
|
|
if ((m_pListPane->GetSelectedItemCount() == 0) &&
|
|
|
|
|
(m_pListPane->GetItemCount() >= 1)) {
|
2006-01-30 23:05:52 +00:00
|
|
|
|
|
2008-06-27 04:34:47 +00:00
|
|
|
|
long desiredstate = wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED;
|
|
|
|
|
m_pListPane->SetItemState(0, desiredstate, desiredstate);
|
|
|
|
|
}
|
2006-01-31 12:21:34 +00:00
|
|
|
|
#else
|
2008-06-27 04:34:47 +00:00
|
|
|
|
if ((m_pListPane->GetFirstSelected() < 0) &&
|
|
|
|
|
(m_pListPane->GetItemCount() >= 1))
|
|
|
|
|
m_pListPane->SetItemState(0, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED,
|
|
|
|
|
wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED);
|
2006-01-31 12:21:34 +00:00
|
|
|
|
#endif
|
2008-06-27 04:34:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
2005-04-29 22:46:03 +00:00
|
|
|
|
UpdateSelection();
|
|
|
|
|
|
2004-10-26 01:59:44 +00:00
|
|
|
|
m_bProcessingListRenderEvent = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
event.Skip();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
bool CBOINCBaseView::OnSaveState(wxConfigBase* pConfig) {
|
2004-09-21 01:30:29 +00:00
|
|
|
|
bool bReturnValue = true;
|
|
|
|
|
|
2005-04-27 06:55:28 +00:00
|
|
|
|
wxASSERT(pConfig);
|
|
|
|
|
wxASSERT(m_pTaskPane);
|
|
|
|
|
wxASSERT(m_pListPane);
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
if (!m_pTaskPane->OnSaveState(pConfig)) {
|
2004-09-21 01:30:29 +00:00
|
|
|
|
bReturnValue = false;
|
2005-04-08 16:58:55 +00:00
|
|
|
|
}
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
if (!m_pListPane->OnSaveState(pConfig)) {
|
2004-09-21 01:30:29 +00:00
|
|
|
|
bReturnValue = false;
|
2005-04-08 16:58:55 +00:00
|
|
|
|
}
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
|
|
|
|
return bReturnValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
bool CBOINCBaseView::OnRestoreState(wxConfigBase* pConfig) {
|
|
|
|
|
wxASSERT(pConfig);
|
|
|
|
|
wxASSERT(m_pTaskPane);
|
|
|
|
|
wxASSERT(m_pListPane);
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
if (!m_pTaskPane->OnRestoreState(pConfig)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
2005-04-08 16:58:55 +00:00
|
|
|
|
if (!m_pListPane->OnRestoreState(pConfig)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
2004-09-21 01:30:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
void CBOINCBaseView::OnListSelected(wxListEvent& event) {
|
2005-04-21 23:14:10 +00:00
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnListSelected - Function Begin"));
|
|
|
|
|
|
2008-03-18 18:19:49 +00:00
|
|
|
|
if (!m_bIgnoreUIEvents) {
|
|
|
|
|
m_bForceUpdateSelection = true;
|
|
|
|
|
UpdateSelection();
|
|
|
|
|
event.Skip();
|
|
|
|
|
}
|
2005-04-21 23:14:10 +00:00
|
|
|
|
|
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnListSelected - Function End"));
|
2004-09-24 02:01:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
void CBOINCBaseView::OnListDeselected(wxListEvent& event) {
|
2005-04-21 23:14:10 +00:00
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnListDeselected - Function Begin"));
|
|
|
|
|
|
2008-03-18 18:19:49 +00:00
|
|
|
|
if (!m_bIgnoreUIEvents) {
|
|
|
|
|
m_bForceUpdateSelection = true;
|
|
|
|
|
UpdateSelection();
|
|
|
|
|
event.Skip();
|
|
|
|
|
}
|
2005-04-21 23:14:10 +00:00
|
|
|
|
|
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnListDeselected - Function End"));
|
2004-09-24 02:01:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2008-06-27 04:34:47 +00:00
|
|
|
|
// Work around a bug (feature?) in virtual list control
|
|
|
|
|
// which does not send deselection events
|
|
|
|
|
void CBOINCBaseView::OnCacheHint(wxListEvent& event) {
|
|
|
|
|
static int oldSelectionCount = 0;
|
|
|
|
|
int newSelectionCount = m_pListPane->GetSelectedItemCount();
|
2008-06-27 10:05:47 +00:00
|
|
|
|
|
2008-06-27 04:34:47 +00:00
|
|
|
|
if (newSelectionCount < oldSelectionCount) {
|
|
|
|
|
wxListEvent leDeselectedEvent(wxEVT_COMMAND_LIST_ITEM_DESELECTED, m_windowId);
|
|
|
|
|
leDeselectedEvent.SetEventObject(this);
|
|
|
|
|
OnListDeselected(leDeselectedEvent);
|
|
|
|
|
}
|
|
|
|
|
oldSelectionCount = newSelectionCount;
|
|
|
|
|
event.Skip();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2006-03-23 09:10:47 +00:00
|
|
|
|
wxString CBOINCBaseView::OnListGetItemText(long WXUNUSED(item), long WXUNUSED(column)) const {
|
|
|
|
|
return wxString(wxT("Undefined"));
|
2004-09-21 01:30:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
int CBOINCBaseView::OnListGetItemImage(long WXUNUSED(item)) const {
|
2004-09-21 01:30:29 +00:00
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
wxListItemAttr* CBOINCBaseView::OnListGetItemAttr(long WXUNUSED(item)) const {
|
2004-09-21 01:30:29 +00:00
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2007-04-04 21:20:53 +00:00
|
|
|
|
void CBOINCBaseView::OnGridSelectCell( wxGridEvent& event ) {
|
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnGridSelectCell - Function Begin"));
|
|
|
|
|
|
2008-03-18 18:19:49 +00:00
|
|
|
|
if (!m_bIgnoreUIEvents) {
|
|
|
|
|
m_bForceUpdateSelection = true;
|
|
|
|
|
UpdateSelection();
|
|
|
|
|
event.Skip();
|
|
|
|
|
}
|
2007-04-04 21:20:53 +00:00
|
|
|
|
|
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnGridSelectCell - Function End"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::OnGridSelectRange( wxGridRangeSelectEvent& event ) {
|
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnGridSelectRange - Function Begin"));
|
|
|
|
|
|
2008-03-18 18:19:49 +00:00
|
|
|
|
if (!m_bIgnoreUIEvents) {
|
|
|
|
|
m_bForceUpdateSelection = true;
|
|
|
|
|
UpdateSelection();
|
|
|
|
|
event.Skip();
|
|
|
|
|
}
|
2007-04-04 21:20:53 +00:00
|
|
|
|
|
|
|
|
|
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseView::OnGridSelectRange - Function End"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-20 22:22:41 +00:00
|
|
|
|
int CBOINCBaseView::GetDocCount() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
wxString CBOINCBaseView::OnDocGetItemImage(long WXUNUSED(item)) const {
|
2006-03-23 01:17:07 +00:00
|
|
|
|
return wxString(wxT("Undefined"));
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
wxString CBOINCBaseView::OnDocGetItemAttr(long WXUNUSED(item)) const {
|
2006-03-23 01:17:07 +00:00
|
|
|
|
return wxString(wxT("Undefined"));
|
2004-10-26 01:59:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-10 19:01:23 +00:00
|
|
|
|
int CBOINCBaseView::AddCacheElement() {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-10 19:01:23 +00:00
|
|
|
|
int CBOINCBaseView::EmptyCache() {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-10 19:01:23 +00:00
|
|
|
|
int CBOINCBaseView::GetCacheCount() {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-10 19:01:23 +00:00
|
|
|
|
int CBOINCBaseView::RemoveCacheElement() {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2008-06-25 10:38:16 +00:00
|
|
|
|
int CBOINCBaseView::SynchronizeCache() {
|
2005-04-10 19:01:23 +00:00
|
|
|
|
int iRowIndex = 0;
|
|
|
|
|
int iRowTotal = 0;
|
|
|
|
|
int iColumnIndex = 0;
|
|
|
|
|
int iColumnTotal = 0;
|
2005-11-02 18:28:45 +00:00
|
|
|
|
bool bNeedRefreshData = false;
|
2008-06-25 13:53:52 +00:00
|
|
|
|
bool bNeedSort = false;
|
2004-12-02 07:43:47 +00:00
|
|
|
|
|
|
|
|
|
iRowTotal = GetDocCount();
|
|
|
|
|
iColumnTotal = m_pListPane->GetColumnCount();
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
for (iRowIndex = 0; iRowIndex < iRowTotal; iRowIndex++) {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
bNeedRefreshData = false;
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
for (iColumnIndex = 0; iColumnIndex < iColumnTotal; iColumnIndex++) {
|
2008-06-25 10:38:16 +00:00
|
|
|
|
if (SynchronizeCacheItem(iRowIndex, iColumnIndex)) {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
bNeedRefreshData = true;
|
2008-06-25 13:53:52 +00:00
|
|
|
|
if (iColumnIndex == m_iSortColumn) {
|
|
|
|
|
bNeedSort = true;
|
|
|
|
|
}
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
if (bNeedRefreshData) {
|
|
|
|
|
m_pListPane->RefreshItem(iRowIndex);
|
2004-12-02 07:43:47 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2008-06-25 14:45:03 +00:00
|
|
|
|
if (bNeedSort) {
|
|
|
|
|
sortData(); // Will mark entire list as needing refresh
|
|
|
|
|
}
|
2004-12-02 07:43:47 +00:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2008-06-27 10:05:47 +00:00
|
|
|
|
bool CBOINCBaseView::SynchronizeCacheItem(wxInt32 WXUNUSED(iRowIndex), wxInt32 WXUNUSED(iColumnIndex)) {
|
2008-06-25 10:38:16 +00:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2008-06-25 13:53:52 +00:00
|
|
|
|
|
2008-06-26 01:25:31 +00:00
|
|
|
|
void CBOINCBaseView::OnColClick(wxListEvent& event) {
|
|
|
|
|
wxListItem item;
|
|
|
|
|
int newSortColumn = event.GetColumn();
|
|
|
|
|
|
|
|
|
|
item.SetMask(wxLIST_MASK_IMAGE);
|
|
|
|
|
if (newSortColumn == m_iSortColumn) {
|
|
|
|
|
m_bReverseSort = !m_bReverseSort;
|
|
|
|
|
} else {
|
|
|
|
|
// Remove sort arrow from old sort column
|
|
|
|
|
if (m_iSortColumn >= 0) {
|
|
|
|
|
item.SetImage(-1);
|
|
|
|
|
m_pListPane->SetColumn(m_iSortColumn, item);
|
|
|
|
|
}
|
|
|
|
|
m_iSortColumn = newSortColumn;
|
|
|
|
|
m_bReverseSort = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
item.SetImage(m_bReverseSort ? 0 : 1);
|
|
|
|
|
m_pListPane->SetColumn(newSortColumn, item);
|
|
|
|
|
sortData();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2008-06-26 11:49:43 +00:00
|
|
|
|
void CBOINCBaseView::InitSort() {
|
|
|
|
|
wxListItem item;
|
|
|
|
|
|
|
|
|
|
if (m_iSortColumn < 0) return;
|
|
|
|
|
item.SetMask(wxLIST_MASK_IMAGE);
|
|
|
|
|
item.SetImage(m_bReverseSort ? 0 : 1);
|
|
|
|
|
m_pListPane->SetColumn(m_iSortColumn, item);
|
|
|
|
|
sortData();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2008-06-26 01:25:31 +00:00
|
|
|
|
void CBOINCBaseView::sortData() {
|
|
|
|
|
if (m_iSortColumn < 0) return;
|
|
|
|
|
|
|
|
|
|
wxArrayInt oldSortedIndexes(m_iSortedIndexes);
|
|
|
|
|
wxArrayInt selections;
|
2008-06-27 04:34:47 +00:00
|
|
|
|
int i, j, m, n = (int)m_iSortedIndexes.GetCount();
|
2008-06-26 01:25:31 +00:00
|
|
|
|
|
|
|
|
|
// Remember which cache elements are selected and deselect them
|
|
|
|
|
m_bIgnoreUIEvents = true;
|
|
|
|
|
i = -1;
|
|
|
|
|
while (1) {
|
|
|
|
|
i = m_pListPane->GetNextItem(i, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
|
|
|
|
if (i < 0) break;
|
|
|
|
|
selections.Add(m_iSortedIndexes[i]);
|
|
|
|
|
m_pListPane->SetItemState(i, 0, wxLIST_STATE_SELECTED);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_iSortedIndexes.Sort(m_funcSortCompare);
|
|
|
|
|
|
|
|
|
|
// Reselect previously selected cache elements in the sorted list
|
2008-06-27 04:34:47 +00:00
|
|
|
|
m = (int)selections.GetCount();
|
2008-06-26 01:25:31 +00:00
|
|
|
|
for (i=0; i<m; i++) {
|
|
|
|
|
if (selections[i] >= 0) {
|
|
|
|
|
j = m_iSortedIndexes.Index(selections[i]);
|
|
|
|
|
m_pListPane->SetItemState(j, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
m_bIgnoreUIEvents = false;
|
|
|
|
|
|
|
|
|
|
// Refresh rows which have moved
|
|
|
|
|
for (i=0; i<n; i++) {
|
|
|
|
|
if (m_iSortedIndexes[i] != oldSortedIndexes[i]) {
|
|
|
|
|
m_pListPane->RefreshItem(i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2008-06-25 13:53:52 +00:00
|
|
|
|
|
|
|
|
|
|
2005-04-27 06:32:40 +00:00
|
|
|
|
void CBOINCBaseView::EmptyTasks() {
|
|
|
|
|
unsigned int i;
|
|
|
|
|
unsigned int j;
|
|
|
|
|
for (i=0; i<m_TaskGroups.size(); i++) {
|
|
|
|
|
for (j=0; j<m_TaskGroups[i]->m_Tasks.size(); j++) {
|
|
|
|
|
delete m_TaskGroups[i]->m_Tasks[j];
|
|
|
|
|
}
|
|
|
|
|
m_TaskGroups[i]->m_Tasks.clear();
|
|
|
|
|
delete m_TaskGroups[i];
|
|
|
|
|
}
|
|
|
|
|
m_TaskGroups.clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2006-01-09 14:03:13 +00:00
|
|
|
|
void CBOINCBaseView::PreUpdateSelection(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-07-24 08:35:57 +00:00
|
|
|
|
void CBOINCBaseView::UpdateSelection(){
|
2006-01-09 14:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::PostUpdateSelection(){
|
2005-07-24 08:35:57 +00:00
|
|
|
|
wxASSERT(m_pTaskPane);
|
|
|
|
|
m_pTaskPane->UpdateControls();
|
|
|
|
|
Layout();
|
|
|
|
|
}
|
2005-04-20 22:22:41 +00:00
|
|
|
|
|
|
|
|
|
|
2006-01-09 14:03:13 +00:00
|
|
|
|
void CBOINCBaseView::UpdateWebsiteSelection(long lControlGroup, PROJECT* project){
|
|
|
|
|
unsigned int i;
|
|
|
|
|
CTaskItemGroup* pGroup = NULL;
|
|
|
|
|
CTaskItem* pItem = NULL;
|
|
|
|
|
|
|
|
|
|
wxASSERT(m_pTaskPane);
|
|
|
|
|
wxASSERT(m_pListPane);
|
|
|
|
|
|
|
|
|
|
// Update the websites list
|
|
|
|
|
//
|
|
|
|
|
if (m_bForceUpdateSelection) {
|
|
|
|
|
if (m_TaskGroups.size() > 1) {
|
|
|
|
|
|
|
|
|
|
// Delete task group, objects, and controls.
|
|
|
|
|
pGroup = m_TaskGroups[lControlGroup];
|
|
|
|
|
|
|
|
|
|
m_pTaskPane->DeleteTaskGroupAndTasks(pGroup);
|
|
|
|
|
for (i=0; i<pGroup->m_Tasks.size(); i++) {
|
|
|
|
|
delete pGroup->m_Tasks[i];
|
|
|
|
|
}
|
|
|
|
|
pGroup->m_Tasks.clear();
|
|
|
|
|
delete pGroup;
|
|
|
|
|
|
|
|
|
|
pGroup = NULL;
|
|
|
|
|
|
|
|
|
|
m_TaskGroups.erase( m_TaskGroups.begin() + 1 );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If something is selected create the tasks and controls
|
|
|
|
|
if (m_pListPane->GetSelectedItemCount()) {
|
|
|
|
|
if (project) {
|
|
|
|
|
// Create the web sites task group
|
|
|
|
|
pGroup = new CTaskItemGroup( _("Web sites") );
|
|
|
|
|
m_TaskGroups.push_back( pGroup );
|
|
|
|
|
|
|
|
|
|
// Default project url
|
|
|
|
|
pItem = new CTaskItem(
|
2006-03-23 01:17:07 +00:00
|
|
|
|
wxString(project->project_name.c_str(), wxConvUTF8),
|
2006-01-09 14:03:13 +00:00
|
|
|
|
wxT(""),
|
2006-03-23 01:17:07 +00:00
|
|
|
|
wxString(project->master_url.c_str(), wxConvUTF8),
|
2006-01-09 14:03:13 +00:00
|
|
|
|
ID_TASK_PROJECT_WEB_PROJDEF_MIN
|
|
|
|
|
);
|
|
|
|
|
pGroup->m_Tasks.push_back(pItem);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Project defined urls
|
|
|
|
|
for (i=0;(i<project->gui_urls.size())&&(i<=ID_TASK_PROJECT_WEB_PROJDEF_MAX);i++) {
|
|
|
|
|
pItem = new CTaskItem(
|
2006-03-23 09:10:47 +00:00
|
|
|
|
wxGetTranslation(wxString(project->gui_urls[i].name.c_str(), wxConvUTF8)),
|
|
|
|
|
wxGetTranslation(wxString(project->gui_urls[i].description.c_str(), wxConvUTF8)),
|
2006-03-23 01:17:07 +00:00
|
|
|
|
wxString(project->gui_urls[i].url.c_str(), wxConvUTF8),
|
2006-01-09 14:03:13 +00:00
|
|
|
|
ID_TASK_PROJECT_WEB_PROJDEF_MIN + 1 + i
|
|
|
|
|
);
|
|
|
|
|
pGroup->m_Tasks.push_back(pItem);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_bForceUpdateSelection = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
bool CBOINCBaseView::_EnsureLastItemVisible() {
|
2005-01-29 00:58:43 +00:00
|
|
|
|
return EnsureLastItemVisible();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
|
bool CBOINCBaseView::EnsureLastItemVisible() {
|
2004-12-02 07:43:47 +00:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2008-06-24 11:47:34 +00:00
|
|
|
|
double CBOINCBaseView::GetProgressValue(long) {
|
2008-06-24 10:52:12 +00:00
|
|
|
|
return 0.0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-06-13 08:47:51 +00:00
|
|
|
|
void CBOINCBaseView::append_to_status(wxString& existing, const wxChar* additional) {
|
|
|
|
|
if (existing.size() == 0) {
|
|
|
|
|
existing = additional;
|
|
|
|
|
} else {
|
2006-03-23 01:17:07 +00:00
|
|
|
|
existing = existing + wxT(", ") + additional;
|
2005-06-13 08:47:51 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
|
// HTML Entity Conversion:
|
|
|
|
|
// http://www.webreference.com/html/reference/character/
|
|
|
|
|
// Completed: The ISO Latin 1 Character Set
|
|
|
|
|
//
|
|
|
|
|
wxString CBOINCBaseView::HtmlEntityEncode(wxString strRaw) {
|
|
|
|
|
wxString strEncodedHtml(strRaw);
|
|
|
|
|
|
2007-05-29 16:16:33 +00:00
|
|
|
|
#ifdef __WXMSW__
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
|
strEncodedHtml.Replace(wxT("&"), wxT("&"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("\""), wxT("""), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<"), wxT("<"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT(">"), wxT(">"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("‚"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ƒ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("„"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("…"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("†"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("‡"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Š"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Œ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("‘"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("’"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("“"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("”"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("•"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("–"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("—"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD><EFBFBD>~"), wxT("˜"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("™"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("š"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("œ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ÿ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¡"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¢"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("£"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¤"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¥"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¦"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("§"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¨"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("©"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ª"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("«"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¬"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("®"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¯"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("°"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("±"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("²"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("³"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("´"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("µ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¶"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("·"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¸"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¹"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("º"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("»"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¼"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("½"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¾"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("¿"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("À"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Á"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Â"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ã"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ä"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Å"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Æ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ç"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("È"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("É"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ê"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ë"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ì"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Í"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Î"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ï"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ð"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ñ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ò"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ó"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ô"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Õ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ö"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("×"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ø"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ù"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ú"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Û"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ü"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Ý"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("Þ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ß"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("à"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("á"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("â"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ã"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ä"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("å"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("æ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ç"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("è"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("é"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ê"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ë"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ì"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("í"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("î"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ï"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ð"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ñ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ò"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ó"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ô"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("õ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ö"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("÷"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ø"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ù"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ú"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("û"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ü"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ý"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("þ"), true);
|
|
|
|
|
strEncodedHtml.Replace(wxT("<EFBFBD>"), wxT("ÿ"), true);
|
2007-05-29 16:16:33 +00:00
|
|
|
|
#endif
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
|
|
|
|
|
|
return strEncodedHtml;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wxString CBOINCBaseView::HtmlEntityDecode(wxString strRaw) {
|
|
|
|
|
wxString strDecodedHtml(strRaw);
|
|
|
|
|
|
|
|
|
|
if (0 <= strDecodedHtml.Find(wxT("&"))) {
|
2007-05-29 16:16:33 +00:00
|
|
|
|
#ifdef __WXMSW__
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
|
strDecodedHtml.Replace(wxT("&"), wxT("&"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("""), wxT("\""), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("<"), wxT("<"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT(">"), wxT(">"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("‚"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ƒ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("„"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("…"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("†"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("‡"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Š"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Œ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("‘"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("’"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("“"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("”"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("•"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("–"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("—"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("˜"), wxT("<EFBFBD><EFBFBD>~"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("™"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("š"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("œ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ÿ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¡"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¢"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("£"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¤"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¥"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¦"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("§"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¨"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("©"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ª"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("«"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¬"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("®"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¯"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("°"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("±"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("²"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("³"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("´"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("µ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¶"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("·"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¸"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¹"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("º"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("»"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¼"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("½"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¾"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("¿"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("À"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Á"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Â"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ã"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ä"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Å"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Æ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ç"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("È"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("É"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ê"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ë"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ì"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Í"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Î"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ï"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ð"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ñ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ò"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ó"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ô"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Õ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ö"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("×"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ø"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ù"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ú"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Û"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ü"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Ý"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("Þ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ß"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("à"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("á"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("â"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ã"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ä"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("å"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("æ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ç"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("è"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("é"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ê"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ë"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ì"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("í"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("î"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ï"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ð"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ñ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ò"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ó"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ô"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("õ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ö"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("÷"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ø"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ù"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ú"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("û"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ü"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ý"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("þ"), wxT("<EFBFBD>"), true);
|
|
|
|
|
strDecodedHtml.Replace(wxT("ÿ"), wxT("<EFBFBD>"), true);
|
2007-05-29 16:16:33 +00:00
|
|
|
|
#endif
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return strDecodedHtml;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-01-02 18:29:53 +00:00
|
|
|
|
const char *BOINC_RCSID_0a1bd38a5a = "$Id$";
|