]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/dbgrid.h
Various compiler changes
[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//----------------------------------------------------------------------------------------
2224580a 11#if !defined(wxUSE_NEW_GRID) || !(wxUSE_NEW_GRID)
c92b0f9a 12 #error "DBGrid requires the new wxGrid class"
2224580a 13#endif
c92b0f9a 14//----------------------------------------------------------------------------------------
3fa0976a 15class MainDoc;
c92b0f9a 16//----------------------------------------------------------------------------------------
b5ffecfc
GT
17class DBGrid: public wxGrid
18{
19 public:
20 DBGrid(wxWindow *parent, const wxWindowID id,const wxPoint& pos,const wxSize& size, long style);
21 virtual ~DBGrid();
c92b0f9a 22 //---------------------------------------------------------------------------------------
b5ffecfc
GT
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
c92b0f9a 26 //---------------------------------------------------------------------------------------
3fa0976a 27 MainDoc* pDoc;
b5ffecfc
GT
28 wxDbInf* ct_BrowserDB;
29 BrowserDB* db_Br;
30 wxMenu *popupMenu1; // OnDBClass
31 wxMenu *popupMenu2; // OnDBGrid & OnTableclass
32 bool b_EditModus;
c92b0f9a 33 //---------------------------------------------------------------------------------------
b5ffecfc
GT
34 wxString logBuf,Temp0;
35 wxPoint MousePos;
c92b0f9a 36 //---------------------------------------------------------------------------------------
669f7a11
JS
37 void OnModusEdit(wxCommandEvent& event);
38 void OnModusBrowse(wxCommandEvent& event);
b5ffecfc
GT
39 void OnMouseMove(wxMouseEvent& event);
40 int OnTableView(wxString Table);
47677e9b
MJ
41 //-----
42 void OnCellChange( wxGridEvent& );
b5ffecfc 43 void OnCellLeftClick( wxGridEvent& );
b5ffecfc 44 void OnCellLeftDClick( wxGridEvent& );
47677e9b 45 void OnCellRightClick( wxGridEvent& );
b5ffecfc 46 void OnCellRightDClick( wxGridEvent& );
b5ffecfc 47 void OnColSize( wxGridSizeEvent& );
47677e9b
MJ
48 void OnEditorShown( wxGridEvent& );
49 void OnEditorHidden( wxGridEvent& );
50 void OnLabelLeftClick( wxGridEvent& );
51 void OnLabelLeftDClick( wxGridEvent& );
52 void OnLabelRightClick( wxGridEvent& );
53 void OnLabelRightDClick( wxGridEvent& );
b5ffecfc 54 void OnRangeSelected( wxGridRangeSelectEvent& );
47677e9b
MJ
55 void OnRowSize( wxGridSizeEvent& );
56 void OnSelectCell( wxGridEvent& );
c92b0f9a 57 //---------------------------------------------------------------------------------------
b5ffecfc
GT
58 DECLARE_EVENT_TABLE()
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//----------------------------------------------------------------------------------------