- Timestamp:
- 10/23/2008 07:58:28 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
- 2 moved
-
MainFrame.cpp (modified) (4 diffs)
-
Makefile.am (modified) (2 diffs)
-
about.cpp (moved) (moved from trunk/src/About.cpp) (4 diffs)
-
about.h (moved) (moved from trunk/src/About.h) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainFrame.cpp
r180 r182 31 31 #include "wxDynamicBitmap.h" 32 32 #include "highscores_dialog.h" 33 #include " About.h"33 #include "about.h" 34 34 #include "configuration.h" 35 35 #include "settings_dialog.h" … … 41 41 #include <wx/filename.h> 42 42 #include <wx/stdpaths.h> 43 #include <wx/aboutdlg.h> 44 #include <wx/mstream.h> 43 45 44 46 //include the images for the dice … … 53 55 54 56 #include "icon32.xpm" 57 #include "openyahtzee_logo.png.h" 55 58 56 59 //default values - design … … 384 387 void MainFrame::OnAbout(wxCommandEvent& event) 385 388 { 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); 386 407 #ifdef PORTABLE 387 AboutDialog *about = new AboutDialog(this,wxID_ANY,wxT("About Open Yahtzee PE"));408 about::AboutDialog *about = new about::AboutDialog(this); 388 409 #else 389 AboutDialog *about = new AboutDialog(this,wxID_ANY,wxT("About Open Yahtzee"));410 about::AboutDialog *about = new about::AboutDialog(this); 390 411 #endif 391 412 about->ShowModal(); -
trunk/src/Makefile.am
r180 r182 1 1 bin_PROGRAMS = openyahtzee 2 2 openyahtzee_SOURCES = \ 3 About.cpp \ 3 about.cpp \ 4 about.h \ 4 5 ../config.h \ 5 6 configuration.cpp \ … … 31 32 32 33 noinst_HEADERS = \ 33 About.h \34 34 DBwrapper.h \ 35 35 openyahtzee.ico \ -
trunk/src/about.cpp
r175 r182 1 1 // $Header: $ 2 2 /*************************************************************************** 3 * Copyright (C) 2006-200 7by Guy Rutenberg *3 * Copyright (C) 2006-2008 by Guy Rutenberg * 4 4 * guyrutenberg@gmail.com * 5 5 * * … … 19 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 20 ***************************************************************************/ 21 // -*- C++ -*- generated by wxGlade 0.4.1cvs on Tue Feb 27 17:58:29 2007 from /home/guy/about.wgt22 21 23 #include "About.h" 22 #include "about.h" 23 #include <wx/hyperlink.h> 24 24 #include "icon64.xpm" 25 #include "../config.h" 25 26 26 27 AboutDialog::AboutDialog(wxWindow* parent , int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):28 wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE|wxMINIMIZE_BOX)27 using namespace about; 28 AboutDialog::AboutDialog(wxWindow* parent): 29 wxDialog(parent, wxID_ANY, wxT("About " PACKAGE_NAME), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE) 29 30 { 30 //wxString temp= wxT(DATA_DIR);31 //temp += wxT("/OpenYahtzee/icon.gif");32 33 //wxBitmap *logo = new wxBitmap(temp, wxBITMAP_TYPE_GIF);34 35 //scale logo36 //wxImage tempimage = logo->ConvertToImage();37 31 wxBitmap *logo = new wxBitmap; 38 32 *logo = wxBitmap(icon64_xpm); … … 50 44 bitmap_1 = new wxDynamicBitmap((wxWindow*)this, (wxWindowID)wxID_ANY,logo); 51 45 #ifdef PORTABLE 52 app_label = new wxStaticText(this, -1, wxT("Open Yahtzee Portable Edition 1.8.0"));46 app_label = new wxStaticText(this, -1, wxT("Open Yahtzee Portable Edition " VERSION)); 53 47 #else 54 app_label = new wxStaticText(this, -1, wxT("Open Yahtzee 1.8.0"));48 app_label = new wxStaticText(this, -1, wxT("Open Yahtzee " VERSION)); 55 49 #endif 56 50 label_desc = new wxStaticText(notebook_main_pane_about, -1, wxT("A full-featured wxWidgets version of\nthe classic dice game Yahtzee.")); 57 label_copyright = new wxStaticText(notebook_main_pane_about, -1, wxT("( c) 2006-2007Guy Rutenberg"));58 label_1 = new wxStaticText(notebook_main_pane_about, -1, wxT("http://openyahtzee.sourceforge.net/"));51 label_copyright = new wxStaticText(notebook_main_pane_about, -1, wxT("(C) 2006-2008 Guy Rutenberg")); 52 //label_1 = new wxStaticText(notebook_main_pane_about, -1, wxT("http://openyahtzee.sourceforge.net/")); 59 53 label_7 = new wxStaticText(notebook_main_pane_authors, -1, wxT("Please report bugs to openyahtzee-users@lists.sourceforge.net.\n\nGuy Rutenberg\n\tguyrutenberg@gmail.com\n\tAuthor, maintainer")); 60 54 label_6 = new wxStaticText(notebook_main_pane_thanks, -1, wxT("Seamous McGill\n\tjohndoe@gmail.com\n\tLogo and dice design\n\nNeil Gierman\n\tngierman@roadrunn.com\n\tRPM packages")); … … 91 85 sizer_3->Add(label_desc, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 10); 92 86 sizer_3->Add(label_copyright, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 10); 93 sizer_3->Add(label_1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 10); 87 //sizer_3->Add(label_1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 10); 88 sizer_3->Add(new wxHyperlinkCtrl(notebook_main_pane_about,wxID_ANY,OY_URL,OY_URL),0,wxALL|wxALIGN_CENTER_HORIZONTAL,10); 94 89 notebook_main_pane_about->SetSizer(sizer_3); 95 90 sizer_4->Add(label_7, 0, wxALL, 10); -
trunk/src/about.h
r84 r182 1 // $Header: $2 1 /*************************************************************************** 3 * Copyright (C) 2006 by Guy Rutenberg *2 * Copyright (C) 2006-2008 by Guy Rutenberg * 4 3 * guyrutenberg@gmail.com * 5 4 * * … … 19 18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 19 ***************************************************************************/ 21 // -*- C++ -*- generated by wxGlade 0.4.1cvs on Tue Feb 27 17:58:29 2007 from /home/guy/about.wgt 20 21 #ifndef OPENYAHTZEE_ABOUT_INC 22 #define OPENYAHTZEE_ABOUT_INC 22 23 23 24 #include <wx/wx.h> … … 25 26 #include "wxDynamicBitmap.h" 26 27 27 // begin wxGlade: ::dependencies28 28 #include <wx/notebook.h> 29 // end wxGlade30 29 31 32 #ifndef ABOUT_H 33 #define ABOUT_H 34 30 namespace about { 35 31 36 32 class AboutDialog: public wxDialog { 37 33 public: 38 // begin wxGlade: AboutDialog::ids 39 // end wxGlade 40 41 AboutDialog(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE); 34 AboutDialog(wxWindow* parent); 42 35 43 36 private: 44 // begin wxGlade: AboutDialog::methods45 37 void set_properties(); 46 38 void do_layout(); 47 // end wxGlade48 39 49 40 protected: 50 // begin wxGlade: AboutDialog::attributes51 41 wxDynamicBitmap* bitmap_1; 52 42 wxStaticText* app_label; … … 63 53 wxNotebook* notebook_main; 64 54 wxButton* close_button; 65 // end wxGlade 66 }; // wxGlade: end class 55 }; 56 57 static const wxString OY_URL = wxT("http://www.openyahtzee.org/"); 58 59 } 67 60 68 61
Note: See TracChangeset
for help on using the changeset viewer.
