00001
00002
00003
00004
00005
00006
00007
00009
00010 #ifndef __flatgridcelleditor_h__
00011 #define __flatgridcelleditor_h__
00012
00013 #include <wx/wxprec.h>
00014
00015 #ifndef WX_PRECOMP
00016 #include "wx/wx.h"
00017 #endif
00018
00019 #include <wx/grid.h>
00020
00021 #define EVT_FlatTextCtrl_Navigate 111 // FIXME: use a custom event
00022
00023 namespace wx
00024 {
00025
00026 class FlatGridCellNumberEditor : public wxGridCellNumberEditor
00027 {
00028
00029
00030
00031 public:
00032 FlatGridCellNumberEditor();
00033 ~FlatGridCellNumberEditor()
00034 {}
00035
00036
00037
00038
00039 private:
00040
00041
00042 public:
00043
00044 void Create
00045 (
00046 wxWindow * parent,
00047 wxWindowID id,
00048 wxEvtHandler * evtHandler
00049 );
00050
00051
00052 private:
00053 };
00054
00062 class FlatTextCtrl : public wxTextCtrl
00063 {
00064
00065
00066
00067 public:
00068 FlatTextCtrl
00069 (
00070 wxWindow *parent,
00071 wxWindowID id
00072 );
00073 ~FlatTextCtrl()
00074 {}
00075
00076
00077
00078
00079 private:
00080 void OnKeyDown(wxKeyEvent& evt);
00081
00082
00083 public:
00084
00085
00086
00087 private:
00088
00089 DECLARE_EVENT_TABLE()
00090 };
00091
00092 }
00093
00094 #endif // ndef __flatgridcelleditor_h__