]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/dbgrid.h
Added support for transparency in rotation code
[wxWidgets.git] / demos / dbbrowse / dbgrid.h
CommitLineData
b5ffecfc
GT
1//---------------------------------------------------------------------------
2// Name: DBGrid.h
3// Purpose: DBGrid
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$
b5ffecfc 10//---------------------------------------------------------------------------
2224580a
VZ
11
12#if !defined(wxUSE_NEW_GRID) || !(wxUSE_NEW_GRID)
13 #error "DBGrid requires the new wxGrid class"
14#endif
15
b5ffecfc
GT
16class mjDoc;
17//---------------------------------------------------------------------------
18class DBGrid: public wxGrid
19{
20 public:
21 DBGrid(wxWindow *parent, const wxWindowID id,const wxPoint& pos,const wxSize& size, long style);
22 virtual ~DBGrid();
23 //-------------------------------------------
24 int i_TabArt; // Tab = 0 ; Page = 1;
25 int i_ViewNr; // View Nummer in Tab / Page
26 int i_Which; // Which View, Database is this/using
27 //-------------------------------------------
c45a4560 28 wxFont* f_Temp;
b5ffecfc
GT
29 mjDoc* pDoc;
30 wxDbInf* ct_BrowserDB;
31 BrowserDB* db_Br;
32 wxMenu *popupMenu1; // OnDBClass
33 wxMenu *popupMenu2; // OnDBGrid & OnTableclass
34 bool b_EditModus;
35 //-------------------------------------------
36 wxString logBuf,Temp0;
37 wxPoint MousePos;
38 //-------------------------------------------
39 void OnModusEdit(wxMenu& menu, wxCommandEvent& event);
40 void OnModusBrowse(wxMenu& menu, wxCommandEvent& event);
41 void OnMouseMove(wxMouseEvent& event);
42 int OnTableView(wxString Table);
43 void OnLabelLeftClick( wxGridEvent& );
44 void OnLabelRightClick( wxGridEvent& );
45 void OnLabelLeftDClick( wxGridEvent& );
46 void OnLabelRightDClick( wxGridEvent& );
47 void OnCellLeftClick( wxGridEvent& );
48 void OnCellRightClick( wxGridEvent& );
49 void OnCellLeftDClick( wxGridEvent& );
50 void OnCellRightDClick( wxGridEvent& );
51 void OnRowSize( wxGridSizeEvent& );
52 void OnColSize( wxGridSizeEvent& );
53 void OnRangeSelected( wxGridRangeSelectEvent& );
54 void OnCellChange( wxGridEvent& );
55 //-------------------------------------------
56 DECLARE_EVENT_TABLE()
57};
58//---------------------------------------------------------------------------
59#define GRID_01_BEGIN 1200
60#define GRID_BROWSE 1201
61#define GRID_EDIT 1202
62#define GRID_01_END 1203
63//------------------------------------------------------------------------------