24{
25
26 m_staticTextVersion->SetLabel("2026w37a-beta");
27
28
29 m_gridCredits->EnableGridLines(false);
30 wxFont headerFont = m_gridCredits->GetDefaultCellFont();
31 headerFont.SetWeight(wxFONTWEIGHT_BOLD);
32 headerFont.SetPointSize(headerFont.GetPointSize() + 1);
33 wxColour headerColour(200, 200, 200);
34 wxColour hyperlinkColour(6, 69, 173);
35
36 m_gridCredits->AppendCols(3);
37 m_gridCredits->AppendRows(7);
38 m_gridCredits->HideColLabels();
39 m_gridCredits->HideRowLabels();
40 m_gridCredits->SetCellSize(0, 0, 1, 3);
41 m_gridCredits->SetCellSize(3, 0, 1, 3);
42
43 m_gridCredits->SetCellValue(0, 0, _("Developers"));
44 m_gridCredits->SetCellAlignment(0, 0, wxALIGN_CENTRE, wxALIGN_CENTRE);
45 m_gridCredits->SetCellBackgroundColour(0, 0, headerColour);
46 m_gridCredits->SetCellFont(0, 0, headerFont);
47 m_gridCredits->SetCellValue(1, 0, wxT("Thales Lima Oliveira"));
48 m_gridCredits->SetCellValue(1, 1, _("Main developer and project admin"));
49 m_gridCredits->SetCellValue(1, 2, wxT("thales.oliveira@uftm.edu.br\nthales@ufu.br"));
50
51 m_gridCredits->SetRowMinimalHeight(2, 30);
52
53 m_gridCredits->SetCellValue(3, 0, _("Contributors / Special Thanks"));
54 m_gridCredits->SetCellAlignment(3, 0, wxALIGN_CENTRE, wxALIGN_CENTRE);
55 m_gridCredits->SetCellBackgroundColour(3, 0, headerColour);
56 m_gridCredits->SetCellFont(3, 0, headerFont);
57
58 m_gridCredits->SetCellValue(4, 0, wxT("Geraldo Caixeta Guimar") + static_cast<wxString>(L'\u00E3') + wxT("es"));
59 m_gridCredits->SetCellValue(4, 1, _("Chief advisor"));
60 m_gridCredits->SetCellValue(4, 2, wxT("gcaixeta@ufu.br"));
61
62
63 m_gridCredits->SetCellValue(5, 0, wxT("Márcio Augusto Tamashiro"));
64 m_gridCredits->SetCellValue(5, 1, "");
65 m_gridCredits->SetCellValue(5, 2, wxT("tamashiro@ifto.edu.br"));
66
67 m_gridCredits->SetCellValue(6, 0, wxT("Luiz Gonzaga Rocha Junior"));
68 m_gridCredits->SetCellValue(6, 1, wxT(""));
69 m_gridCredits->SetCellValue(6, 2, wxT("luizgrj@gmail.com"));
70
71 for(int i = 0; i < m_gridCredits->GetNumberRows(); ++i) {
72 m_gridCredits->SetCellTextColour(i, 2, hyperlinkColour);
73 }
74
75 m_gridCredits->AutoSize();
76
77
78 int lastColSize = m_notebook->GetPage(1)->GetSize().GetWidth();
79 int lastColNumber = m_gridCredits->GetNumberCols() - 1;
80 for(int i = 0; i < lastColNumber; ++i) {
81 lastColSize -= m_gridCredits->GetColSize(i);
82 }
83 m_gridCredits->SetColSize(lastColNumber, lastColSize);
84 m_gridCredits->SetSize(m_notebook->GetPage(1)->GetSize());
85
86
87 wxString licenseStr = "";
88 wxTextFile file;
89
90 wxString licensePath = Paths::GetDataPath() + "/LICENSE";
91 if(!file.Open(licensePath)) {
92
93 } else {
94 licenseStr += file.GetFirstLine() + "\n";
95 while(!file.Eof()) {
96 licenseStr += file.GetNextLine() + "\n";
97 }
98 }
99 wxFont font = m_richTextCtrlLicense->GetFont();
100 font.SetFamily(wxFONTFAMILY_TELETYPE);
101 m_richTextCtrlLicense->SetFont(font);
102 m_richTextCtrlLicense->SetEditable(false);
103 m_richTextCtrlLicense->AppendText(licenseStr);
104}