]> git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/dbgrid.h
fixed bug with seeking beyond the end in wxStringInputStream::OnSysSeek() triggered...
[wxWidgets.git] / demos / dbbrowse / dbgrid.h
1 //----------------------------------------------------------------------------------------
2 // Name: DBGrid.h
3 // Purpose: shows seleted Table in a Grid
4 // Author: Mark Johnson
5 // Modified by: 20000126.mj10777
6 // Created:
7 // Copyright: (c) Mark Johnson
8 // Licence: wxWindows license
9 // RCS-ID: $Id$
10 //----------------------------------------------------------------------------------------
11
12 //----------------------------------------------------------------------------------------
13 class MainDoc;
14
15 //----------------------------------------------------------------------------------------
16 class DBGrid: public wxGrid
17 {
18 public:
19 DBGrid(wxWindow *parent, const wxWindowID id,const wxPoint& pos,const wxSize& size, long style);
20 virtual ~DBGrid();
21 //---------------------------------------------------------------------------------------
22 int i_TabArt; // Tab = 0 ; Page = 1;
23 int i_ViewNr; // View Nummer in Tab / Page
24 int i_Which; // Which View, Database is this/using
25 //---------------------------------------------------------------------------------------
26 MainDoc* pDoc;
27 wxDbInf* ct_BrowserDB;
28 BrowserDB* db_Br;
29 wxMenu *popupMenu1; // OnDBClass
30 wxMenu *popupMenu2; // OnDBGrid & OnTableclass
31 bool b_EditModus;
32 //---------------------------------------------------------------------------------------
33 wxString logBuf,Temp0;
34 wxPoint MousePos;
35 //---------------------------------------------------------------------------------------
36 void OnModusEdit(wxCommandEvent& event);
37 void OnModusBrowse(wxCommandEvent& event);
38 void OnMouseMove(wxMouseEvent& event);
39 int OnTableView(wxString Table);
40 //-----
41 void OnCellChange( wxGridEvent& );
42 void OnCellLeftClick( wxGridEvent& );
43 void OnCellLeftDClick( wxGridEvent& );
44 void OnCellRightClick( wxGridEvent& );
45 void OnCellRightDClick( wxGridEvent& );
46 void OnColSize( wxGridSizeEvent& );
47 void OnEditorShown( wxGridEvent& );
48 void OnEditorHidden( wxGridEvent& );
49 void OnLabelLeftClick( wxGridEvent& );
50 void OnLabelLeftDClick( wxGridEvent& );
51 void OnLabelRightClick( wxGridEvent& );
52 void OnLabelRightDClick( wxGridEvent& );
53 void OnRangeSelected( wxGridRangeSelectEvent& );
54 void OnRowSize( wxGridSizeEvent& );
55 void OnSelectCell( wxGridEvent& );
56 //---------------------------------------------------------------------------------------
57 DECLARE_EVENT_TABLE()
58 };
59
60 //----------------------------------------------------------------------------------------
61 #define GRID_01_BEGIN 1200
62 #define GRID_BROWSE 1201
63 #define GRID_EDIT 1202
64 #define GRID_01_END 1203
65 //----------------------------------------------------------------------------------------
66