| 1 |  | ///////////////////////////////////////////////////////////////////////////// | 
 
 
 
 
 
 
 
 
 
 
 | 2 | < | // Name:        about.cpp | 
 
 
 
 
 
 
 
 
 | 2 | > | // Name:        about_window.cpp | 
 
 
 
 
 
 
 
 
 
 
 | 3 |  | // Purpose: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 |  | // Author: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 5 |  | // Modified by: | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 23 |  | ////@begin includes | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 24 |  | ////@end includes | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 25 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 26 | < | #include "about.h" | 
 
 
 
 
 
 
 
 
 | 26 | > | #include "about_window.h" | 
 
 
 
 
 
 
 
 
 
 
 | 27 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 28 |  | ////@begin XPM images | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 29 |  | ////@end XPM images | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 70 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 71 |  | bool About::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 72 |  | { | 
 
 
 
 
 
 
 
 
 
 
 | 73 | < | ////@begin About creation | 
 
 
 
 
 
 
 
 
 | 73 | > | ////@begin About creation | 
 
 
 
 
 
 
 
 
 
 
 | 74 |  | SetExtraStyle(wxWS_EX_BLOCK_EVENTS); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 75 |  | wxDialog::Create( parent, id, caption, pos, size, style ); | 
 
 
 
 
 
 
 
 
 
 
 | 76 | < |  | 
 
 
 
 
 
 
 
 
 | 76 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 77 |  | CreateControls(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 78 |  | if (GetSizer()) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 79 |  | { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 80 |  | GetSizer()->SetSizeHints(this); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 81 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 82 |  | Centre(); | 
 
 
 
 
 
 
 
 
 
 
 | 83 | < | ////@end About creation | 
 
 
 
 
 
 
 
 
 | 83 | > | ////@end About creation | 
 
 
 
 
 
 
 
 
 
 
 | 84 |  | return true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 85 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 86 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 91 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 92 |  | About::~About() | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 93 |  | { | 
 
 
 
 
 
 
 
 
 
 
 | 94 | < | ////@begin About destruction | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 95 | < | ////@end About destruction | 
 
 
 
 
 
 
 
 
 | 94 | > | ////@begin About destruction | 
 
 
 
 
 | 95 | > | ////@end About destruction | 
 
 
 
 
 
 
 
 
 
 
 | 96 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 97 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 98 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 102 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 103 |  | void About::Init() | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 104 |  | { | 
 
 
 
 
 
 
 
 
 
 
 | 105 | < | ////@begin About member initialisation | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 106 | < | ////@end About member initialisation | 
 
 
 
 
 
 
 
 
 | 105 | > | ////@begin About member initialisation | 
 
 
 
 
 | 106 | > | ////@end About member initialisation | 
 
 
 
 
 
 
 
 
 
 
 | 107 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 108 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 109 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 113 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 114 |  | void About::CreateControls() | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 115 |  | { | 
 
 
 
 
 
 
 
 
 
 
 | 116 | < | ////@begin About content construction | 
 
 
 
 
 
 
 
 
 | 116 | > | ////@begin About content construction | 
 
 
 
 
 
 
 
 
 
 
 | 117 |  | About* itemDialog1 = this; | 
 
 
 
 
 
 
 
 
 
 
 | 118 | < |  | 
 
 
 
 
 
 
 
 
 | 118 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 119 |  | wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 120 |  | itemDialog1->SetSizer(itemBoxSizer2); | 
 
 
 
 
 
 
 
 
 
 
 | 121 | < |  | 
 
 
 
 
 
 
 
 
 | 121 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 122 |  | wxPanel* itemPanel3 = new wxPanel( itemDialog1, ID_PANEL2, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxTAB_TRAVERSAL ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 123 |  | itemBoxSizer2->Add(itemPanel3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); | 
 
 
 
 
 
 
 
 
 
 
 | 124 | < |  | 
 
 
 
 
 
 
 
 
 | 124 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 125 |  | wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxVERTICAL); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 126 |  | itemPanel3->SetSizer(itemBoxSizer4); | 
 
 
 
 
 
 
 
 
 
 
 | 127 | < |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 128 | < | wxStaticText* itemStaticText5 = new wxStaticText( itemPanel3, wxID_STATIC, _("Mod Installer v1.0\nby Gumby and Iritscen\n\nAE credited to:\nEdT: BGI troops, additional weapons\ngeyser: Original creator\nGumby: Not much :)\nLoser: All his animation work\nNeo: Making OniSplit, documenting Oni, and lots of technical support\nONIrules: Additional weapons\nParadox: More documenting of Oni\nRossyMiles: Daodan DLL port to C\nSeventeen Seconds: Additional weapons\nSFeLi: Original Daodan DLL\nssg: Documenting Oni"), wxDefaultPosition, wxDefaultSize, wxNO_BORDER ); | 
 
 
 
 
 
 
 
 
 | 127 | > |  | 
 
 
 
 
 | 128 | > | wxStaticText* itemStaticText5 = new wxStaticText( itemPanel3, wxID_STATIC, _("Mod Installer v1.0\nby Gumby and Iritscen\n\nAE credited to:\nEdT: BGI troops, additional weapons\ngeyser: Original creator\nGumby: Installer and Framework\nIritscen:Installer (Mac)\nLoser: Improved animation and AI\nNeo: OniSplit, documenting Oni, tech support\nONIrules: Additional weapons\nParadox: Documenting of Oni\nRossyMiles: Daodan DLL port to C\nSFeLi: Original Daodan DLL\nssg: Documenting Oni"), wxDefaultPosition, wxDefaultSize, wxNO_BORDER ); | 
 
 
 
 
 
 
 
 
 
 
 | 129 |  | itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_LEFT|wxALL, 5); | 
 
 
 
 
 
 
 
 
 
 
 | 130 | < |  | 
 
 
 
 
 
 
 
 
 | 130 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 131 |  | wxStaticLine* itemStaticLine6 = new wxStaticLine( itemPanel3, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 132 |  | itemBoxSizer4->Add(itemStaticLine6, 0, wxGROW|wxALL, 5); | 
 
 
 
 
 
 
 
 
 
 
 | 133 | < |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 134 | < | wxStaticText* itemStaticText7 = new wxStaticText( itemPanel3, wxID_STATIC, _("oni.bungie.org"), wxDefaultPosition, wxDefaultSize, 0 ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 135 | < | itemBoxSizer4->Add(itemStaticText7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 136 | < |  | 
 
 
 
 
 
 
 
 
 | 133 | > |  | 
 
 
 
 
 | 134 | > | wxTextCtrl* itemTextCtrl7 = new wxTextCtrl( itemPanel3, wxID_STATIC, _("oni.bungie.org"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY ); | 
 
 
 
 
 | 135 | > | itemBoxSizer4->Add(itemTextCtrl7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); | 
 
 
 
 
 | 136 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 137 |  | wxStdDialogButtonSizer* itemStdDialogButtonSizer8 = new wxStdDialogButtonSizer; | 
 
 
 
 
 
 
 
 
 
 
 | 138 | < |  | 
 
 
 
 
 
 
 
 
 | 138 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 139 |  | itemBoxSizer4->Add(itemStdDialogButtonSizer8, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 140 |  | wxButton* itemButton9 = new wxButton( itemPanel3, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 141 |  | itemStdDialogButtonSizer8->AddButton(itemButton9); | 
 
 
 
 
 
 
 
 
 
 
 | 142 | < |  | 
 
 
 
 
 
 
 
 
 | 142 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 143 |  | itemStdDialogButtonSizer8->Realize(); | 
 
 
 
 
 
 
 
 
 
 
 | 144 | < |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 145 | < | ////@end About content construction | 
 
 
 
 
 
 
 
 
 | 144 | > |  | 
 
 
 
 
 | 145 | > | ////@end About content construction | 
 
 
 
 
 
 
 
 
 
 
 | 146 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 147 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 148 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 162 |  | wxBitmap About::GetBitmapResource( const wxString& name ) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 163 |  | { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 164 |  | // Bitmap retrieval | 
 
 
 
 
 
 
 
 
 
 
 | 165 | < | ////@begin About bitmap retrieval | 
 
 
 
 
 
 
 
 
 | 165 | > | ////@begin About bitmap retrieval | 
 
 
 
 
 
 
 
 
 
 
 | 166 |  | wxUnusedVar(name); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 167 |  | return wxNullBitmap; | 
 
 
 
 
 
 
 
 
 
 
 | 168 | < | ////@end About bitmap retrieval | 
 
 
 
 
 
 
 
 
 | 168 | > | ////@end About bitmap retrieval | 
 
 
 
 
 
 
 
 
 
 
 | 169 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 170 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 171 |  | /* | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 175 |  | wxIcon About::GetIconResource( const wxString& name ) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 176 |  | { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 177 |  | // Icon retrieval | 
 
 
 
 
 
 
 
 
 
 
 | 178 | < | ////@begin About icon retrieval | 
 
 
 
 
 
 
 
 
 | 178 | > | ////@begin About icon retrieval | 
 
 
 
 
 
 
 
 
 
 
 | 179 |  | wxUnusedVar(name); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 180 |  | return wxNullIcon; | 
 
 
 
 
 
 
 
 
 
 
 | 181 | < | ////@end About icon retrieval | 
 
 
 
 
 
 
 
 
 | 181 | > | ////@end About icon retrieval | 
 
 
 
 
 
 
 
 
 
 
 | 182 |  | } |