#include "edit.h" // Edit module
#include "prefs.h" // Prefs
+#ifndef __WXMSW__
+ #include "../sample.xpm"
+#endif
//----------------------------------------------------------------------------
// resources
AppFrame::AppFrame (const wxString &title)
: wxFrame ((wxFrame *)NULL, wxID_ANY, title, wxDefaultPosition, wxSize(750,550),
- wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE) {
+ wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
+{
+ SetIcon(wxICON(sample));
// intitialize important variables
m_edit = NULL;
// edit events
void AppFrame::OnEdit (wxCommandEvent &event) {
- if (m_edit) m_edit->ProcessEvent (event);
+ if (m_edit) m_edit->GetEventHandler()->ProcessEvent (event);
}
// private functions
menuEdit->Enable (myID_GOTO, false);
menuEdit->AppendSeparator();
menuEdit->Append (myID_INDENTINC, _("&Indent increase\tTab"));
- menuEdit->Append (myID_INDENTRED, _("I&ndent reduce\tBksp"));
+ menuEdit->Append (myID_INDENTRED, _("I&ndent reduce\tShift+Tab"));
menuEdit->AppendSeparator();
menuEdit->Append (wxID_SELECTALL, _("&Select all\tCtrl+A"));
menuEdit->Append (myID_SELECTLINE, _("Select &line\tCtrl+L"));