]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/dbgrid.h
Ran make -f build/autogen.mk
[wxWidgets.git] / demos / dbbrowse / dbgrid.h
CommitLineData
c92b0f9a 1//----------------------------------------------------------------------------------------
b5ffecfc 2// Name: DBGrid.h
c92b0f9a 3// Purpose: shows seleted Table in a Grid
b5ffecfc
GT
4// Author: Mark Johnson
5// Modified by: 20000126.mj10777
6// Created:
b5ffecfc
GT
7// Copyright: (c) Mark Johnson
8// Licence: wxWindows license
c09d434d 9// RCS-ID: $Id$
c92b0f9a 10//----------------------------------------------------------------------------------------
645889ad 11
c92b0f9a 12//----------------------------------------------------------------------------------------
3fa0976a 13class MainDoc;
645889ad 14
c92b0f9a 15//----------------------------------------------------------------------------------------
b5ffecfc
GT
16class DBGrid: public wxGrid
17{
645889ad
GT
18public:
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()
b5ffecfc 58};
645889ad 59
c92b0f9a 60//----------------------------------------------------------------------------------------
b5ffecfc
GT
61#define GRID_01_BEGIN 1200
62#define GRID_BROWSE 1201
63#define GRID_EDIT 1202
64#define GRID_01_END 1203
c92b0f9a 65//----------------------------------------------------------------------------------------
645889ad 66