X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dabbc6a5a1795d169f26ce95927f3e4f1a5e7b7e..6950be011194ea3ba18c941e3d24a2bb4ac34f2a:/demos/dbbrowse/dlguser.cpp?ds=sidebyside diff --git a/demos/dbbrowse/dlguser.cpp b/demos/dbbrowse/dlguser.cpp index 9c2f60bff7..f7511a352f 100644 --- a/demos/dbbrowse/dlguser.cpp +++ b/demos/dbbrowse/dlguser.cpp @@ -1,5 +1,5 @@ //---------------------------------------------------------------------------------------- -// Name: DlgUser.h,cpp +// Name: DlgUser.cpp // Purpose: Dialog mit Variable Gestaltung durch DlgUser.wxr // Author: Mark Johnson // Modified by: 19991105.mj10777 @@ -8,13 +8,7 @@ // Licence: wxWindows license // RCS-ID: $Id$ //---------------------------------------------------------------------------------------- -//-- all #ifdefs that the whole Project needs. ------------------------------------------- -//---------------------------------------------------------------------------------------- -#ifdef __GNUG__ -#pragma implementation -#pragma interface -#endif -//---------------------------------------------------------------------------------------- + // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" //---------------------------------------------------------------------------------------- @@ -92,7 +86,7 @@ DlgUser::DlgUser(wxWindow *parent, MainDoc *p_Doc, const wxString& title) : //layout->height.AsIs(); m_Password->SetConstraints(layout); - m_OK = new wxButton(this, wxID_OK, _("OK")); + m_OK = new wxButton(this, wxID_OK); m_OK->SetFont(* pDoc->ft_Doc); layout = new wxLayoutConstraints; layout->left.SameAs(this, wxLeft, 10); @@ -101,7 +95,7 @@ DlgUser::DlgUser(wxWindow *parent, MainDoc *p_Doc, const wxString& title) : layout->width.Absolute(75); m_OK->SetConstraints(layout); - m_Cancel = new wxButton(this, wxID_CANCEL, _("Cancel")); + m_Cancel = new wxButton(this, wxID_CANCEL); m_Cancel->SetFont(* pDoc->ft_Doc); layout = new wxLayoutConstraints; layout->left.SameAs(m_OK, wxRight, 10); @@ -130,23 +124,13 @@ void DlgUser::OnInit() //---------------------------------------------------------------------------------------- BEGIN_EVENT_TABLE(DlgUser, wxDialog) EVT_BUTTON(wxID_OK, DlgUser::OnOk) - EVT_BUTTON(wxID_CANCEL, DlgUser::OnCancel) END_EVENT_TABLE() //---------------------------------------------------------------------------------------- void DlgUser::OnOk(wxCommandEvent& WXUNUSED(event) ) { - //canceled = false; s_User = m_UserName->GetValue(); s_Password = m_Password->GetValue(); EndModal(wxID_OK); } -//---------------------------------------------------------------------------------------- -//void DlgUser::OnCancel(wxCommandEvent& WXUNUSED(event) ) -// { -// canceled = true; -// EndModal(wxID_CANCEL); -// } -//---------------------------------------------------------------------------------------- -