browsedb.cpp dbgrid.cpp dbtree.cpp dlguser.cpp de/dbbrowse.mo
de/dbbrowse.po de/xget.cfg git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -154,7 +154,7 @@ bool BrowserDB::OnStartDB(int Quite)
|
|||||||
if (!Quite)
|
if (!Quite)
|
||||||
{
|
{
|
||||||
wxLogMessage(_("\n-E-> BrowserDB::OnConnectDataSource() DB CONNECTION ERROR : Unable to connect to the data source.\n\nCheck the name of your data source to verify it has been correctly entered/spelled.\n\nWith some databases, the user name and password must\nbe created with full rights to the table prior to making a connection\n(using tools provided by the database manufacturer)"));
|
wxLogMessage(_("\n-E-> BrowserDB::OnConnectDataSource() DB CONNECTION ERROR : Unable to connect to the data source.\n\nCheck the name of your data source to verify it has been correctly entered/spelled.\n\nWith some databases, the user name and password must\nbe created with full rights to the table prior to making a connection\n(using tools provided by the database manufacturer)"));
|
||||||
wxLogMessage(_("-I-> BrowserDB::OnStartDB(%s) : End - Time needed : %ld ms"),ODBCSource.c_str(),sw.Time());
|
wxLogMessage(_("-I-> BrowserDB::OnStartDB(%s) : End - Time needed : %ld ms"),ODBCSource.c_str(),sw.Time());
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@@ -98,7 +98,7 @@ int DBGrid::OnTableView(wxString Table)
|
|||||||
(db_Br+i_Which)->i_Which = ValidTable; // Still used ???? mj10777
|
(db_Br+i_Which)->i_Which = ValidTable; // Still used ???? mj10777
|
||||||
if (i == 0) // If the Table is empty, then show one empty row
|
if (i == 0) // If the Table is empty, then show one empty row
|
||||||
i++;
|
i++;
|
||||||
// wxLogMessage(_("\n-I-> DBGrid::OnTableView():: Vor CreateGrid"));
|
// wxLogMessage(_("\n-I-> DBGrid::OnTableView() : Vor CreateGrid"));
|
||||||
CreateGrid(i,(ct_BrowserDB->pTableInf+x)->numCols); // Records , Columns
|
CreateGrid(i,(ct_BrowserDB->pTableInf+x)->numCols); // Records , Columns
|
||||||
for (y=0;y<(ct_BrowserDB->pTableInf+x)->numCols;y++) // Loop through the Fields
|
for (y=0;y<(ct_BrowserDB->pTableInf+x)->numCols;y++) // Loop through the Fields
|
||||||
{ // The Field / Column name is used here as Row Titel
|
{ // The Field / Column name is used here as Row Titel
|
||||||
@@ -128,12 +128,12 @@ int DBGrid::OnTableView(wxString Table)
|
|||||||
goto Weiter;
|
goto Weiter;
|
||||||
} // if ((ct_BrowserDB->pTableInf+x)->pColInf)
|
} // if ((ct_BrowserDB->pTableInf+x)->pColInf)
|
||||||
else
|
else
|
||||||
wxLogMessage(_("\n-E-> DBGrid::OnTableView():: Invalid Column Pointer : Failed"));
|
wxLogMessage(_("\n-E-> DBGrid::OnTableView() : Invalid Column Pointer : Failed"));
|
||||||
} // if ((ct_BrowserDB->pTableInf+x)->tableType == "TABLE")
|
} // if ((ct_BrowserDB->pTableInf+x)->tableType == "TABLE")
|
||||||
} // for (x=0;x<ct_BrowserDB->numTables;x++)
|
} // for (x=0;x<ct_BrowserDB->numTables;x++)
|
||||||
} // if (ct_BrowserDB)
|
} // if (ct_BrowserDB)
|
||||||
else
|
else
|
||||||
wxLogMessage(_("\n-E-> DBGrid::OnTableView():: Invalid DSN Pointer : Failed"));
|
wxLogMessage(_("\n-E-> DBGrid::OnTableView() : Invalid DSN Pointer : Failed"));
|
||||||
//---------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------
|
||||||
Weiter:
|
Weiter:
|
||||||
SetEditInPlace(b_EditModus); // Activate in-place Editing (FALSE)
|
SetEditInPlace(b_EditModus); // Activate in-place Editing (FALSE)
|
||||||
|
@@ -174,8 +174,8 @@ int DBTree::OnPopulate()
|
|||||||
else
|
else
|
||||||
Docu = AppendItem(Folder,((ct_BrowserDB->pTableInf+x)->pColInf+y)->colName,TreeIc_COL,TreeIc_COL,new DBTreeData(Temp1));
|
Docu = AppendItem(Folder,((ct_BrowserDB->pTableInf+x)->pColInf+y)->colName,TreeIc_COL,TreeIc_COL,new DBTreeData(Temp1));
|
||||||
}
|
}
|
||||||
SQL_TYPE.Printf(_("SQL_C_???? (%d)"),((ct_BrowserDB->pTableInf+x)->pColInf+y)->sqlDataType);
|
SQL_TYPE.Printf("SQL_C_???? (%d)",((ct_BrowserDB->pTableInf+x)->pColInf+y)->sqlDataType);
|
||||||
DB_TYPE.Printf(_("DB_DATA_TYPE_???? (%d)"),((ct_BrowserDB->pTableInf+x)->pColInf+y)->dbDataType);
|
DB_TYPE.Printf("DB_DATA_TYPE_???? (%d)",((ct_BrowserDB->pTableInf+x)->pColInf+y)->dbDataType);
|
||||||
for (i=1;i<=(pDoc->db_Br+i_Which)->i_SqlTyp[0];i++)
|
for (i=1;i<=(pDoc->db_Br+i_Which)->i_SqlTyp[0];i++)
|
||||||
{
|
{
|
||||||
if (((ct_BrowserDB->pTableInf+x)->pColInf+y)->sqlDataType == (pDoc->db_Br+i_Which)->i_SqlTyp[i])
|
if (((ct_BrowserDB->pTableInf+x)->pColInf+y)->sqlDataType == (pDoc->db_Br+i_Which)->i_SqlTyp[i])
|
||||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,16 @@
|
|||||||
../BrowserDB.cpp
|
../browsedb.cpp
|
||||||
../BrowserDB.h
|
../browsedb.h
|
||||||
../DBBrowser.cpp
|
../dbbrowse.cpp
|
||||||
../DBBrowser.h
|
../dbbrowse.h
|
||||||
../DBGrid.cpp
|
../dbgrid.cpp
|
||||||
../DBGrid.h
|
../dbgrid.h
|
||||||
../DBTree.cpp
|
../dbtree.cpp
|
||||||
../DBTree.h
|
../dbtree.h
|
||||||
../Doc.cpp
|
../dlguser.h
|
||||||
../Doc.h
|
../dlguser.cpp
|
||||||
../PgmCtrl.cpp
|
../doc.cpp
|
||||||
../PgmCtrl.h
|
../doc.h
|
||||||
|
../pgmctrl.cpp
|
||||||
|
../pgmctrl.h
|
||||||
|
../tabpgwin.cpp
|
||||||
|
../tabpgwin.h
|
||||||
|
@@ -105,7 +105,7 @@ DlgUser::DlgUser(wxWindow *parent, MainDoc *p_Doc, const wxString& title) :
|
|||||||
//----------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------
|
||||||
void DlgUser::OnInit()
|
void DlgUser::OnInit()
|
||||||
{
|
{
|
||||||
wxString Temp; Temp.Printf(_(">>> %s <<<"),s_DSN.c_str());
|
wxString Temp; Temp.Printf(">>> %s <<<",s_DSN.c_str());
|
||||||
SetTitle(Temp);
|
SetTitle(Temp);
|
||||||
m_UserName->SetLabel(s_User);
|
m_UserName->SetLabel(s_User);
|
||||||
m_Password->SetLabel(s_Password);
|
m_Password->SetLabel(s_Password);
|
||||||
|
Reference in New Issue
Block a user