Blob Blame History Raw
--- boinc_core_release_7_0a/clientgui/MainDocument.cpp.orig	2012-06-23 14:07:34.000000000 +0200
+++ boinc_core_release_7_0a/clientgui/MainDocument.cpp	2012-06-26 13:28:37.646721157 +0200
@@ -378,6 +378,21 @@
         m_bReconnecting = false;
         m_pDocument->results.clear();
     }
+    wxDialog *dial = new wxDialog(pFrame, wxID_ANY, wxT("Could not connect to client"));
+    wxBoxSizer *vbox = new wxBoxSizer(wxVERTICAL);
+    wxBoxSizer *hbox = new wxBoxSizer(wxHORIZONTAL);
+    wxButton *closeButton = new wxButton(dial, wxID_OK, wxT("Close"));
+    closeButton->SetFocus();
+    wxHyperlinkCtrl *link = new wxHyperlinkCtrl(dial, wxID_ANY, wxT("How to use Boinc on Fedora"), wxT("http://boinc.berkeley.edu/wiki/Installing_BOINC_on_Fedora"));
+    wxStaticText *text = new wxStaticText(dial, wxID_ANY, wxT("The BOINC manager could not connect to BOINC client. The client might not be running or your are not allowed to connect to it. Please refer to the documentation provided by the link below to learn how to setup the client."), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE);
+    text->Wrap(dial->GetSize().GetWidth() * 0.8);
+    vbox->Add(text, 0, wxALIGN_CENTER, 0);
+    vbox->Add(link, 0, wxALIGN_CENTER | wxTOP, 10);
+    vbox->Add(closeButton, 0, wxALIGN_CENTER | wxTOP, 10);
+    hbox->Add(vbox, 0, wxALL, 20);
+    dial->SetSizerAndFit(hbox);
+    dial->ShowModal();
+    dial->Destroy();
 }