X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdialogs.h;h=159294727122dc01326171551b7145d628f81e1d;hb=27a474e0622ebb7229fd5705552021f63d8f932d;hp=efdc3fac207bf3965f22aaa6c04999300906fa7a;hpb=861c2186ce387ce809882315a8f26d640f1844fc;p=ctsim.git diff --git a/src/dialogs.h b/src/dialogs.h index efdc3fa..1592947 100644 --- a/src/dialogs.h +++ b/src/dialogs.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: dialogs.h,v 1.3 2000/07/18 16:20:53 kevin Exp $ +** $Id: dialogs.h,v 1.5 2000/07/20 11:17:31 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 @@ -32,6 +32,25 @@ #include "wx/wx.h" #include + +class DialogGetPhantom : public wxDialog +{ + public: + DialogGetPhantom (wxFrame* pParent, const char* szDefaultPhantom); + virtual ~DialogGetPhantom (void) {} + + const wxString& getPhantom (void); + + private: + wxListBox* m_pListBoxPhantom; + wxString m_sDefaultPhantom; + + static const wxString s_asPhantom[]; + static const wxString s_asPhantomTitle[]; + static const unsigned int s_iNumPhantom; +}; + + class ImageFile; class DialogGetImageMinMax : public wxDialog { @@ -82,20 +101,24 @@ class DialogGetProjectionParameters : public wxDialog unsigned int getNView (void); unsigned int getNSamples (void); double getRotAngle (void); - const string& getGeometry(void); + const wxString& getGeometry(void); private: wxTextCtrl* m_pTextCtrlNDet; wxTextCtrl* m_pTextCtrlNView; wxTextCtrl* m_pTextCtrlNSamples; wxTextCtrl* m_pTextCtrlRotAngle; - wxTextCtrl* m_pTextCtrlGeometry; + wxListBox* m_pListBoxGeometry; int m_iDefaultNDet; int m_iDefaultNView; int m_iDefaultNSamples; double m_dDefaultRotAngle; - string m_sDefaultGeometry; + wxString m_sDefaultGeometry; + + static const wxString s_asGeometry[]; + static const wxString s_asGeometryTitle[]; + static const unsigned int s_iNumGeometry; }; @@ -107,34 +130,51 @@ class DialogGetReconstructionParameters : public wxDialog unsigned int getXSize(void); unsigned int getYSize(void); - const string& getFilterName(void); + const wxString& getFilterName(void); double getFilterParam(void); - const string& getFilterMethodName(void); + const wxString& getFilterMethodName(void); unsigned int getZeropad(void); - const string& getInterpName(void); + const wxString& getInterpName(void); unsigned int getInterpParam(void); - const string& getBackprojName(void); + const wxString& getBackprojName(void); private: wxTextCtrl* m_pTextCtrlXSize; wxTextCtrl* m_pTextCtrlYSize; - wxTextCtrl* m_pTextCtrlFilterName; - wxTextCtrl* m_pTextCtrlFilterParam; - wxTextCtrl* m_pTextCtrlFilterMethodName; wxTextCtrl* m_pTextCtrlZeropad; - wxTextCtrl* m_pTextCtrlInterpName; + wxTextCtrl* m_pTextCtrlFilterParam; wxTextCtrl* m_pTextCtrlInterpParam; - wxTextCtrl* m_pTextCtrlBackprojName; + + wxListBox* m_pListBoxFilter; + wxListBox* m_pListBoxFilterMethod; + wxListBox* m_pListBoxInterp; + wxListBox* m_pListBoxBackproj; int m_iDefaultXSize; int m_iDefaultYSize; - string m_sDefaultFilterName; double m_dDefaultFilterParam; - string m_sDefaultFilterMethodName; int m_iDefaultZeropad; - string m_sInterpName; int m_iDefaultInterpParam; - string m_sBackprojName; + wxString m_sDefaultFilterName; + wxString m_sDefaultFilterMethodName; + wxString m_sDefaultInterpName; + wxString m_sDefaultBackprojName; + + static const wxString s_asFilter[]; + static const wxString s_asFilterTitle[]; + static const unsigned int s_iNumFilter; + + static const wxString s_asFilterMethod[]; + static const wxString s_asFilterMethodTitle[]; + static const unsigned int s_iNumFilterMethod; + + static const wxString s_asInterp[]; + static const wxString s_asInterpTitle[]; + static const unsigned int s_iNumInterp; + + static const wxString s_asBackproj[]; + static const wxString s_asBackprojTitle[]; + static const unsigned int s_iNumBackproj; }; #endif