summaryrefslogtreecommitdiff
path: root/Tox_GUI/gui/home/Home.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tox_GUI/gui/home/Home.cpp')
-rw-r--r--Tox_GUI/gui/home/Home.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/Tox_GUI/gui/home/Home.cpp b/Tox_GUI/gui/home/Home.cpp
new file mode 100644
index 00000000..f30f8af3
--- /dev/null
+++ b/Tox_GUI/gui/home/Home.cpp
@@ -0,0 +1,28 @@
1#include <wx\textdlg.h>
2#include "Home.h"
3
4Home::Home(const wxString& title)
5 : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(750, 450))
6{
7 wxPanel * panel = new wxPanel(this, -1);
8
9 wxBoxSizer *hbox = new wxBoxSizer(wxHORIZONTAL);
10
11 netlogList = new wxListBox(panel, ID_LISTBOX,
12 wxPoint(-1, -1), wxSize(-1, -1));
13
14 hbox->Add(netlogList, 3, wxEXPAND | wxALL, 20);
15
16 panel->SetSizer(hbox);
17
18 Centre();
19
20 netlogList->Append("Testing...");
21}
22
23void Home::AddNew(wxCommandEvent& event)
24{
25 wxString str = wxGetTextFromUser(wxT("Add new item"));
26 if (str.Len() > 0)
27 netlogList->Append(str);
28} \ No newline at end of file