//////////////////////////////////////////////////////////////////////////////
-// File: app.cpp
+// File: stctest.cpp
// Purpose: STC test application
// Maintainer: Otto Wyss
// Created: 2003-09-01
#endif
// for all others, include the necessary headers (this file is usually all you
-// need because it includes almost all 'standard' wxWindows headers)
+// need because it includes almost all 'standard' wxWidgets headers)
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
-//! wxWindows headers
+//! wxWidgets headers
#include <wx/config.h> // configuration support
#include <wx/filedlg.h> // file dialog support
#include <wx/filename.h> // filename support
#define APP_DESCR _("See http://wxguide.sourceforge.net/")
#define APP_MAINT _T("Otto Wyss")
-#define APP_VENDOR _T("wxWindows")
+#define APP_VENDOR _T("wxWidgets")
#define APP_COPYRIGTH _T("(C) 2003 Otto Wyss")
-#define APP_LICENCE _T("wxWindows")
+#define APP_LICENCE _T("wxWidgets")
#define APP_VERSION _T("0.1.alpha")
#define APP_BUILD __DATE__
-#define APP_WEBSITE _T("http://www.wxWindows.org")
+#define APP_WEBSITE _T("http://www.wxWidgets.org")
#define APP_MAIL _T("mailto://???")
#define NONAME _("<untitled>")
};
-// created dynamically by wxWindows
+// created dynamically by wxWidgets
DECLARE_APP (App);
//----------------------------------------------------------------------------
bool App::OnInit () {
wxInitAllImageHandlers();
-
+
// set application and vendor name
SetAppName (APP_NAME);
SetVendorName (APP_VENDOR);
END_EVENT_TABLE ()
AppFrame::AppFrame (const wxString &title)
- : wxFrame ((wxFrame *)NULL, -1, title, wxDefaultPosition, wxDefaultSize,
+ : wxFrame ((wxFrame *)NULL, -1, title, wxDefaultPosition, wxSize(750,550),
wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE) {
// intitialize important variables
return;
}
}
- Destroy();
}
+ m_edit->SetFilename (wxEmptyString);
+ m_edit->ClearAll();
+ m_edit->SetSavePoint();
}
// properties event handlers
SetSizerAndFit (totalpane);
- CenterOnScreen();
+ CenterOnScreen();
ShowModal();
}