panthema / 2013 / sound-of-sorting / sound-of-sorting-0.6 / src / wxg / WAbout_wxg.cpp (Download File)
// -*- C++ -*-
//
// generated by wxGlade 01d8bb798de7+ on Wed May 22 21:25:38 2013
//
// Example for compiling a single file project under Linux using g++:
//  g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp
//
// Example for compiling a multi file project under Linux using g++:
//  g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp
//

#include <wx/wx.h>
#include "WAbout_wxg.h"

// begin wxGlade: ::extracode
// end wxGlade


WAbout_wxg::WAbout_wxg(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
    wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE)
{
    // begin wxGlade: WAbout_wxg::WAbout_wxg
    labelTitle = new wxStaticText(this, wxID_ANY, _("The Sound of Sorting"));
    labelBuildDate = new wxStaticText(this, wxID_ANY, _("Build Time: "), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE);
    okButton = new wxButton(this, wxID_OK, wxEmptyString);

    set_properties();
    do_layout();
    // end wxGlade
}


void WAbout_wxg::set_properties()
{
    // begin wxGlade: WAbout_wxg::set_properties
    SetTitle(_("About"));
    labelTitle->SetFont(wxFont(14, wxDEFAULT, wxNORMAL, wxNORMAL, 0, wxT("")));
    // end wxGlade
}


void WAbout_wxg::do_layout()
{
    // begin wxGlade: WAbout_wxg::do_layout
    wxBoxSizer* sizer_1 = new wxBoxSizer(wxVERTICAL);
    sizer_1->Add(labelTitle, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 12);
    wxStaticText* labelInfo = new wxStaticText(this, wxID_ANY, _("Visualization and \"audibilization\" of many\npopular sorting algorithms for integers.\nAlso counts the number of comparisons\nand array accesses while running."));
    sizer_1->Add(labelInfo, 0, wxLEFT|wxRIGHT|wxBOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 12);
    wxStaticText* labelCopyright = new wxStaticText(this, wxID_ANY, _("Copyright (c) 2013\nTimo Bingmann <tb@panthema.net>"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE);
    sizer_1->Add(labelCopyright, 1, wxLEFT|wxRIGHT|wxBOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 12);
    wxHyperlinkCtrl* hyperlink = new wxHyperlinkCtrl(this, wxID_ANY, _("http://panthema.net/2013/sound-of-sorting"), _("http://panthema.net/2013/sound-of-sorting"));
    sizer_1->Add(hyperlink, 0, wxLEFT|wxRIGHT|wxBOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 12);
    sizer_1->Add(labelBuildDate, 0, wxLEFT|wxRIGHT|wxBOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 12);
    sizer_1->Add(okButton, 0, wxLEFT|wxRIGHT|wxBOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 15);
    SetSizer(sizer_1);
    sizer_1->Fit(this);
    Layout();
    Centre();
    // end wxGlade
}