www.pudn.com > TurboPadSource.tar.gz > child.h
/** * \class Child * MDI Child frame class * * Child frame class, holds the Text Control. */ #ifndef Child_H #define Child_H class Child; typedef Child* CPtr; #include#include #include #include "parent.h" #include "stextctrl.h" class Child : public wxMDIChildFrame { public: Child(PPtr parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, wxString fName = "Untitled"); ~Child(); STCPtr text; inline PPtr GetParent(); void SetHil(const wxString &newHil) { highlighter = newHil; } wxString GetHil() { return highlighter; } inline wxString GetFilename() { return fileName; } void SetFilename(const wxString &fName) { fileName = fName; } inline bool RefreshFile(); inline void CheckModTime(); inline void UpdateModTime(); inline void UpdatePos(); private: wxString fileName; wxString highlighter; // \todo Use an index for the highlighter instead of a string wxDateTime modTime; wxStatusBar* statusBar; void OnActivate(wxActivateEvent &event); void OnWindowClose(wxCloseEvent &event); DECLARE_EVENT_TABLE() }; #endif