]>
git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/dbgrid.h
1 //----------------------------------------------------------------------------------------
3 // Purpose: shows seleted Table in a Grid
4 // Author: Mark Johnson
5 // Modified by: 20000126.mj10777
7 // Copyright: (c) Mark Johnson
8 // Licence: wxWindows license
10 //----------------------------------------------------------------------------------------
12 //----------------------------------------------------------------------------------------
15 //----------------------------------------------------------------------------------------
16 class DBGrid
: public wxGrid
19 DBGrid(wxWindow
*parent
, const wxWindowID id
,const wxPoint
& pos
,const wxSize
& size
, long style
);
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 //---------------------------------------------------------------------------------------
27 wxDbInf
* ct_BrowserDB
;
29 wxMenu
*popupMenu1
; // OnDBClass
30 wxMenu
*popupMenu2
; // OnDBGrid & OnTableclass
32 //---------------------------------------------------------------------------------------
33 wxString logBuf
,Temp0
;
35 //---------------------------------------------------------------------------------------
36 void OnModusEdit(wxCommandEvent
& event
);
37 void OnModusBrowse(wxCommandEvent
& event
);
38 void OnMouseMove(wxMouseEvent
& event
);
39 int OnTableView(wxString Table
);
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 //---------------------------------------------------------------------------------------
60 //----------------------------------------------------------------------------------------
61 #define GRID_01_BEGIN 1200
62 #define GRID_BROWSE 1201
63 #define GRID_EDIT 1202
64 #define GRID_01_END 1203
65 //----------------------------------------------------------------------------------------