Newer
Older
Raquel Alvarez Banos
committed
#ifndef MANTIDQTMANTIDWIDGETS_QTDATAPROCESSOROPTIONSDIALOG_H
#define MANTIDQTMANTIDWIDGETS_QTDATAPROCESSOROPTIONSDIALOG_H
#include "MantidKernel/System.h"
#include <QDialog>
#include "ui_DataProcessorOptionsDialog.h"
Raquel Alvarez Banos
committed
namespace MantidWidgets {
class DataProcessorView;
class DataProcessorPresenter;
Raquel Alvarez Banos
committed
/** QtDataProcessorOptionsDialog : Provides a dialog for setting DataProcessorUI
options.
Copyright © 2014 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge
National Laboratory & European Spallation Source
This file is part of Mantid.
Mantid is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Mantid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class DLLExport QtDataProcessorOptionsDialog : public QDialog {
QtDataProcessorOptionsDialog(
boost::shared_ptr<DataProcessorPresenter> presenter);
~QtDataProcessorOptionsDialog() override;
protected:
void initLayout();
void initBindings();
protected slots:
void saveOptions();
void loadOptions();
protected:
// the interface
Ui::DataProcessorOptionsDialog ui;
boost::shared_ptr<DataProcessorPresenter> m_presenter;
// maps option names to widget names
std::map<std::string, QString> m_bindings;
};
Raquel Alvarez Banos
committed
} // MantidWidgets
Raquel Alvarez Banos
committed
#endif /* MANTIDQTMANTIDWIDGETS_QTDATAPROCESSOROPTIONSDIALOG_H */