cpp/MainWindow.cpp
author viric <viriketo@gmail.com>
Sun, 13 Feb 2011 07:57:02 +0100
changeset 2 5331bd08a294
child 4 a3d29fb016c3
permissions -rw-r--r--
Starting a C++ version of the UI
#include <wx/wx.h>
#include <wx/image.h>
#include "MainWindow.hpp"

MainWindow::MainWindow()
    :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition)
{
    wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
    wxStaticText *label = new wxStaticText(this, wxID_ANY,
            _("Introdueix la frase:"));
    wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY);
    s->Add(label);
    s->Add(text);

    text->SetFocus();

    SetSizerAndFit(s);
}