2000-01-28 10:25:32 -05:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Name: DBGrid.h
|
|
|
|
// Purpose: DBGrid
|
|
|
|
// Author: Mark Johnson
|
|
|
|
// Modified by: 20000126.mj10777
|
|
|
|
// Created:
|
|
|
|
// Copyright: (c) Mark Johnson
|
|
|
|
// Licence: wxWindows license
|
2000-01-31 08:20:36 -05:00
|
|
|
// RCS-ID: $Id$
|
2000-01-28 10:25:32 -05:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
class mjDoc;
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
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
|
|
|
|
//-------------------------------------------
|
2000-01-31 10:02:05 -05:00
|
|
|
// wxFont* f_Temp;
|
2000-01-28 10:25:32 -05:00
|
|
|
mjDoc* pDoc;
|
|
|
|
wxDbInf* ct_BrowserDB;
|
|
|
|
BrowserDB* db_Br;
|
|
|
|
wxMenu *popupMenu1; // OnDBClass
|
|
|
|
wxMenu *popupMenu2; // OnDBGrid & OnTableclass
|
|
|
|
bool b_EditModus;
|
|
|
|
//-------------------------------------------
|
|
|
|
wxString logBuf,Temp0;
|
|
|
|
wxPoint MousePos;
|
|
|
|
//-------------------------------------------
|
|
|
|
void OnModusEdit(wxMenu& menu, wxCommandEvent& event);
|
|
|
|
void OnModusBrowse(wxMenu& menu, wxCommandEvent& event);
|
|
|
|
void OnMouseMove(wxMouseEvent& event);
|
|
|
|
int OnTableView(wxString Table);
|
|
|
|
void OnLabelLeftClick( wxGridEvent& );
|
|
|
|
void OnLabelRightClick( wxGridEvent& );
|
|
|
|
void OnLabelLeftDClick( wxGridEvent& );
|
|
|
|
void OnLabelRightDClick( wxGridEvent& );
|
|
|
|
void OnCellLeftClick( wxGridEvent& );
|
|
|
|
void OnCellRightClick( wxGridEvent& );
|
|
|
|
void OnCellLeftDClick( wxGridEvent& );
|
|
|
|
void OnCellRightDClick( wxGridEvent& );
|
|
|
|
void OnRowSize( wxGridSizeEvent& );
|
|
|
|
void OnColSize( wxGridSizeEvent& );
|
|
|
|
void OnRangeSelected( wxGridRangeSelectEvent& );
|
|
|
|
void OnCellChange( wxGridEvent& );
|
|
|
|
//-------------------------------------------
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#define GRID_01_BEGIN 1200
|
|
|
|
#define GRID_BROWSE 1201
|
|
|
|
#define GRID_EDIT 1202
|
|
|
|
#define GRID_01_END 1203
|
|
|
|
//------------------------------------------------------------------------------
|