]>
git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/dbgrid.h
1 //---------------------------------------------------------------------------
4 // Author: Mark Johnson
5 // Modified by: 20000126.mj10777
7 // Copyright: (c) Mark Johnson
8 // Licence: wxWindows license
10 //---------------------------------------------------------------------------
12 //---------------------------------------------------------------------------
13 class DBGrid
: public wxGrid
16 DBGrid(wxWindow
*parent
, const wxWindowID id
,const wxPoint
& pos
,const wxSize
& size
, long style
);
18 //-------------------------------------------
19 int i_TabArt
; // Tab = 0 ; Page = 1;
20 int i_ViewNr
; // View Nummer in Tab / Page
21 int i_Which
; // Which View, Database is this/using
22 //-------------------------------------------
25 wxDbInf
* ct_BrowserDB
;
27 wxMenu
*popupMenu1
; // OnDBClass
28 wxMenu
*popupMenu2
; // OnDBGrid & OnTableclass
30 //-------------------------------------------
31 wxString logBuf
,Temp0
;
33 //-------------------------------------------
34 void OnModusEdit(wxMenu
& menu
, wxCommandEvent
& event
);
35 void OnModusBrowse(wxMenu
& menu
, wxCommandEvent
& event
);
36 void OnMouseMove(wxMouseEvent
& event
);
37 int OnTableView(wxString Table
);
38 void OnLabelLeftClick( wxGridEvent
& );
39 void OnLabelRightClick( wxGridEvent
& );
40 void OnLabelLeftDClick( wxGridEvent
& );
41 void OnLabelRightDClick( wxGridEvent
& );
42 void OnCellLeftClick( wxGridEvent
& );
43 void OnCellRightClick( wxGridEvent
& );
44 void OnCellLeftDClick( wxGridEvent
& );
45 void OnCellRightDClick( wxGridEvent
& );
46 void OnRowSize( wxGridSizeEvent
& );
47 void OnColSize( wxGridSizeEvent
& );
48 void OnRangeSelected( wxGridRangeSelectEvent
& );
49 void OnCellChange( wxGridEvent
& );
50 //-------------------------------------------
53 //---------------------------------------------------------------------------
54 #define GRID_01_BEGIN 1200
55 #define GRID_BROWSE 1201
56 #define GRID_EDIT 1202
57 #define GRID_01_END 1203
58 //------------------------------------------------------------------------------