File: dbgrid.h

package info (click to toggle)
wxwidgets2.6 2.6.3.2.1.5%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 83,228 kB
  • ctags: 130,941
  • sloc: cpp: 820,043; ansic: 113,030; python: 107,485; makefile: 42,996; sh: 10,305; lex: 194; yacc: 128; xml: 95; pascal: 74
file content (66 lines) | stat: -rw-r--r-- 2,868 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//----------------------------------------------------------------------------------------
// Name:        DBGrid.h
// Purpose:     shows seleted Table in a Grid
// Author:      Mark Johnson
// Modified by: 20000126.mj10777
// Created:
// Copyright:   (c) Mark Johnson
// Licence:     wxWindows license
// RCS-ID:      $Id: dbgrid.h,v 1.11 2003/08/03 18:47:19 VS Exp $
//----------------------------------------------------------------------------------------

//----------------------------------------------------------------------------------------
class MainDoc;

//----------------------------------------------------------------------------------------
class DBGrid: public wxGrid
{
public:
    DBGrid(wxWindow *parent, const wxWindowID id,const wxPoint& pos,const wxSize& size, long style);
    virtual ~DBGrid();
    //---------------------------------------------------------------------------------------
    int        i_TabArt;   // Tab = 0 ; Page = 1;
    int        i_ViewNr;   // View Nummer in Tab / Page
    int        i_Which;    // Which View, Database is this/using
    //---------------------------------------------------------------------------------------
    MainDoc*   pDoc;
    wxDbInf*   ct_BrowserDB;
    BrowserDB* db_Br;
    wxMenu   *popupMenu1; // OnDBClass
    wxMenu   *popupMenu2; // OnDBGrid & OnTableclass
    bool     b_EditModus;
    //---------------------------------------------------------------------------------------
    wxString logBuf,Temp0;
    wxPoint  MousePos;
    //---------------------------------------------------------------------------------------
    void OnModusEdit(wxCommandEvent& event);
    void OnModusBrowse(wxCommandEvent& event);
    void OnMouseMove(wxMouseEvent& event);
    int  OnTableView(wxString Table);
    //-----
    void OnCellChange( wxGridEvent& );
    void OnCellLeftClick( wxGridEvent& );
    void OnCellLeftDClick( wxGridEvent& );
    void OnCellRightClick( wxGridEvent& );
    void OnCellRightDClick( wxGridEvent& );
    void OnColSize( wxGridSizeEvent& );
    void OnEditorShown( wxGridEvent& );
    void OnEditorHidden( wxGridEvent& );
    void OnLabelLeftClick( wxGridEvent& );
    void OnLabelLeftDClick( wxGridEvent& );
    void OnLabelRightClick( wxGridEvent& );
    void OnLabelRightDClick( wxGridEvent& );
    void OnRangeSelected( wxGridRangeSelectEvent& );
    void OnRowSize( wxGridSizeEvent& );
    void OnSelectCell( wxGridEvent& );
    //---------------------------------------------------------------------------------------
    DECLARE_EVENT_TABLE()
};

//----------------------------------------------------------------------------------------
#define GRID_01_BEGIN      1200
#define GRID_BROWSE        1201
#define GRID_EDIT          1202
#define GRID_01_END        1203
//----------------------------------------------------------------------------------------