// -*- C++ -*-
//
// generated by wxGlade "faked test version"
//
// 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 "CPPOgg3.h"

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



CPPOgg3_MyDialog::CPPOgg3_MyDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
    wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
{
    // begin wxGlade: CPPOgg3_MyDialog::CPPOgg3_MyDialog
    notebook_1 = new wxNotebook(this, wxID_ANY);
    notebook_1_pane_4 = new wxPanel(notebook_1, wxID_ANY);
    notebook_1_pane_3 = new wxPanel(notebook_1, wxID_ANY);
    notebook_1_pane_2 = new wxPanel(notebook_1, wxID_ANY);
    notebook_1_pane_1 = new wxPanel(notebook_1, wxID_ANY);
    text_ctrl_1 = new wxTextCtrl(notebook_1_pane_1, wxID_ANY, wxEmptyString);
    button_3 = new wxButton(notebook_1_pane_1, wxID_OPEN, wxEmptyString);
    const wxString radio_box_1_choices[] = {
        _("44 kbit"),
        _("128 kbit"),
    };
    radio_box_1 = new wxRadioBox(notebook_1_pane_2, wxID_ANY, _("Sampling Rate"), wxDefaultPosition, wxDefaultSize, 2, radio_box_1_choices, 0, wxRA_SPECIFY_ROWS);
    text_ctrl_2 = new wxTextCtrl(notebook_1_pane_3, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE);
    label_2 = new wxStaticText(notebook_1_pane_4, wxID_ANY, _("File name:"));
    text_ctrl_3 = new wxTextCtrl(notebook_1_pane_4, wxID_ANY, wxEmptyString);
    button_4 = new wxButton(notebook_1_pane_4, wxID_OPEN, wxEmptyString);
    checkbox_1 = new wxCheckBox(notebook_1_pane_4, wxID_ANY, _("Overwrite existing file"));
    static_line_1 = new wxStaticLine(this, wxID_ANY);
    button_5 = new wxButton(this, wxID_CLOSE, wxEmptyString);
    button_2 = new wxButton(this, wxID_CANCEL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxBU_TOP);
    button_1 = new wxButton(this, wxID_OK, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxBU_TOP);

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


void CPPOgg3_MyDialog::set_properties()
{
    // begin wxGlade: CPPOgg3_MyDialog::set_properties
    SetTitle(_("mp3 2 ogg"));
    SetSize(wxSize(500, 300));
    radio_box_1->SetSelection(0);
    checkbox_1->SetToolTip(_("Overwrite an existing file"));
    checkbox_1->SetValue(1);
    // end wxGlade
}


void CPPOgg3_MyDialog::do_layout()
{
    // begin wxGlade: CPPOgg3_MyDialog::do_layout
    wxFlexGridSizer* sizer_1 = new wxFlexGridSizer(3, 1, 0, 0);
    wxFlexGridSizer* sizer_2 = new wxFlexGridSizer(1, 3, 0, 0);
    wxFlexGridSizer* grid_sizer_2 = new wxFlexGridSizer(2, 3, 0, 0);
    wxBoxSizer* sizer_3 = new wxBoxSizer(wxHORIZONTAL);
    wxBoxSizer* sizer_4 = new wxBoxSizer(wxHORIZONTAL);
    wxFlexGridSizer* grid_sizer_1 = new wxFlexGridSizer(1, 3, 0, 0);
    wxStaticText* label_1 = new wxStaticText(notebook_1_pane_1, wxID_ANY, _("File name:"));
    grid_sizer_1->Add(label_1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
    grid_sizer_1->Add(text_ctrl_1, 1, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5);
    grid_sizer_1->Add(button_3, 0, wxALL, 5);
    notebook_1_pane_1->SetSizer(grid_sizer_1);
    grid_sizer_1->AddGrowableCol(1);
    sizer_4->Add(radio_box_1, 1, wxALL|wxEXPAND|wxSHAPED, 5);
    notebook_1_pane_2->SetSizer(sizer_4);
    sizer_3->Add(text_ctrl_2, 1, wxALL|wxEXPAND, 5);
    notebook_1_pane_3->SetSizer(sizer_3);
    grid_sizer_2->Add(label_2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
    grid_sizer_2->Add(text_ctrl_3, 0, wxALL|wxEXPAND, 5);
    grid_sizer_2->Add(button_4, 0, wxALL, 5);
    grid_sizer_2->Add(20, 20, 0, 0, 0);
    grid_sizer_2->Add(checkbox_1, 0, wxALL|wxEXPAND, 5);
    grid_sizer_2->Add(20, 20, 0, 0, 0);
    notebook_1_pane_4->SetSizer(grid_sizer_2);
    grid_sizer_2->AddGrowableCol(1);
    notebook_1->AddPage(notebook_1_pane_1, _("Input File"));
    notebook_1->AddPage(notebook_1_pane_2, _("Converting Options"));
    notebook_1->AddPage(notebook_1_pane_3, _("Converting Progress"));
    notebook_1->AddPage(notebook_1_pane_4, _("Output File"));
    sizer_1->Add(notebook_1, 1, wxEXPAND, 0);
    sizer_1->Add(static_line_1, 0, wxALL|wxEXPAND, 5);
    sizer_2->Add(button_5, 0, wxALIGN_RIGHT|wxALL, 5);
    sizer_2->Add(button_2, 0, wxALIGN_RIGHT|wxALL, 5);
    sizer_2->Add(button_1, 0, wxALIGN_RIGHT|wxALL, 5);
    sizer_1->Add(sizer_2, 0, wxALIGN_RIGHT, 0);
    SetSizer(sizer_1);
    sizer_1->AddGrowableRow(0);
    sizer_1->AddGrowableCol(0);
    Layout();
    Centre();
    // end wxGlade
}


BEGIN_EVENT_TABLE(CPPOgg3_MyDialog, wxDialog)
    // begin wxGlade: CPPOgg3_MyDialog::event_table
    EVT_BUTTON(wxID_ANY, CPPOgg3_MyDialog::startConverting)
    // end wxGlade
END_EVENT_TABLE();


void CPPOgg3_MyDialog::startConverting(wxCommandEvent &event)
{
    event.Skip();
    // notify the user that he hasn't implemented the event handler yet
    wxLogDebug(wxT("Event handler (CPPOgg3_MyDialog::startConverting) not implemented yet"));
}


// wxGlade: add CPPOgg3_MyDialog event handlers


CPPOgg3_MyFrame::CPPOgg3_MyFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
    wxFrame(parent, id, title, pos, size, wxDEFAULT_FRAME_STYLE)
{
    // begin wxGlade: CPPOgg3_MyFrame::CPPOgg3_MyFrame
    grid_1 = new wxGrid(this, wxID_ANY);
    static_line_2 = new wxStaticLine(this, wxID_ANY);
    button_6 = new wxButton(this, wxID_CLOSE, wxEmptyString);

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


void CPPOgg3_MyFrame::set_properties()
{
    // begin wxGlade: CPPOgg3_MyFrame::set_properties
    SetTitle(_("FrameOggCompressionDetails"));
    SetSize(wxSize(400, 300));
    grid_1->CreateGrid(8, 3);
    button_6->SetFocus();
    button_6->SetDefault();
    // end wxGlade
}


void CPPOgg3_MyFrame::do_layout()
{
    // begin wxGlade: CPPOgg3_MyFrame::do_layout
    wxBoxSizer* sizer_5 = new wxBoxSizer(wxVERTICAL);
    wxFlexGridSizer* grid_sizer_3 = new wxFlexGridSizer(3, 1, 0, 0);
    grid_sizer_3->Add(grid_1, 1, wxEXPAND, 0);
    grid_sizer_3->Add(static_line_2, 0, wxALL|wxEXPAND, 5);
    grid_sizer_3->Add(button_6, 0, wxALIGN_RIGHT|wxALL, 5);
    grid_sizer_3->AddGrowableRow(0);
    grid_sizer_3->AddGrowableCol(0);
    sizer_5->Add(grid_sizer_3, 1, wxEXPAND, 0);
    SetSizer(sizer_5);
    Layout();
    // end wxGlade
}


class MyApp: public wxApp {
public:
    bool OnInit();
protected:
    wxLocale m_locale;  // locale we'll be using
};

IMPLEMENT_APP(MyApp)

bool MyApp::OnInit()
{
    m_locale.Init();
#ifdef APP_LOCALE_DIR
    m_locale.AddCatalogLookupPathPrefix(wxT(APP_LOCALE_DIR));
#endif
    m_locale.AddCatalog(wxT(APP_CATALOG));

    wxInitAllImageHandlers();
    CPPOgg3_MyDialog* Mp3_To_Ogg = new CPPOgg3_MyDialog(NULL, wxID_ANY, wxEmptyString);
    SetTopWindow(Mp3_To_Ogg);
    Mp3_To_Ogg->Show();
    return true;
}
