projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r526: *** empty log message ***
[ctsim.git]
/
libctgraphics
/
dlgezplot.cpp
diff --git
a/libctgraphics/dlgezplot.cpp
b/libctgraphics/dlgezplot.cpp
index 869d451dc906d025c486864ab5494b19a08a5160..4dbc6fee8ecf0675f9254c9d4e6beef221009281 100644
(file)
--- a/
libctgraphics/dlgezplot.cpp
+++ b/
libctgraphics/dlgezplot.cpp
@@
-7,9
+7,9
@@
** Date Started: Jan 2001
**
** This is part of the CTSim program
** Date Started: Jan 2001
**
** This is part of the CTSim program
-** Copyright (
C
) 1983-2001 Kevin Rosenberg
+** Copyright (
c
) 1983-2001 Kevin Rosenberg
**
**
-** $Id: dlgezplot.cpp,v 1.
3 2001/01/19 22:53:56
kevin Exp $
+** $Id: dlgezplot.cpp,v 1.
4 2001/01/27 21:02:20
kevin Exp $
**
** 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
**
** 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
@@
-103,6
+103,7
@@
EZPlotControl::OnPaint (wxPaintEvent& event)
m_pSGPDriver = new SGPDriver (&dc, m_iClientX, m_iClientY);
m_pSGP = new SGP (*m_pSGPDriver);
m_pSGP->setTextPointSize(10);
m_pSGPDriver = new SGPDriver (&dc, m_iClientX, m_iClientY);
m_pSGP = new SGP (*m_pSGPDriver);
m_pSGP->setTextPointSize(10);
+// m_pSGP->setViewport (0, 0, 1., 0.5); // for debugging testing only
if (m_pEZPlot && m_pSGP) {
m_pSGP->eraseWindow();
m_pEZPlot->plot (m_pSGP);
if (m_pEZPlot && m_pSGP) {
m_pSGP->eraseWindow();
m_pEZPlot->plot (m_pSGP);
@@
-110,7
+111,7
@@
EZPlotControl::OnPaint (wxPaintEvent& event)
}
}
-EZPlotDialog::EZPlotDialog (wxWindow *parent)
+EZPlotDialog::EZPlotDialog (wxWindow *parent
, bool bCancelButton
)
: wxDialog((parent ? parent : theApp->getMainFrame()), -1, wxString("EZPlot"), wxDefaultPosition, wxDefaultSize, wxDIALOG_MODAL),
m_parentTop(0)
{
: wxDialog((parent ? parent : theApp->getMainFrame()), -1, wxString("EZPlot"), wxDefaultPosition, wxDefaultSize, wxDIALOG_MODAL),
m_parentTop(0)
{
@@
-127,10
+128,11
@@
EZPlotDialog::EZPlotDialog (wxWindow *parent)
wxBoxSizer* pButtonSizer = new wxBoxSizer (wxHORIZONTAL);
wxButton* pButtonOk = new wxButton (this, wxID_OK, "Ok");
wxBoxSizer* pButtonSizer = new wxBoxSizer (wxHORIZONTAL);
wxButton* pButtonOk = new wxButton (this, wxID_OK, "Ok");
- wxButton* pButtonCancel = new wxButton (this, wxID_CANCEL, "Cancel");
pButtonSizer->Add (pButtonOk, 0, wxEXPAND | wxALL, 10);
pButtonSizer->Add (pButtonOk, 0, wxEXPAND | wxALL, 10);
- pButtonSizer->Add (pButtonCancel, 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);
pTopSizer->Add (pButtonSizer, 0, wxALIGN_CENTER);
SetAutoLayout (true);