Changeset 182 for trunk/src/about.cpp


Ignore:
Timestamp:
10/23/2008 07:58:28 AM (4 years ago)
Author:
guyru
Message:

about dialog rewrite - part 1

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/about.cpp

    r175 r182  
    11// $Header: $ 
    22/*************************************************************************** 
    3  *   Copyright (C) 2006-2007 by Guy Rutenberg   * 
     3 *   Copyright (C) 2006-2008 by Guy Rutenberg   * 
    44 *   guyrutenberg@gmail.com   * 
    55 *                                                                         * 
     
    1919 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * 
    2020 ***************************************************************************/ 
    21 // -*- C++ -*- generated by wxGlade 0.4.1cvs on Tue Feb 27 17:58:29 2007 from /home/guy/about.wgt 
    2221 
    23 #include "About.h" 
     22#include "about.h" 
     23#include <wx/hyperlink.h> 
    2424#include "icon64.xpm" 
     25#include "../config.h" 
    2526 
    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) 
     27using namespace about; 
     28AboutDialog::AboutDialog(wxWindow* parent): 
     29    wxDialog(parent, wxID_ANY, wxT("About " PACKAGE_NAME), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE) 
    2930{ 
    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 logo 
    36         //wxImage tempimage = logo->ConvertToImage(); 
    3731        wxBitmap *logo = new wxBitmap;  
    3832        *logo = wxBitmap(icon64_xpm); 
     
    5044        bitmap_1 = new wxDynamicBitmap((wxWindow*)this, (wxWindowID)wxID_ANY,logo); 
    5145#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)); 
    5347#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)); 
    5549#endif 
    5650        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-2007 Guy 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/")); 
    5953        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")); 
    6054        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")); 
     
    9185    sizer_3->Add(label_desc, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 10); 
    9286    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); 
    9489    notebook_main_pane_about->SetSizer(sizer_3); 
    9590    sizer_4->Add(label_7, 0, wxALL, 10); 
Note: See TracChangeset for help on using the changeset viewer.