mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=7746
This commit is contained in:
parent
c8ecb2ba79
commit
c5ca947417
|
@ -105,8 +105,9 @@ CBOINCBaseView::~CBOINCBaseView() {}
|
|||
// The user friendly name of the view.
|
||||
// If it has not been defined by the view "Undefined" is returned.
|
||||
//
|
||||
wxString CBOINCBaseView::GetViewName() {
|
||||
return wxString(wxT("Undefined"));
|
||||
wxString& CBOINCBaseView::GetViewName() {
|
||||
static wxString strViewName(wxT("Undefined"));
|
||||
return strViewName;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ public:
|
|||
|
||||
~CBOINCBaseView();
|
||||
|
||||
virtual wxString GetViewName();
|
||||
virtual wxString& GetViewName();
|
||||
virtual const char** GetViewIcon();
|
||||
|
||||
bool FireOnSaveState( wxConfigBase* pConfig );
|
||||
|
|
|
@ -120,7 +120,7 @@ CViewMessages::~CViewMessages() {
|
|||
}
|
||||
|
||||
|
||||
wxString CViewMessages::GetViewName() {
|
||||
wxString& CViewMessages::GetViewName() {
|
||||
static wxString strViewName(_("Messages"));
|
||||
return strViewName;
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
~CViewMessages();
|
||||
|
||||
virtual wxString GetViewName();
|
||||
virtual wxString& GetViewName();
|
||||
virtual const char** GetViewIcon();
|
||||
|
||||
void OnMessagesCopyAll( wxCommandEvent& event );
|
||||
|
|
|
@ -189,7 +189,7 @@ CViewProjects::~CViewProjects() {
|
|||
}
|
||||
|
||||
|
||||
wxString CViewProjects::GetViewName() {
|
||||
wxString& CViewProjects::GetViewName() {
|
||||
static wxString strViewName(_("Projects"));
|
||||
return strViewName;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
|
||||
~CViewProjects();
|
||||
|
||||
virtual wxString GetViewName();
|
||||
virtual wxString& GetViewName();
|
||||
virtual const char** GetViewIcon();
|
||||
|
||||
void OnProjectUpdate( wxCommandEvent& event );
|
||||
|
|
|
@ -86,7 +86,7 @@ CViewResources::~CViewResources() {
|
|||
}
|
||||
|
||||
|
||||
wxString CViewResources::GetViewName() {
|
||||
wxString& CViewResources::GetViewName() {
|
||||
static wxString strViewName(_("Disk"));
|
||||
return strViewName;
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
|
||||
~CViewResources();
|
||||
|
||||
virtual wxString GetViewName();
|
||||
virtual wxString& GetViewName();
|
||||
virtual const char** GetViewIcon();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -356,7 +356,7 @@ CViewStatistics::~CViewStatistics() {
|
|||
}
|
||||
|
||||
|
||||
wxString CViewStatistics::GetViewName() {
|
||||
wxString& CViewStatistics::GetViewName() {
|
||||
static wxString strViewName(_("Statistics"));
|
||||
return strViewName;
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
|
||||
~CViewStatistics();
|
||||
|
||||
virtual wxString GetViewName();
|
||||
virtual wxString& GetViewName();
|
||||
|
||||
void OnStatisticsUserTotal( wxCommandEvent& event );
|
||||
void OnStatisticsUserAverage( wxCommandEvent& event );
|
||||
|
|
|
@ -130,7 +130,7 @@ CViewTransfers::~CViewTransfers() {
|
|||
}
|
||||
|
||||
|
||||
wxString CViewTransfers::GetViewName() {
|
||||
wxString& CViewTransfers::GetViewName() {
|
||||
static wxString strViewName(_("Transfers"));
|
||||
return strViewName;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
|
||||
~CViewTransfers();
|
||||
|
||||
virtual wxString GetViewName();
|
||||
virtual wxString& GetViewName();
|
||||
virtual const char** GetViewIcon();
|
||||
|
||||
void OnTransfersRetryNow( wxCommandEvent& event );
|
||||
|
|
|
@ -141,7 +141,7 @@ CViewWork::~CViewWork() {
|
|||
}
|
||||
|
||||
|
||||
wxString CViewWork::GetViewName() {
|
||||
wxString& CViewWork::GetViewName() {
|
||||
static wxString strViewName(_("Work"));
|
||||
return strViewName;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
|
||||
~CViewWork();
|
||||
|
||||
virtual wxString GetViewName();
|
||||
virtual wxString& GetViewName();
|
||||
virtual const char** GetViewIcon();
|
||||
|
||||
void OnWorkSuspend( wxCommandEvent& event );
|
||||
|
|
Loading…
Reference in New Issue