- Timestamp:
- 10/23/2008 08:51:44 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
MainFrame.cpp (modified) (3 diffs)
-
about.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainFrame.cpp
r182 r185 41 41 #include <wx/filename.h> 42 42 #include <wx/stdpaths.h> 43 #include <wx/aboutdlg.h>44 43 #include <wx/mstream.h> 45 44 … … 55 54 56 55 #include "icon32.xpm" 57 #include "openyahtzee_logo.png.h"58 56 59 57 //default values - design … … 387 385 void MainFrame::OnAbout(wxCommandEvent& event) 388 386 { 389 wxAboutDialogInfo info;390 info.SetName(wxT(PACKAGE_NAME));391 info.SetVersion(wxT(PACKAGE_VERSION));392 info.SetDescription(wxT("A cross-platform Yahtzee game."));393 info.SetCopyright(wxT("(C) 2006-2008 Guy Rutenberg"));394 info.SetWebSite(wxT("http://www.openyahtzee.org/"));395 396 wxMemoryInputStream istream(openyahtzee_logo_png, sizeof openyahtzee_logo_png);397 wxImage myimage_img(istream, wxBITMAP_TYPE_PNG);398 399 wxIcon logo;400 logo.CopyFromBitmap(wxBitmap(myimage_img));401 info.SetIcon(logo);402 403 info.AddDeveloper(wxT("Guy Rutenberg <guyrutenberg@gmail.com>"));404 info.AddArtist(wxT("Seamous Mc\nGill <johndoe@gmail.com>"));405 406 //wxAboutBox(info);407 #ifdef PORTABLE408 387 about::AboutDialog *about = new about::AboutDialog(this); 409 #else410 about::AboutDialog *about = new about::AboutDialog(this);411 #endif412 388 about->ShowModal(); 413 389 } -
trunk/src/about.cpp
r183 r185 27 27 using namespace about; 28 28 AboutDialog::AboutDialog(wxWindow* parent): 29 wxDialog(parent, wxID_ANY, wxT("About " PACKAGE_NAME), wxDefaultPosition, wxSize(-1,300), wxDEFAULT_DIALOG_STYLE)29 wxDialog(parent, wxID_ANY, wxT("About ") wxT(PACKAGE_NAME), wxDefaultPosition, wxSize(-1,300), wxDEFAULT_DIALOG_STYLE) 30 30 { 31 31 addControlsAndLayout(); … … 39 39 title_sizer->Add(logo, 0, wxALL|wxALIGN_CENTER_VERTICAL, 10); 40 40 41 wxStaticText* app_label = new wxStaticText(this,wxID_ANY,wxT("Open Yahtzee " VERSION));41 wxStaticText* app_label = new wxStaticText(this,wxID_ANY,wxT("Open Yahtzee ") wxT(VERSION)); 42 42 app_label->SetFont(wxFont(14, wxDEFAULT, wxNORMAL, wxBOLD, false)); 43 43 title_sizer->Add(app_label, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 10); … … 99 99 { 100 100 wxTextCtrl* text = new wxTextCtrl(notebook, wxID_ANY,wxT(""),wxDefaultPosition,wxDefaultSize,wxTE_MULTILINE|wxTE_READONLY); 101 *text << wxT("This program is free software; you can redistribute " 102 "it and/or modify it under the terms of the GNU General "103 "Public License as published by the Free Software "104 "Foundation; either version 2 of the License, or (at your "105 "option) any later version.\n\n"101 *text << wxT("This program is free software; you can redistribute ") 102 wxT("it and/or modify it under the terms of the GNU General ") 103 wxT("Public License as published by the Free Software ") 104 wxT("Foundation; either version 2 of the License, or (at your ") 105 wxT("option) any later version.\n\n") 106 106 107 "This program is distributed in the hope that it will be "108 "useful, but WITHOUT ANY WARRANTY; without even the "109 "implied warranty of MERCHANTABILITY or FITNESS FOR A "110 "PARTICULAR PURPOSE. See the GNU General Public License "111 "for more details. \n\n"107 wxT("This program is distributed in the hope that it will be ") 108 wxT("useful, but WITHOUT ANY WARRANTY; without even the ") 109 wxT("implied warranty of MERCHANTABILITY or FITNESS FOR A ") 110 wxT("PARTICULAR PURPOSE. See the GNU General Public License ") 111 wxT("for more details. \n\n") 112 112 113 "You should have received a copy of the GNU General "114 "Public License along with this program; if not, write to "115 "the\n"116 "Free Software Foundation, Inc.,\n"117 "59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.");113 wxT("You should have received a copy of the GNU General ") 114 wxT("Public License along with this program; if not, write to ") 115 wxT("the\n") 116 wxT("Free Software Foundation, Inc.,\n") 117 wxT("59 Temple Place - Suite 330, Boston, MA 02111-1307, USA."); 118 118 119 119 notebook->AddPage(text, wxT("License Agreement"));
Note: See TracChangeset
for help on using the changeset viewer.
