| 3 |
#include "mnID.h" |
#include "mnID.h" |
| 4 |
#include "mnDef.h" |
#include "mnDef.h" |
| 5 |
#include "mnFrame.h" |
#include "mnFrame.h" |
| 6 |
|
#include "mnDialog.h" |
| 7 |
|
|
| 8 |
|
|
| 9 |
mnFrame::mnFrame(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): |
mnFrame::mnFrame(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): |
| 56 |
newItemRoot = searchTree->AppendItem(searchItemRoot, wxT(LABEL_NEW_ITEM), -1, -1, NULL); |
newItemRoot = searchTree->AppendItem(searchItemRoot, wxT(LABEL_NEW_ITEM), -1, -1, NULL); |
| 57 |
} |
} |
| 58 |
|
|
| 59 |
|
void mnFrame::showPlainTextCtrl() |
| 60 |
|
{ |
| 61 |
|
mnWikiDataEntryDialog* dlg = new mnWikiDataEntryDialog(this, -1, wxT("Malon Note")); |
| 62 |
|
dlg->ShowModal(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
void mnFrame::hidePlainTextCtrl() |
| 66 |
|
{ |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
|
| 70 |
void mnFrame::set_properties() |
void mnFrame::set_properties() |
| 71 |
{ |
{ |
| 79 |
|
|
| 80 |
void mnFrame::do_layout() |
void mnFrame::do_layout() |
| 81 |
{ |
{ |
|
// begin wxGlade: mnFrame::do_layout |
|
| 82 |
wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL); |
wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL); |
| 83 |
wxGridSizer* rightPanelSizer = new wxGridSizer(1, 1, 0, 0); |
rightPanelSizer = new wxGridSizer(1, 1, 0, 0); |
| 84 |
wxBoxSizer* leftPanelSizer = new wxBoxSizer(wxHORIZONTAL); |
wxBoxSizer* leftPanelSizer = new wxBoxSizer(wxHORIZONTAL); |
| 85 |
wxBoxSizer* topSizer = new wxBoxSizer(wxHORIZONTAL); |
wxBoxSizer* topSizer = new wxBoxSizer(wxHORIZONTAL); |
| 86 |
wxBoxSizer* labelSizer = new wxBoxSizer(wxHORIZONTAL); |
wxBoxSizer* labelSizer = new wxBoxSizer(wxHORIZONTAL); |
| 107 |
SetAutoLayout(true); |
SetAutoLayout(true); |
| 108 |
SetSizer(mainSizer); |
SetSizer(mainSizer); |
| 109 |
Layout(); |
Layout(); |
|
// end wxGlade |
|
| 110 |
|
|
| 111 |
searchTree->Expand(searchItemRoot); |
searchTree->Expand(searchItemRoot); |
| 112 |
searchTree->Expand(newItemRoot); |
searchTree->Expand(newItemRoot); |