GR: "Another instance" message in Select Computer dialog gets Manager name from skin

svn path=/trunk/boinc/; revision=22208
This commit is contained in:
Charlie Fenton 2010-08-12 00:33:54 +00:00
parent e754e70ad5
commit 53969af489
2 changed files with 17 additions and 4 deletions

View File

@ -6007,3 +6007,10 @@ Charlie 11 Aug 2010
clientgui/
DlgEventLog.cpp
Charlie 11 Aug 2010
- MGR: "Another instance" message in Select Computer dialog gets Manager name
from skin.
clientgui/
DlgSelectComputer.cpp

View File

@ -115,11 +115,17 @@ void CDlgSelectComputer::CreateControls(bool required)
itemDialog1->SetSizer(itemBoxSizer2);
if (required) {
wxStaticText* itemStaticText1 = new wxStaticText;
itemStaticText1->Create( itemDialog1, wxID_STATIC,
_("Another instance of BOINC Manager is already running \non this computer. Please select a client to monitor."),
wxDefaultPosition, wxDefaultSize, 0
CSkinAdvanced* pSkinAdvanced = wxGetApp().GetSkinManager()->GetAdvanced();
wxASSERT(pSkinAdvanced);
wxASSERT(wxDynamicCast(pSkinAdvanced, CSkinAdvanced));
wxString strInfo = wxEmptyString;
strInfo.Printf(
_("Another instance of %s is already running \non this computer. Please select a client to monitor."),
pSkinAdvanced->GetApplicationName().c_str()
);
wxStaticText* itemStaticText1 = new wxStaticText;
itemStaticText1->Create( itemDialog1, wxID_STATIC, strInfo, wxDefaultPosition, wxDefaultSize, 0);
itemBoxSizer2->Add(itemStaticText1, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
}