10 #include <wx/scrolwin.h>
11 #include <wx/hyperlink.h>
12 #include "../../.HatchKeeper_Data_90/Images/HatchKeeper_Icon.xpm"
41 HelpDialog( wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxString& title = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize( 500,550 ),
long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
45 HelpDialog::HelpDialog( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) : wxDialog( parent, id, title, pos, size, style )
47 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
54 this->SetForegroundColour( wxColor(ColorRed[8],ColorGreen[8],ColorBlue[8]) );
55 this->SetBackgroundColour( wxColor(ColorRed[7],ColorGreen[7],ColorBlue[7]) );
58 bSizer1 =
new wxBoxSizer( wxVERTICAL );
60 AboutPanel =
new wxScrolledWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
62 AboutPanel->SetForegroundColour( wxColor(ColorRed[8],ColorGreen[8],ColorBlue[8]) );
63 AboutPanel->SetBackgroundColour( wxColor(ColorRed[7],ColorGreen[7],ColorBlue[7]) );
65 bSizer2 =
new wxBoxSizer( wxVERTICAL );
67 iconBitmap =
new wxStaticBitmap(
AboutPanel, wxID_ANY, wxBitmap( HatchKeeper_Icon_xpm ), wxDefaultPosition, wxDefaultSize, 0 );
68 bSizer2->Add(
iconBitmap, 0, wxALL|wxEXPAND, 5 );
72 bSizer2->Add(
versionStat, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
74 homepageStat =
new wxHyperlinkCtrl(
AboutPanel, wxID_ANY, wxT(
"Website"),
"https://hatchkeeper.sourceforge.io" ,wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
75 bSizer2->Add(
homepageStat, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
77 helppageStat =
new wxHyperlinkCtrl(
AboutPanel, wxID_ANY, wxT(
"Help"),
"https://hatchkeeper.sourceforge.io/help", wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
78 bSizer2->Add(
helppageStat,0,wxALIGN_CENTER_HORIZONTAL, 5 );
81 m_staticText8->SetLabelMarkup(
"\n<b>"+
l(
"The HatchKeeper Team Is:") +
"</b>\n\nmill-j:\tMain Developer\nEthan Beachy:\tDesign\n");
83 bSizer2->Add(
m_staticText8, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
85 wxStaticText* m_staticText80 =
new wxStaticText(
AboutPanel, wxID_ANY,
l(
""), wxDefaultPosition, wxDefaultSize, 0 );
86 m_staticText80->SetLabelMarkup(
"\n<b>"+
l(
"Translators Are:") +
"</b>\n\nMarc036:\tDutch");
87 m_staticText80->Wrap(-1 );
88 bSizer2->Add( m_staticText80, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
91 ThanksStat->SetLabelMarkup(
"\n<b>"+
l(
"Special Thanks:") +
"</b>\n\nChilliy\nTabasco Jack\nFaye-King\nGeek-a-Byte\nMolpet\nKikisGirls");
93 bSizer2->Add(
ThanksStat,0, wxALIGN_CENTER_HORIZONTAL, 5 );
98 bSizer2->Add(
copywriteStat, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
101 licenseStat->SetLabel(
"This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.");
103 bSizer2->Add(
licenseStat, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
108 bSizer1->Add(
AboutPanel, 1, wxEXPAND | wxALL, 5 );
110 HelpCloseButton =
new wxButton(
this, wxID_ANY,
l(
"Close"), wxDefaultPosition, wxDefaultSize, 0 );
116 this->SetSizer( bSizer1 );
119 this->Centre( wxBOTH );
std::string l(std::string Text)
A Helper Function For HK_Language.
std::string GetVersion()
Returns The Version Of HatchKeeper.
std::string GetCopyright()
Returns Copyright Info.
vector< int > GetIntArray(int Selection)
Returns The Selected Value As An Array Of Integers.
A Dialog For Displaying Version, Help, Credits And More.
wxStaticText * copywriteStat
wxStaticText * ThanksStat
wxStaticText * decriptionStat
wxHyperlinkCtrl * helppageStat
wxButton * HelpCloseButton
wxStaticText * ThankNamesStat
wxStaticText * versionStat
wxStaticBitmap * iconBitmap
wxHyperlinkCtrl * homepageStat
void OnClose(wxCommandEvent &)
Close Dialog.
HelpDialog(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 550), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Constructor.
wxStaticText * CreditStat
wxStaticText * licenseStat
wxStaticText * m_staticText8
wxScrolledWindow * AboutPanel