mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
baf14f8121
That big 40MB file is useless so I merged the repos in a way that it dissapears forever from the main repo.
28 lines
611 B
C++
28 lines
611 B
C++
#include <wx\textdlg.h>
|
|
#include "Home.h"
|
|
|
|
Home::Home(const wxString& title)
|
|
: wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(750, 450))
|
|
{
|
|
wxPanel * panel = new wxPanel(this, -1);
|
|
|
|
wxBoxSizer *hbox = new wxBoxSizer(wxHORIZONTAL);
|
|
|
|
netlogList = new wxListBox(panel, ID_LISTBOX,
|
|
wxPoint(-1, -1), wxSize(-1, -1));
|
|
|
|
hbox->Add(netlogList, 3, wxEXPAND | wxALL, 20);
|
|
|
|
panel->SetSizer(hbox);
|
|
|
|
Centre();
|
|
|
|
netlogList->Append("Testing...");
|
|
}
|
|
|
|
void Home::AddNew(wxCommandEvent& event)
|
|
{
|
|
wxString str = wxGetTextFromUser(wxT("Add new item"));
|
|
if (str.Len() > 0)
|
|
netlogList->Append(str);
|
|
} |