second merge of the 2.2 branch (RL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -20,9 +20,11 @@
|
||||
enum DialogModes {mView,mCreate,mEdit,mSearch};
|
||||
|
||||
// ID for the menu quit command
|
||||
#define FILE_CREATE 100
|
||||
#define FILE_EXIT 199
|
||||
#define EDIT_PARAMETERS 200
|
||||
#define FILE_CREATE 100
|
||||
#define FILE_RECREATE_TABLE 110
|
||||
#define FILE_RECREATE_INDEXES 120
|
||||
#define FILE_EXIT 199
|
||||
#define EDIT_PARAMETERS 200
|
||||
#define ABOUT_DEMO 300
|
||||
|
||||
// this seems to be missing, Robert Roebling (?)
|
||||
@@ -129,11 +131,13 @@ class DatabaseDemoFrame: public wxFrame
|
||||
|
||||
void OnCloseWindow(wxCloseEvent& event);
|
||||
void OnCreate(wxCommandEvent& event);
|
||||
void OnRecreateTable(wxCommandEvent& event);
|
||||
void OnRecreateIndexes(wxCommandEvent& event);
|
||||
void OnExit(wxCommandEvent& event);
|
||||
void OnEditParameters(wxCommandEvent& event);
|
||||
void OnAbout(wxCommandEvent& event);
|
||||
|
||||
void CreateDataTable();
|
||||
void CreateDataTable(bool recreate);
|
||||
void BuildEditorDialog();
|
||||
void BuildParameterDialog(wxWindow *parent);
|
||||
|
||||
@@ -147,8 +151,8 @@ DECLARE_EVENT_TABLE()
|
||||
class CeditorDlg : public wxPanel
|
||||
{
|
||||
private:
|
||||
bool widgetPtrsSet;
|
||||
wxString saveName;
|
||||
bool widgetPtrsSet;
|
||||
wxString saveName;
|
||||
|
||||
// Pointers to all widgets on the dialog
|
||||
wxButton *pCreateBtn, *pEditBtn, *pDeleteBtn, *pCopyBtn, *pSaveBtn, *pCancelBtn;
|
||||
@@ -163,8 +167,9 @@ class CeditorDlg : public wxPanel
|
||||
wxStaticText *pNativeLangMsg;
|
||||
|
||||
public:
|
||||
enum DialogModes mode;
|
||||
Ccontact *Contact; // this is the table object that will be being manipulated
|
||||
bool initialized;
|
||||
enum DialogModes mode;
|
||||
Ccontact *Contact; // this is the table object that will be being manipulated
|
||||
|
||||
CeditorDlg(wxWindow *parent);
|
||||
|
||||
@@ -173,6 +178,7 @@ class CeditorDlg : public wxPanel
|
||||
void OnCommand(wxWindow& win, wxCommandEvent& event);
|
||||
void OnActivate(bool) {}; // necessary for hot keys
|
||||
|
||||
bool Initialize();
|
||||
void FieldsEditable();
|
||||
void SetMode(enum DialogModes m);
|
||||
bool PutData();
|
||||
@@ -343,7 +349,7 @@ class CqueryDlg : public wxDialog
|
||||
wxStaticBox *pQueryHintGrp;
|
||||
wxStaticText *pQueryHintMsg;
|
||||
|
||||
wxTextCtrl *pFocusTxt;
|
||||
wxTextCtrl *pFocusTxt;
|
||||
|
||||
CqueryDlg(wxWindow *parent, wxDb *pDb, char *tblName[], char *pWhereArg);
|
||||
~CqueryDlg();
|
||||
|
@@ -93,9 +93,10 @@ const int LISTDB_NO_SPACES_BETWEEN_COLS = 3;
|
||||
* NOTE: The value returned by this function is for temporary use only and
|
||||
* should be copied for long term use
|
||||
*/
|
||||
char *GetExtendedDBErrorMsg2(char *ErrFile, int ErrLine)
|
||||
const char *GetExtendedDBErrorMsg2(char *ErrFile, int ErrLine)
|
||||
{
|
||||
static wxString msg;
|
||||
msg = "";
|
||||
|
||||
wxString tStr;
|
||||
|
||||
@@ -128,12 +129,15 @@ char *GetExtendedDBErrorMsg2(char *ErrFile, int ErrLine)
|
||||
msg.Append(pDbList->PtrDb->errorList[i]);
|
||||
if (wxStrcmp(pDbList->PtrDb->errorList[i],"") != 0)
|
||||
msg.Append("\n");
|
||||
// Clear the errmsg buffer so the next error will not
|
||||
// end up showing the previous error that have occurred
|
||||
wxStrcpy(pDbList->PtrDb->errorList[i],"");
|
||||
}
|
||||
}
|
||||
}
|
||||
msg += "\n";
|
||||
|
||||
return (char*) (const char*) msg;
|
||||
return /*(char*) (const char*) msg*/msg.c_str();
|
||||
} // GetExtendedDBErrorMsg
|
||||
|
||||
|
||||
@@ -407,8 +411,10 @@ void ClookUpDlg::OnClose(wxCloseEvent& event)
|
||||
if (lookup2)
|
||||
delete lookup2;
|
||||
|
||||
SetReturnCode(1);
|
||||
|
||||
while (wxIsBusy()) wxEndBusyCursor();
|
||||
event.Skip();
|
||||
event.Skip();
|
||||
|
||||
// return TRUE;
|
||||
|
||||
|
Reference in New Issue
Block a user