ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/Installer/trunk/source/about.cpp
(Generate patch)

Comparing AE/Installer/trunk/source/about.cpp (file contents):
Revision 389 by gumby, Mon Jul 6 13:20:11 2009 UTC vs.
Revision 487 by iritscen, Wed Dec 30 01:51:38 2009 UTC

# Line 1 | Line 1
1 < /////////////////////////////////////////////////////////////////////////////
2 < // Name:        about.cpp
3 < // Purpose:    
4 < // Author:      
5 < // Modified by:
6 < // Created:     08/05/2009 11:10:32
7 < // RCS-ID:      
8 < // Copyright:  
9 < // Licence:    
10 < /////////////////////////////////////////////////////////////////////////////
11 <
12 < // For compilers that support precompilation, includes "wx/wx.h".
13 < #include "wx/wxprec.h"
14 <
15 < #ifdef __BORLANDC__
16 < #pragma hdrstop
17 < #endif
18 <
19 < #ifndef WX_PRECOMP
20 < #include "wx/wx.h"
21 < #endif
1 > /***************************************************************************\
2 > | Project: AE Installer                                                                                                         |
3 > | By: Gumby & Iritscen                                                                                                          |
4 > | File: About.cpp                                                                                                                       |
5 > | Function: Handles the About window!                                                                           |
6 > | Created: 08/05/2009 11:10:32                                                                                          |
7 > \***************************************************************************/
8  
9   ////@begin includes
10   ////@end includes
11 <
11 > #include "globals.h"
12   #include "about.h"
13  
14   ////@begin XPM images
15   ////@end XPM images
16  
31
17   /*
18   * About type definition
19   */
# Line 70 | Line 55 | About::About( wxWindow* parent, wxWindow
55  
56   bool About::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
57   {
58 < ////@begin About creation
58 >        ////@begin About creation
59      SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
60      wxDialog::Create( parent, id, caption, pos, size, style );
61 <
61 >        
62      CreateControls();
63      if (GetSizer())
64      {
65          GetSizer()->SetSizeHints(this);
66      }
67      Centre();
68 < ////@end About creation
68 >        ////@end About creation
69      return true;
70   }
71  
# Line 91 | Line 76 | bool About::Create( wxWindow* parent, wx
76  
77   About::~About()
78   {
79 < ////@begin About destruction
80 < ////@end About destruction
79 >        ////@begin About destruction
80 >        ////@end About destruction
81   }
82  
83  
# Line 102 | Line 87 | About::~About()
87  
88   void About::Init()
89   {
90 < ////@begin About member initialisation
91 < ////@end About member initialisation
90 >        ////@begin About member initialisation
91 >        ////@end About member initialisation
92   }
93  
94  
# Line 113 | Line 98 | void About::Init()
98  
99   void About::CreateControls()
100   {    
101 < ////@begin About content construction
101 >        ////@begin About content construction
102      About* itemDialog1 = this;
103 <
103 >        
104      wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
105      itemDialog1->SetSizer(itemBoxSizer2);
106 <
106 >        
107      wxPanel* itemPanel3 = new wxPanel( itemDialog1, ID_PANEL2, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxTAB_TRAVERSAL );
108      itemBoxSizer2->Add(itemPanel3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
109 <
109 >        
110      wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxVERTICAL);
111      itemPanel3->SetSizer(itemBoxSizer4);
112 <
113 <    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 );
112 >        
113 >        string aboutText = "AE/Mod Installer v";
114 >        aboutText = aboutText + INSTALLER_VERSION;
115 >        aboutText = aboutText + "\nby Gumby and Iritscen\n\n" +
116 >                                                        "AE credited to:\n" +
117 >                                                        "EdT: BGI troops, additional weapons\n" +
118 >                                                        "geyser: Original AE framework\n" +
119 >                                                        "Gumby: General AE framework, Windows Installer, add'l Daodan DLL coding\n" +
120 >                                                        "Iritscen: Mac port of Installer & add'l Installer coding\n" +
121 >                                                        "Loser: Improved combat animation and AI\n" +
122 >                                                        "Neo: OniSplit, documenting Oni, tech support\n" +
123 >                                                        "ONIrules: Additional weapons\n" +
124 >                                                        "Paradox: Documenting of Oni\n" +
125 >                                                        "RossyMiles: Daodan DLL port to C\n" +
126 >                                                        "SFeLi: Original asm Daodan DLL\n" +
127 >                                                        "ssg: Documenting Oni's game data";
128 >    wxStaticText* itemStaticText5 = new wxStaticText( itemPanel3, wxID_STATIC, _(aboutText.c_str()), 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  
# Line 162 | Line 162 | bool About::ShowToolTips()
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   /*
# Line 175 | Line 175 | wxBitmap About::GetBitmapResource( const
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)