X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdlgezplot.cpp;h=2bf14f0091d2d736faedc6a0050407e3ed25ab26;hb=ee3b6b957bf6786bd0b4c15ce67c22381a8301fc;hp=446b51d468b794cca3272ffd0f2be8cfadcf17cd;hpb=58319f51aa5804c90fe5edd8e5f0386b7a297827;p=ctsim.git diff --git a/src/dlgezplot.cpp b/src/dlgezplot.cpp index 446b51d..2bf14f0 100644 --- a/src/dlgezplot.cpp +++ b/src/dlgezplot.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: dlgezplot.cpp,v 1.5 2003/01/23 23:35:58 kevin Exp $ +** $Id$ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -62,7 +62,7 @@ END_EVENT_TABLE() IMPLEMENT_CLASS(EZPlotControl, wxPanel) -EZPlotControl::EZPlotControl (wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, +EZPlotControl::EZPlotControl (wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator, const wxString& name) : m_pEZPlot(0), m_pSGPDriver(0), m_pSGP(0), m_pDC(0) { @@ -80,7 +80,7 @@ EZPlotControl::GetBestSize () const } EZPlotControl::~EZPlotControl() -{ +{ delete m_pEZPlot; delete m_pSGP; delete m_pSGPDriver; @@ -113,20 +113,20 @@ wxEZPlotDialog::wxEZPlotDialog (wxWindow *parent, bool bCancelButton) m_parentTop = parent; while ( m_parentTop && m_parentTop->GetParent() ) m_parentTop = m_parentTop->GetParent(); - + wxBoxSizer* pTopSizer = new wxBoxSizer (wxVERTICAL); pTopSizer->Add (m_pEZPlotCtrl = new EZPlotControl (this), 0, wxALIGN_CENTER | wxALL, 5); - + wxBoxSizer* pButtonSizer = new wxBoxSizer (wxHORIZONTAL); wxButton* pButtonOk = new wxButton (this, wxID_OK, "Ok"); pButtonSizer->Add (pButtonOk, 0, wxEXPAND | wxALL, 10); if (bCancelButton) { wxButton* pButtonCancel = new wxButton (this, wxID_CANCEL, "Cancel"); pButtonSizer->Add (pButtonCancel, 0, wxEXPAND | wxALL, 10); - } + } pTopSizer->Add (pButtonSizer, 0, wxALIGN_CENTER); - + SetAutoLayout (true); SetSizer (pTopSizer); pTopSizer->Fit (this);