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:
Mark Johnson
2000-02-12 14:11:17 +00:00
parent ef366f3523
commit c92b0f9abd
15 changed files with 1533 additions and 1666 deletions

View File

@@ -1,25 +1,23 @@
//---------------------------------------------------------------------------
// Name: DBTree.h
// Purpose: Shows ODBC Catalog entries for Databases
//----------------------------------------------------------------------------------------
// Name: DBTree.cpp/.h
// Purpose: Tree with Table and Views, branches show Field information
// Author: Mark Johnson
// Modified by: 19991129.mj10777
// Created: 19991129
// Copyright: (c) Mark Johnson
// Licence: wxWindows license
// RCS-ID: $Id$
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
class mjDoc; // Declared in Doc.h file
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
class DBTreeData : public wxTreeItemData
{
public:
DBTreeData(const wxString& desc) : m_desc(desc) { }
void ShowInfo(wxTreeCtrl *tree);
wxString m_desc;
wxString m_desc;
};
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
class DBTree : public wxTreeCtrl
{
public:
@@ -39,14 +37,14 @@ class DBTree : public wxTreeCtrl
TreeIc_FolderOpen // f_open.ico
};
wxString Temp0, Temp1, Temp2, Temp3, Temp4, Temp5;
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
DBTree() { }
DBTree(wxWindow *parent);
DBTree(wxWindow *parent, const wxWindowID id,const wxPoint& pos, const wxSize& size,long style);
virtual ~DBTree();
mjDoc *pDoc;
wxDbInf *ct_BrowserDB;
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
int i_TabArt; // Tab = 0 ; Page = 1;
int i_ViewNr; // View Nummer in Tab / Page
int i_Which; // Which View, Database is this/using
@@ -54,9 +52,9 @@ class DBTree : public wxTreeCtrl
wxMenu *popupMenu1; // OnDBClass
wxMenu *popupMenu2; // OnDBGrid & OnTableclass
wxPoint TreePos;
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
wxImageList *p_imageListNormal;
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
public:
int OnPopulate();
void OnSelChanged(wxTreeEvent& event);
@@ -68,7 +66,7 @@ class DBTree : public wxTreeCtrl
void OnMouseEvent(wxMouseEvent& event);
void OnMouseMove(wxMouseEvent& event);
public:
//---------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
// NB: due to an ugly wxMSW hack you _must_ use DECLARE_DYNAMIC_CLASS()
// if you want your overloaded OnCompareItems() to be called.
// OTOH, if you don't want it you may omit the next line - this will
@@ -76,11 +74,11 @@ class DBTree : public wxTreeCtrl
DECLARE_DYNAMIC_CLASS(DBTree)
DECLARE_EVENT_TABLE()
};
//------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
#define POPUP_01_BEGIN 1100
#define DATA_SHOW 1101
#define DATA_DB 1102
#define DATA_TABLE 1103
#define DATA_TABLE_ALL 1104
#define POPUP_01_END 1117
//------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------