From cf8ac43354724ec0ae02dec6472bea6c689cc190 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Mon, 30 Mar 2015 16:38:52 -0400 Subject: [PATCH] Add README and Edit menu --- README.md | 14 ++++++++++++++ TyroMain.cpp | 5 ++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..17abf73 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +#Tyro + +A Cross-platform Code Editor + +### Planned Features + +* Syntax Highlighting +* Line Numbers +* Custom Syntax themes +* SFTP editing + +### Building +* Make sure wxWidgets is installed, version 2.8 or 3 +* Open the Code::Blocks project and compile diff --git a/TyroMain.cpp b/TyroMain.cpp index bc29ad4..9e57854 100644 --- a/TyroMain.cpp +++ b/TyroMain.cpp @@ -50,15 +50,18 @@ END_EVENT_TABLE() TyroFrame::TyroFrame(wxFrame *frame, const wxString& title) : wxFrame(frame, -1, title) { -// create a menu bar + // create a menu bar wxMenuBar* mbar = new wxMenuBar(); wxMenu* fileMenu = new wxMenu(_T("")); + wxMenu* editMenu = new wxMenu(_T("")); + fileMenu->Append(wxID_EXIT, _("&Quit\tAlt-F4"), _("Quit the application")); mbar->Append(fileMenu, _("&File")); wxMenu* helpMenu = new wxMenu(_T("")); helpMenu->Append(wxID_ABOUT, _("&About\tF1"), _("Show info about this application")); + mbar->Append(editMenu, _("&Edit")); mbar->Append(helpMenu, _("&Help")); #ifdef __WXMAC__