X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fdialogs.h;h=0bb051043e71e45e96e2d748ab7ddbc960a94362;hp=92ba70ce67f9a5b256c19e2ebb45dbb4b8d20aec;hb=7c695eef645b25a1df6a95c4fc72f6b2994a3630;hpb=95ce0c0260ab6fe237103bcbe2a8bdfae3c83d25 diff --git a/src/dialogs.h b/src/dialogs.h index 92ba70c..0bb0510 100644 --- a/src/dialogs.h +++ b/src/dialogs.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: dialogs.h,v 1.25 2001/02/11 21:57:08 kevin Exp $ +** $Id: dialogs.h,v 1.26 2001/02/14 18:39:47 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 @@ -56,6 +56,18 @@ class StringValueAndTitleListBox : public wxListBox }; +class StringValueAndTitleRadioBox : public wxRadioBox +{ + public: + StringValueAndTitleRadioBox (wxDialog* pParent, const wxString& strTitle, int nChoices, const char* aszTitle[], const char* aszValue[]); + + const char* getSelectionStringValue () const; + + private: + const char** m_ppszValues; +}; + + class DialogGetPhantom : public wxDialog { public: @@ -65,7 +77,7 @@ class DialogGetPhantom : public wxDialog const char* getPhantom (); private: - StringValueAndTitleListBox* m_pListBoxPhantom; + StringValueAndTitleRadioBox* m_pRadioBoxPhantom; }; @@ -175,8 +187,8 @@ class DialogGetProjectionParameters : public wxDialog wxTextCtrl* m_pTextCtrlFocalLength; wxTextCtrl* m_pTextCtrlViewRatio; wxTextCtrl* m_pTextCtrlScanRatio; - StringValueAndTitleListBox* m_pListBoxGeometry; - StringValueAndTitleListBox* m_pListBoxTrace; + StringValueAndTitleRadioBox* m_pRadioBoxGeometry; + StringValueAndTitleRadioBox* m_pRadioBoxTrace; int m_iDefaultNDet; int m_iDefaultNView; @@ -222,12 +234,12 @@ class DialogGetReconstructionParameters : public wxDialog wxTextCtrl* m_pTextCtrlFilterParam; wxTextCtrl* m_pTextCtrlInterpParam; - StringValueAndTitleListBox* m_pListBoxFilter; - StringValueAndTitleListBox* m_pListBoxFilterMethod; - StringValueAndTitleListBox* m_pListBoxFilterGeneration; - StringValueAndTitleListBox* m_pListBoxInterp; - StringValueAndTitleListBox* m_pListBoxBackproject; - StringValueAndTitleListBox* m_pListBoxTrace; + StringValueAndTitleRadioBox* m_pRadioBoxFilter; + StringValueAndTitleRadioBox* m_pRadioBoxFilterMethod; + StringValueAndTitleRadioBox* m_pRadioBoxFilterGeneration; + StringValueAndTitleRadioBox* m_pRadioBoxInterp; + StringValueAndTitleRadioBox* m_pRadioBoxBackproject; + StringValueAndTitleRadioBox* m_pRadioBoxTrace; int m_iDefaultXSize; int m_iDefaultYSize; @@ -261,8 +273,8 @@ class DialogGetFilterParameters : public wxDialog wxTextCtrl* m_pTextCtrlInputScale; wxTextCtrl* m_pTextCtrlBandwidth; - StringValueAndTitleListBox* m_pListBoxFilter; - StringValueAndTitleListBox* m_pListBoxDomain; + StringValueAndTitleRadioBox* m_pRadioBoxFilter; + StringValueAndTitleRadioBox* m_pRadioBoxDomain; int m_iDefaultXSize; int m_iDefaultYSize; @@ -282,7 +294,7 @@ class DialogExportParameters : public wxDialog const char* getFormatName(); private: - StringValueAndTitleListBox* m_pListBoxFormat; + StringValueAndTitleRadioBox* m_pRadioBoxFormat; }; class DialogAutoScaleParameters : public wxDialog @@ -301,7 +313,7 @@ class DialogAutoScaleParameters : public wxDialog const double m_dStdDev; wxTextCtrl* m_pTextCtrlStdDevFactor; - wxListBox* m_pListBoxCenter; + wxRadioBox* m_pRadioBoxCenter; }; class DialogGetXYSize : public wxDialog @@ -340,7 +352,7 @@ class DialogGetConvertPolarParameters : public wxDialog wxTextCtrl* m_pTextCtrlYSize; wxTextCtrl* m_pTextCtrlZeropad; - StringValueAndTitleListBox* m_pListBoxInterpolation; + StringValueAndTitleRadioBox* m_pRadioBoxInterpolation; int m_iDefaultXSize; int m_iDefaultYSize;