** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dialogs.cpp,v 1.35 2001/02/16 22:31:18 kevin Exp $
+** $Id: dialogs.cpp,v 1.36 2001/02/19 20:23:17 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
std::ostringstream osRotAngle;
osRotAngle << dDefaultRotAngle;
m_pTextCtrlRotAngle = new wxTextCtrl (this, -1, osRotAngle.str().c_str(), wxDefaultPosition, wxSize(100, 25), 0);
- pText2Sizer->Add (new wxStaticText (this, -1, "Rotation Angle (PI units)"), 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL);
+ pText2Sizer->Add (new wxStaticText (this, -1, "Rotation Angle (Fraction of circle)"), 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL);
pText2Sizer->Add (m_pTextCtrlRotAngle, 0, wxALIGN_CENTER_VERTICAL);
}
pGridSizer->Add (pText2Sizer);
wxString strCtrl = m_pTextCtrlRotAngle->GetValue();
double dValue;
if (strCtrl.ToDouble (&dValue))
- return (dValue * PI);
+ return (dValue * TWOPI);
else
return (m_dDefaultRotAngle);
} else {
Scanner::GEOMETRY_PARALLEL)
return (PI);
else
- return (2 * PI);
+ return (TWOPI);
}
}
pTextGridSizer->Add (m_pTextCtrlXSize, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL);
pTextGridSizer->Add (new wxStaticText (this, -1, "Y Size"), 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL);
pTextGridSizer->Add (m_pTextCtrlYSize, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL);
+#ifdef DEBUG
if (iDefaultZeropad >= 0) {
std::ostringstream osZeropad;
osZeropad << iDefaultZeropad;
pTextGridSizer->Add (new wxStaticText (this, -1, "Zeropad"), 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL);
pTextGridSizer->Add (m_pTextCtrlZeropad, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL);
}
-
+#endif
+
pGridSizer->Add (pTextGridSizer, 0, wxALIGN_CENTER | wxALL);
pTopSizer->Add (pGridSizer, 1, wxALL | wxALIGN_CENTER, 3);
unsigned int
DialogGetConvertPolarParameters::getZeropad ()
{
+#ifdef DEBUG
wxString strCtrl = m_pTextCtrlZeropad->GetValue();
unsigned long lValue;
if (strCtrl.ToULong (&lValue))
return lValue;
else
return (m_iDefaultZeropad);
+#else
+ return 0;
+#endif
}
const char*