Skip to content
Snippets Groups Projects
QtDataProcessorOptionsDialog.h 2.01 KiB
Newer Older
#ifndef MANTIDQTMANTIDWIDGETS_QTDATAPROCESSOROPTIONSDIALOG_H
#define MANTIDQTMANTIDWIDGETS_QTDATAPROCESSOROPTIONSDIALOG_H

#include "MantidKernel/System.h"

#include <QDialog>
#include <boost/shared_ptr.hpp>
#include "ui_DataProcessorOptionsDialog.h"
namespace MantidQt {
class DataProcessorView;
class DataProcessorPresenter;

/** QtDataProcessorOptionsDialog : Provides a dialog for setting DataProcessorUI
options.

Copyright &copy; 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 {
  Q_OBJECT
public:
  QtDataProcessorOptionsDialog(
      DataProcessorView *view,
      boost::shared_ptr<DataProcessorPresenter> presenter);
  ~QtDataProcessorOptionsDialog() override;

protected:
  void initLayout();
  void initBindings();
protected slots:
  void saveOptions();
  void loadOptions();

protected:
  // the interface
  Ui::DataProcessorOptionsDialog ui;
  // the presenter
  boost::shared_ptr<DataProcessorPresenter> m_presenter;
  // maps option names to widget names
  std::map<std::string, QString> m_bindings;
};

} // MantidQt
#endif /* MANTIDQTMANTIDWIDGETS_QTDATAPROCESSOROPTIONSDIALOG_H */