** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dialogs.h,v 1.24 2001/02/11 04:56:38 kevin Exp $
+** $Id: dialogs.h,v 1.29 2001/02/22 00:56:50 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
#include "projections.h"
+class CTSimHelpButton : public wxButton
+{
+public:
+ CTSimHelpButton (wxWindow* parent, int id)
+ : wxButton (parent, id, "Help")
+ {}
+};
+
+
// CLASS StringValueAndTitleListBox
//
// A superclass of wxListBox that can handle string values and titles
};
+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:
const char* getPhantom ();
private:
- StringValueAndTitleListBox* m_pListBoxPhantom;
+ StringValueAndTitleRadioBox* m_pRadioBoxPhantom;
};
};
+class DialogPreferences : public wxDialog
+{
+ public:
+ DialogPreferences (wxWindow* pParent, const char* const pszTitle, bool bAdvanced, bool bAskNewDocs,
+ bool bVerboseLogging, bool bStartupTips);
+ virtual ~DialogPreferences ();
+
+ bool getAdvancedOptions ();
+ bool getAskDeleteNewDocs ();
+ bool getVerboseLogging ();
+ bool getStartupTips ();
+
+ private:
+ wxCheckBox* m_pCBAdvancedOptions;
+ wxCheckBox* m_pCBAskDeleteNewDocs;
+ wxCheckBox* m_pCBVerboseLogging;
+ wxCheckBox* m_pCBStartupTips;
+};
+
+
class ImageFile;
class DialogGetMinMax : 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;
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;
wxTextCtrl* m_pTextCtrlInputScale;
wxTextCtrl* m_pTextCtrlBandwidth;
- StringValueAndTitleListBox* m_pListBoxFilter;
- StringValueAndTitleListBox* m_pListBoxDomain;
+ StringValueAndTitleRadioBox* m_pRadioBoxFilter;
+ StringValueAndTitleRadioBox* m_pRadioBoxDomain;
int m_iDefaultXSize;
int m_iDefaultYSize;
const char* getFormatName();
private:
- StringValueAndTitleListBox* m_pListBoxFormat;
+ StringValueAndTitleRadioBox* m_pRadioBoxFormat;
};
class DialogAutoScaleParameters : public wxDialog
const double m_dStdDev;
wxTextCtrl* m_pTextCtrlStdDevFactor;
- wxListBox* m_pListBoxCenter;
+ wxRadioBox* m_pRadioBoxCenter;
};
class DialogGetXYSize : public wxDialog
wxTextCtrl* m_pTextCtrlYSize;
wxTextCtrl* m_pTextCtrlZeropad;
- StringValueAndTitleListBox* m_pListBoxInterpolation;
+ StringValueAndTitleRadioBox* m_pRadioBoxInterpolation;
int m_iDefaultXSize;
int m_iDefaultYSize;