]>
Commit | Line | Data |
---|---|---|
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) |
645889ad | 12 | #error "DBGrid requires the new wxGrid class" |
2224580a | 13 | #endif |
645889ad | 14 | |
c92b0f9a | 15 | //---------------------------------------------------------------------------------------- |
3fa0976a | 16 | class MainDoc; |
645889ad | 17 | |
c92b0f9a | 18 | //---------------------------------------------------------------------------------------- |
b5ffecfc GT |
19 | class DBGrid: public wxGrid |
20 | { | |
645889ad GT |
21 | public: |
22 | DBGrid(wxWindow *parent, const wxWindowID id,const wxPoint& pos,const wxSize& size, long style); | |
23 | virtual ~DBGrid(); | |
24 | //--------------------------------------------------------------------------------------- | |
25 | int i_TabArt; // Tab = 0 ; Page = 1; | |
26 | int i_ViewNr; // View Nummer in Tab / Page | |
27 | int i_Which; // Which View, Database is this/using | |
28 | //--------------------------------------------------------------------------------------- | |
29 | MainDoc* 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(wxCommandEvent& event); | |
40 | void OnModusBrowse(wxCommandEvent& event); | |
41 | void OnMouseMove(wxMouseEvent& event); | |
42 | int OnTableView(wxString Table); | |
43 | //----- | |
44 | void OnCellChange( wxGridEvent& ); | |
45 | void OnCellLeftClick( wxGridEvent& ); | |
46 | void OnCellLeftDClick( wxGridEvent& ); | |
47 | void OnCellRightClick( wxGridEvent& ); | |
48 | void OnCellRightDClick( wxGridEvent& ); | |
49 | void OnColSize( wxGridSizeEvent& ); | |
50 | void OnEditorShown( wxGridEvent& ); | |
51 | void OnEditorHidden( wxGridEvent& ); | |
52 | void OnLabelLeftClick( wxGridEvent& ); | |
53 | void OnLabelLeftDClick( wxGridEvent& ); | |
54 | void OnLabelRightClick( wxGridEvent& ); | |
55 | void OnLabelRightDClick( wxGridEvent& ); | |
56 | void OnRangeSelected( wxGridRangeSelectEvent& ); | |
57 | void OnRowSize( wxGridSizeEvent& ); | |
58 | void OnSelectCell( wxGridEvent& ); | |
59 | //--------------------------------------------------------------------------------------- | |
60 | DECLARE_EVENT_TABLE() | |
b5ffecfc | 61 | }; |
645889ad | 62 | |
c92b0f9a | 63 | //---------------------------------------------------------------------------------------- |
b5ffecfc GT |
64 | #define GRID_01_BEGIN 1200 |
65 | #define GRID_BROWSE 1201 | |
66 | #define GRID_EDIT 1202 | |
67 | #define GRID_01_END 1203 | |
c92b0f9a | 68 | //---------------------------------------------------------------------------------------- |
645889ad | 69 |