| 1 |
// $Header: $cxx . . $ `<file>/src/about.cpp`/ |
| 2 |
/*************************************************************************** |
| 3 |
* Copyright (C) 2006-2012 by Guy Rutenberg * |
| 4 |
* [email protected] * |
| 5 |
* * |
| 6 |
* This program is free software; you can redistribute it and/or modify * |
| 7 |
* it under the terms of the GNU General Public License as published by * |
| 8 |
* the Free Software Foundation; either version 2 of the License, or * |
| 9 |
* (at your option) any later version. * |
| 10 |
* * |
| 11 |
* This program is distributed in the hope that it will be useful, * |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 |
* GNU General Public License for more details. * |
| 15 |
* * |
| 16 |
* You should have received a copy of the GNU General Public License * |
| 17 |
* along with this program; if not, write to the * |
| 18 |
* Free Software Foundation, Inc., * |
| 19 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
| 20 |
***************************************************************************/ |
| 21 |
|
| 22 |
#include "about.h"cxx . . $ `<file>/src/about.h`/ |
| 23 |
#include <wx/hyperlink.h> |
| 24 |
#include "icon64.xpm"cxx . . $ `<file>/src/icon64.xpm`/ |
| 25 |
#include "../config.h"cxx . . $ `<file>/config.h`/ |
| 26 |
|
| 27 |
using namespace about; |
| 28 |
AboutDialogcxx . . $ about/AboutDialog#::AboutDialogcxx . . $ about/AboutDialog#AboutDialog(4289b2e0b1e17a99).(wxWindowcxx . . $ wxWindow#* parent): |
| 29 |
wxDialogcxx . . $ wxDialog#wxDialog(d091a3913c1b2ac).(parent, wxID_ANYcxx . . $ wxID_ANY., wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("About ") wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!(PACKAGE_NAMEcxx . . $ `config.h:50:9`!), wxDefaultPositioncxx . . $ wxDefaultPosition., wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(-1,300), wxDEFAULT_DIALOG_STYLEcxx . . $ `<external>/1556222971298634691/dialog.h:31:9`! & (~wxCLOSE_BOXcxx . . $ `<external>/10524890736914687764/toplevel.h:69:9`!)) |
| 30 |
{ |
| 31 |
addControlsAndLayoutcxx . . $ about/AboutDialog#addControlsAndLayout(49f6e7a06ebc5aa8).(); |
| 32 |
SetEscapeIdcxx . . $ wxDialogBase#SetEscapeId(d4f767463ce0a6b3).(wxID_CLOSEcxx . . $ wxID_CLOSE.); |
| 33 |
} |
| 34 |
|
| 35 |
void AboutDialogcxx . . $ about/AboutDialog#::addControlsAndLayoutcxx . . $ about/AboutDialog#addControlsAndLayout(49f6e7a06ebc5aa8).() |
| 36 |
{ |
| 37 |
wxBoxSizercxx . . $ wxBoxSizer#* title_sizer = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.); |
| 38 |
wxStaticBitmapcxx . . $ wxStaticBitmap#* logo = new wxStaticBitmapcxx . . $ wxStaticBitmap#(this, wxID_ANYcxx . . $ wxID_ANY.,wxBitmapcxx . . $ wxBitmapBundle#wxBitmapBundle(98862698a0401ee5).(icon64_xpmcxx . . $ icon64_xpm.)); |
| 39 |
title_sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(logo, 0, wxALLcxx . . $ wxALL.|wxALIGN_CENTER_VERTICALcxx . . $ wxALIGN_CENTER_VERTICAL., 10); |
| 40 |
|
| 41 |
wxStaticTextcxx . . $ wxStaticText#* app_label = new wxStaticTextcxx . . $ wxStaticText#(this,wxID_ANYcxx . . $ wxID_ANY.,wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Open Yahtzee ") wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!(VERSIONcxx . . $ `config.h:68:9`!)); |
| 42 |
app_label->SetFontcxx . . $ wxStaticText#SetFont(827fb55dd75af24c).(wxFontcxx . . $ wxFont#wxFont(a47ae7ae35807315).(14, wxDEFAULTcxx . . $ wxDEFAULT., wxNORMALcxx . . $ wxNORMAL., wxBOLDcxx . . $ wxBOLD., false)); |
| •43 |
title_sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(app_label, 0, wxALLcxx . . $ wxALL.|wxALIGN_CENTER_VERTICALcxx . . $ wxALIGN_CENTER_VERTICAL., 10); |
| 44 |
|
| 45 |
wxNotebookcxx . . $ wxNotebook#* notebook_main = new wxNotebookcxx . . $ wxNotebook#(this, wxID_ANYcxx . . $ wxID_ANY.); |
| 46 |
notebookAboutTabcxx . . $ about/AboutDialog#notebookAboutTab(d540b0b01b7f6f56).(notebook_main); |
| 47 |
notebookAuthorTabcxx . . $ about/AboutDialog#notebookAuthorTab(d540b0b01b7f6f56).(notebook_main); |
| 48 |
notebookThanksTabcxx . . $ about/AboutDialog#notebookThanksTab(d540b0b01b7f6f56).(notebook_main); |
| 49 |
notebookLicenseTabcxx . . $ about/AboutDialog#notebookLicenseTab(d540b0b01b7f6f56).(notebook_main); |
| 50 |
|
| 51 |
wxBoxSizercxx . . $ wxBoxSizer#* top_sizer = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.); |
| 52 |
top_sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(title_sizer); |
| 53 |
top_sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(notebook_main, 1, wxEXPANDcxx . . $ wxEXPAND., 0); |
| 54 |
top_sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxButtoncxx . . $ wxButton#(this,wxID_CLOSEcxx . . $ wxID_CLOSE.), 0, wxALLcxx . . $ wxALL.|wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT., 10); |
| 55 |
|
| 56 |
SetSizercxx . . $ wxWindowBase#SetSizer(6b8f606b81107616).(top_sizer); |
| 57 |
Layoutcxx . . $ wxTopLevelWindowBase#Layout(c9857a73d68e59ba).(); |
| 58 |
} |
| 59 |
|
| 60 |
void AboutDialogcxx . . $ about/AboutDialog#::notebookAboutTabcxx . . $ about/AboutDialog#notebookAboutTab(d540b0b01b7f6f56).(wxNotebookcxx . . $ wxNotebook# *notebook) |
| 61 |
{ |
| 62 |
wxPanelcxx . . $ wxPanel#* panel = new wxPanelcxx . . $ wxPanel#(notebook, wxID_ANYcxx . . $ wxID_ANY.); |
| 63 |
wxBoxSizercxx . . $ wxBoxSizer#* sizer = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.); |
| 64 |
|
| 65 |
wxStaticTextcxx . . $ wxStaticText#* label_desc = new wxStaticTextcxx . . $ wxStaticText#(panel, wxID_ANYcxx . . $ wxID_ANY., wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("A full-featured wxWidgets version of\nthe classic dice game Yahtzee.")); |
| 66 |
sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(label_desc, 0, wxALLcxx . . $ wxALL.|wxALIGN_CENTER_HORIZONTALcxx . . $ wxALIGN_CENTER_HORIZONTAL., 10); |
| 67 |
|
| 68 |
wxStaticTextcxx . . $ wxStaticText#* label_copyright = new wxStaticTextcxx . . $ wxStaticText#(panel, wxID_ANYcxx . . $ wxID_ANY., wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("\xA9 2006-2012 Guy Rutenberg")); |
| 69 |
sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(label_copyright, 0, wxALLcxx . . $ wxALL.|wxALIGN_CENTER_HORIZONTALcxx . . $ wxALIGN_CENTER_HORIZONTAL., 10); |
| 70 |
|
| 71 |
sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxHyperlinkCtrlcxx . . $ wxHyperlinkCtrl#(panel,wxID_ANYcxx . . $ wxID_ANY.,OY_URLcxx . . $ about/OY_URL.,OY_URLcxx . . $ about/OY_URL.),0,wxALLcxx . . $ wxALL.|wxALIGN_CENTER_HORIZONTALcxx . . $ wxALIGN_CENTER_HORIZONTAL.,10); |
| 72 |
|
| 73 |
panel->SetSizercxx . . $ wxWindowBase#SetSizer(6b8f606b81107616).(sizer); |
| 74 |
|
| 75 |
notebook->AddPagecxx . . $ wxBookCtrlBase#AddPage(6ed82ed1a1dff39f).(panel, wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("About")); |
| 76 |
} |
| 77 |
|
| 78 |
void AboutDialogcxx . . $ about/AboutDialog#::notebookAuthorTabcxx . . $ about/AboutDialog#notebookAuthorTab(d540b0b01b7f6f56).(wxNotebookcxx . . $ wxNotebook# *notebook) |
| 79 |
{ |
| 80 |
wxTextCtrlcxx . . $ wxTextCtrl#* text = new wxTextCtrlcxx . . $ wxTextCtrl#wxTextCtrl(841ce057da6dc6d9).(notebook, wxID_ANYcxx . . $ wxID_ANY.,wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!(""),wxDefaultPositioncxx . . $ wxDefaultPosition.,wxDefaultSizecxx . . $ wxDefaultSize.,wxTE_MULTILINEcxx . . $ `<external>/14689491191722134862/defs.h:1874:9`!|wxTE_READONLYcxx . . $ `<external>/14689491191722134862/defs.h:1873:9`!); |
| 81 |
*text <<cxx . . $ wxTextCtrlBase#`operator<<`(bd64c26c00acec2e). wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Guy Rutenberg <[email protected]>\n"); |
| 82 |
|
| 83 |
notebook->AddPagecxx . . $ wxBookCtrlBase#AddPage(6ed82ed1a1dff39f).(text, wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Author")); |
| 84 |
} |
| 85 |
|
| 86 |
void AboutDialogcxx . . $ about/AboutDialog#::notebookThanksTabcxx . . $ about/AboutDialog#notebookThanksTab(d540b0b01b7f6f56).(wxNotebookcxx . . $ wxNotebook# *notebook) |
| 87 |
{ |
| 88 |
wxTextCtrlcxx . . $ wxTextCtrl#* text = new wxTextCtrlcxx . . $ wxTextCtrl#wxTextCtrl(841ce057da6dc6d9).(notebook, wxID_ANYcxx . . $ wxID_ANY.,wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!(""),wxDefaultPositioncxx . . $ wxDefaultPosition.,wxDefaultSizecxx . . $ wxDefaultSize.,wxTE_MULTILINEcxx . . $ `<external>/14689491191722134862/defs.h:1874:9`!|wxTE_READONLYcxx . . $ `<external>/14689491191722134862/defs.h:1873:9`!); |
| 89 |
*text <<cxx . . $ wxTextCtrlBase#`operator<<`(bd64c26c00acec2e). wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Seamous McGill <[email protected]>\n"); |
| 90 |
*text <<cxx . . $ wxTextCtrlBase#`operator<<`(bd64c26c00acec2e). wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!(" Logo and dice design\n\n"); |
| 91 |
|
| 92 |
*text <<cxx . . $ wxTextCtrlBase#`operator<<`(bd64c26c00acec2e). wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Neil Gierman <[email protected]>\n"); |
| 93 |
*text <<cxx . . $ wxTextCtrlBase#`operator<<`(bd64c26c00acec2e). wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!(" Help with RPM packages\n\n"); |
| 94 |
|
| 95 |
notebook->AddPagecxx . . $ wxBookCtrlBase#AddPage(6ed82ed1a1dff39f).(text, wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Thanks To")); |
| 96 |
} |
| 97 |
|
| 98 |
void AboutDialogcxx . . $ about/AboutDialog#::notebookLicenseTabcxx . . $ about/AboutDialog#notebookLicenseTab(d540b0b01b7f6f56).(wxNotebookcxx . . $ wxNotebook# *notebook) |
| 99 |
{ |
| 100 |
wxTextCtrlcxx . . $ wxTextCtrl#* text = new wxTextCtrlcxx . . $ wxTextCtrl#wxTextCtrl(841ce057da6dc6d9).(notebook, wxID_ANYcxx . . $ wxID_ANY.,wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!(""),wxDefaultPositioncxx . . $ wxDefaultPosition.,wxDefaultSizecxx . . $ wxDefaultSize.,wxTE_MULTILINEcxx . . $ `<external>/14689491191722134862/defs.h:1874:9`!|wxTE_READONLYcxx . . $ `<external>/14689491191722134862/defs.h:1873:9`!); |
| 101 |
*text <<cxx . . $ wxTextCtrlBase#`operator<<`(bd64c26c00acec2e). wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("This program is free software; you can redistribute ") |
| 102 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("it and/or modify it under the terms of the GNU General ") |
| 103 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Public License as published by the Free Software ") |
| 104 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Foundation; either version 2 of the License, or (at your ") |
| 105 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("option) any later version.\n\n") |
| 106 |
|
| 107 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("This program is distributed in the hope that it will be ") |
| 108 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("useful, but WITHOUT ANY WARRANTY; without even the ") |
| 109 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("implied warranty of MERCHANTABILITY or FITNESS FOR A ") |
| 110 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("PARTICULAR PURPOSE. See the GNU General Public License ") |
| 111 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("for more details. \n\n") |
| 112 |
|
| 113 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("You should have received a copy of the GNU General ") |
| 114 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Public License along with this program; if not, write to ") |
| 115 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("the\n") |
| 116 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("Free Software Foundation, Inc.,\n") |
| 117 |
wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("59 Temple Place - Suite 330, Boston, MA 02111-1307, USA."); |
| 118 |
|
| 119 |
notebook->AddPagecxx . . $ wxBookCtrlBase#AddPage(6ed82ed1a1dff39f).(text, wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("License Agreement")); |
| 120 |
} |