browsedb.cpp browsedb.h dbbrowse.cpp dbbrowse.h dbbrowse.rc
dbgrid.cpp dbgrid.h dbtree.cpp dbtree.h dlguser.cpp dlguser.h doc.cpp doc.h pgmctrl.cpp pgmctrl.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,41 +1,39 @@
|
||||
//---------------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------------------------
|
||||
// Name: DBGrid.h
|
||||
// Purpose: DBGrid
|
||||
// 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$
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
#if !defined(wxUSE_NEW_GRID) || !(wxUSE_NEW_GRID)
|
||||
#error "DBGrid requires the new wxGrid class"
|
||||
#error "DBGrid requires the new wxGrid class"
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
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
|
||||
//-------------------------------------------
|
||||
wxFont* f_Temp;
|
||||
//---------------------------------------------------------------------------------------
|
||||
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);
|
||||
@@ -52,12 +50,12 @@ class DBGrid: public wxGrid
|
||||
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
|
||||
//------------------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user