]>
Commit | Line | Data |
---|---|---|
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 GT |
10 | //--------------------------------------------------------------------------- |
11 | class mjDoc; | |
12 | //--------------------------------------------------------------------------- | |
13 | class DBGrid: public wxGrid | |
14 | { | |
15 | public: | |
16 | DBGrid(wxWindow *parent, const wxWindowID id,const wxPoint& pos,const wxSize& size, long style); | |
17 | virtual ~DBGrid(); | |
18 | //------------------------------------------- | |
19 | int i_TabArt; // Tab = 0 ; Page = 1; | |
20 | int i_ViewNr; // View Nummer in Tab / Page | |
21 | int i_Which; // Which View, Database is this/using | |
22 | //------------------------------------------- | |
b3630c4f | 23 | // wxFont* f_Temp; |
b5ffecfc GT |
24 | mjDoc* pDoc; |
25 | wxDbInf* ct_BrowserDB; | |
26 | BrowserDB* db_Br; | |
27 | wxMenu *popupMenu1; // OnDBClass | |
28 | wxMenu *popupMenu2; // OnDBGrid & OnTableclass | |
29 | bool b_EditModus; | |
30 | //------------------------------------------- | |
31 | wxString logBuf,Temp0; | |
32 | wxPoint MousePos; | |
33 | //------------------------------------------- | |
34 | void OnModusEdit(wxMenu& menu, wxCommandEvent& event); | |
35 | void OnModusBrowse(wxMenu& menu, wxCommandEvent& event); | |
36 | void OnMouseMove(wxMouseEvent& event); | |
37 | int OnTableView(wxString Table); | |
38 | void OnLabelLeftClick( wxGridEvent& ); | |
39 | void OnLabelRightClick( wxGridEvent& ); | |
40 | void OnLabelLeftDClick( wxGridEvent& ); | |
41 | void OnLabelRightDClick( wxGridEvent& ); | |
42 | void OnCellLeftClick( wxGridEvent& ); | |
43 | void OnCellRightClick( wxGridEvent& ); | |
44 | void OnCellLeftDClick( wxGridEvent& ); | |
45 | void OnCellRightDClick( wxGridEvent& ); | |
46 | void OnRowSize( wxGridSizeEvent& ); | |
47 | void OnColSize( wxGridSizeEvent& ); | |
48 | void OnRangeSelected( wxGridRangeSelectEvent& ); | |
49 | void OnCellChange( wxGridEvent& ); | |
50 | //------------------------------------------- | |
51 | DECLARE_EVENT_TABLE() | |
52 | }; | |
53 | //--------------------------------------------------------------------------- | |
54 | #define GRID_01_BEGIN 1200 | |
55 | #define GRID_BROWSE 1201 | |
56 | #define GRID_EDIT 1202 | |
57 | #define GRID_01_END 1203 | |
58 | //------------------------------------------------------------------------------ |