*** empty log message ***

svn path=/trunk/boinc/; revision=7746
This commit is contained in:
Rom Walton 2005-09-02 21:03:36 +00:00
parent c8ecb2ba79
commit c5ca947417
14 changed files with 16 additions and 15 deletions

View File

@ -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;
}

View File

@ -90,7 +90,7 @@ public:
~CBOINCBaseView();
virtual wxString GetViewName();
virtual wxString& GetViewName();
virtual const char** GetViewIcon();
bool FireOnSaveState( wxConfigBase* pConfig );

View File

@ -120,7 +120,7 @@ CViewMessages::~CViewMessages() {
}
wxString CViewMessages::GetViewName() {
wxString& CViewMessages::GetViewName() {
static wxString strViewName(_("Messages"));
return strViewName;
}

View File

@ -38,7 +38,7 @@ public:
~CViewMessages();
virtual wxString GetViewName();
virtual wxString& GetViewName();
virtual const char** GetViewIcon();
void OnMessagesCopyAll( wxCommandEvent& event );

View File

@ -189,7 +189,7 @@ CViewProjects::~CViewProjects() {
}
wxString CViewProjects::GetViewName() {
wxString& CViewProjects::GetViewName() {
static wxString strViewName(_("Projects"));
return strViewName;
}

View File

@ -54,7 +54,7 @@ public:
~CViewProjects();
virtual wxString GetViewName();
virtual wxString& GetViewName();
virtual const char** GetViewIcon();
void OnProjectUpdate( wxCommandEvent& event );

View File

@ -86,7 +86,7 @@ CViewResources::~CViewResources() {
}
wxString CViewResources::GetViewName() {
wxString& CViewResources::GetViewName() {
static wxString strViewName(_("Disk"));
return strViewName;
}

View File

@ -49,7 +49,7 @@ public:
~CViewResources();
virtual wxString GetViewName();
virtual wxString& GetViewName();
virtual const char** GetViewIcon();
protected:

View File

@ -356,7 +356,7 @@ CViewStatistics::~CViewStatistics() {
}
wxString CViewStatistics::GetViewName() {
wxString& CViewStatistics::GetViewName() {
static wxString strViewName(_("Statistics"));
return strViewName;
}

View File

@ -53,7 +53,7 @@ public:
~CViewStatistics();
virtual wxString GetViewName();
virtual wxString& GetViewName();
void OnStatisticsUserTotal( wxCommandEvent& event );
void OnStatisticsUserAverage( wxCommandEvent& event );

View File

@ -130,7 +130,7 @@ CViewTransfers::~CViewTransfers() {
}
wxString CViewTransfers::GetViewName() {
wxString& CViewTransfers::GetViewName() {
static wxString strViewName(_("Transfers"));
return strViewName;
}

View File

@ -52,7 +52,7 @@ public:
~CViewTransfers();
virtual wxString GetViewName();
virtual wxString& GetViewName();
virtual const char** GetViewIcon();
void OnTransfersRetryNow( wxCommandEvent& event );

View File

@ -141,7 +141,7 @@ CViewWork::~CViewWork() {
}
wxString CViewWork::GetViewName() {
wxString& CViewWork::GetViewName() {
static wxString strViewName(_("Work"));
return strViewName;
}

View File

@ -55,7 +55,7 @@ public:
~CViewWork();
virtual wxString GetViewName();
virtual wxString& GetViewName();
virtual const char** GetViewIcon();
void OnWorkSuspend( wxCommandEvent& event );