1 #include "DictionariesNeededDialog.h"
2 
3 #include <wx/sizer.h>
4 #include <wx/stattext.h>
5 #include <wx/hyperlink.h>
6 
DictionariesNeededDialog()7 DictionariesNeededDialog::DictionariesNeededDialog():
8     AnnoyingDialog(_("Dictionaries needed!"),_("SpellChecker needs a dictionary to work correctly.\nThe following page explains where to get\nand how to install a dictionary:"), wxART_INFORMATION, OK)
9 {
10     wxSizer *outerSizer = GetSizer();
11 
12     // assuming annoying dialog is disabled if no sizer was returned here.
13     if ( outerSizer )
14     {
15         wxSizerItemList& childs = outerSizer->GetChildren();
16         wxSizer *mainArea = childs[0]->GetSizer();
17 
18         wxHyperlinkCtrl *hyperlink1 = new wxHyperlinkCtrl( this, wxID_ANY, _("How to configure SpellChecker?"), _T("http://wiki.codeblocks.org/index.php?title=SpellChecker_plugin"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
19 
20         mainArea->Add(hyperlink1, 0, wxALL, 5);
21 
22         this->Layout();
23         outerSizer->Fit(this);
24         this->Centre( wxBOTH );
25     }
26 }
27 
~DictionariesNeededDialog()28 DictionariesNeededDialog::~DictionariesNeededDialog()
29 {
30 }
31 
32