]>
git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/dbgrid.h
81b73d2e9c2642ec3890419bbe0830ffd55f3f70
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 //----------------------------------------------------------------------------------------
11 #if !defined(wxUSE_NEW_GRID) || !(wxUSE_NEW_GRID)
12 #error "DBGrid requires the new wxGrid class"
14 //----------------------------------------------------------------------------------------
16 //----------------------------------------------------------------------------------------
17 class DBGrid
: public wxGrid
20 DBGrid(wxWindow
*parent
, const wxWindowID id
,const wxPoint
& pos
,const wxSize
& size
, long style
);
22 //---------------------------------------------------------------------------------------
23 int i_TabArt
; // Tab = 0 ; Page = 1;
24 int i_ViewNr
; // View Nummer in Tab / Page
25 int i_Which
; // Which View, Database is this/using
26 //---------------------------------------------------------------------------------------
28 wxDbInf
* ct_BrowserDB
;
30 wxMenu
*popupMenu1
; // OnDBClass
31 wxMenu
*popupMenu2
; // OnDBGrid & OnTableclass
33 //---------------------------------------------------------------------------------------
34 wxString logBuf
,Temp0
;
36 //---------------------------------------------------------------------------------------
37 void OnModusEdit(wxMenu
& menu
, wxCommandEvent
& event
);
38 void OnModusBrowse(wxMenu
& menu
, wxCommandEvent
& event
);
39 void OnMouseMove(wxMouseEvent
& event
);
40 int OnTableView(wxString Table
);
41 void OnLabelLeftClick( wxGridEvent
& );
42 void OnLabelRightClick( wxGridEvent
& );
43 void OnLabelLeftDClick( wxGridEvent
& );
44 void OnLabelRightDClick( wxGridEvent
& );
45 void OnCellLeftClick( wxGridEvent
& );
46 void OnCellRightClick( wxGridEvent
& );
47 void OnCellLeftDClick( wxGridEvent
& );
48 void OnCellRightDClick( wxGridEvent
& );
49 void OnRowSize( wxGridSizeEvent
& );
50 void OnColSize( wxGridSizeEvent
& );
51 void OnRangeSelected( wxGridRangeSelectEvent
& );
52 void OnCellChange( wxGridEvent
& );
53 //---------------------------------------------------------------------------------------
56 //----------------------------------------------------------------------------------------
57 #define GRID_01_BEGIN 1200
58 #define GRID_BROWSE 1201
59 #define GRID_EDIT 1202
60 #define GRID_01_END 1203
61 //----------------------------------------------------------------------------------------