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
viriketo@2
     1
#include <wx/wx.h>
viriketo@2
     2
#include <wx/image.h>
viriketo@2
     3
#include "MainWindow.hpp"
viriketo@2
     4
viriketo@2
     5
MainWindow::MainWindow()
viriketo@2
     6
    :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition)
viriketo@2
     7
{
viriketo@2
     8
    wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
viriketo@2
     9
    wxStaticText *label = new wxStaticText(this, wxID_ANY,
viriketo@2
    10
            _("Introdueix la frase:"));
viriketo@2
    11
    wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY);
viriketo@2
    12
    s->Add(label);
viriketo@2
    13
    s->Add(text);
viriketo@2
    14
viriketo@2
    15
    text->SetFocus();
viriketo@2
    16
viriketo@2
    17
    SetSizerAndFit(s);
viriketo@2
    18
}