]> git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/dbgrid.h
documented wxSpinCtrl
[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 #if !defined(wxUSE_NEW_GRID) || !(wxUSE_NEW_GRID)
12 #error "DBGrid requires the new wxGrid class"
13 #endif
14 //----------------------------------------------------------------------------------------
15 class MainDoc;
16 //----------------------------------------------------------------------------------------
17 class DBGrid: public wxGrid
18 {
19 public:
20 DBGrid(wxWindow *parent, const wxWindowID id,const wxPoint& pos,const wxSize& size, long style);
21 virtual ~DBGrid();
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 //---------------------------------------------------------------------------------------
27 MainDoc* pDoc;
28 wxDbInf* ct_BrowserDB;
29 BrowserDB* db_Br;
30 wxMenu *popupMenu1; // OnDBClass
31 wxMenu *popupMenu2; // OnDBGrid & OnTableclass
32 bool b_EditModus;
33 //---------------------------------------------------------------------------------------
34 wxString logBuf,Temp0;
35 wxPoint MousePos;
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 //-----
42 void OnCellChange( wxGridEvent& );
43 void OnCellLeftClick( wxGridEvent& );
44 void OnCellLeftDClick( wxGridEvent& );
45 void OnCellRightClick( wxGridEvent& );
46 void OnCellRightDClick( wxGridEvent& );
47 void OnColSize( wxGridSizeEvent& );
48 void OnEditorShown( wxGridEvent& );
49 void OnEditorHidden( wxGridEvent& );
50 void OnLabelLeftClick( wxGridEvent& );
51 void OnLabelLeftDClick( wxGridEvent& );
52 void OnLabelRightClick( wxGridEvent& );
53 void OnLabelRightDClick( wxGridEvent& );
54 void OnRangeSelected( wxGridRangeSelectEvent& );
55 void OnRowSize( wxGridSizeEvent& );
56 void OnSelectCell( wxGridEvent& );
57 //---------------------------------------------------------------------------------------
58 DECLARE_EVENT_TABLE()
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 //----------------------------------------------------------------------------------------