#ifndef _SpecifyFunDialog_
#define _SpecifyFunDialog_
#include <QWidget>
#include "ui_SpecifyFunDialogWindow.h"
//
//##############################################################################
//                          SpecifyFunDialog.h
//##############################################################################
//
//
// This class is created to manage the specification of the 
// function to be plotted through a dialog interface. 
// 
// When the interface is displayed by calling exec():
//
// The current value of the data member fxText is used to 
// set the contents of the QLineEdit in the dialog window.
// 
// When the interface OK button is hit:
//
// The program validates the input
//
//     -if the input is acceptable, the data member fxText is set
//      to the contents of the QLineEdit in the dialog window. The
//      dialog interface is closed. 
//
//     -if the input is unacceptable,an error message box is displayed
//      the dialog is not closed and the fxText is not altered.
//
// When the interface Cancel button is hit:
//
//     -the dialog interface is closed and the 
//      the value of the fxText data member is not changed.
//
// Math 157                                                March 3, 2009
//
class SpecifyFunDialog : public QDialog, private Ui::SpecifyFunDialogWindow
{
     Q_OBJECT

public:
 
	SpecifyFunDialog(QWidget *parent = 0);

	QString currentFtext;  // The current F(x) string

	void accept();         //  Over-riding base class implementation of accept()
	int exec();            //  Over-riding base class implementation of exec()
     
 };
#endif 
