/* This source file is part of the Tomviz project, https://tomviz.org/.
  It is released under the 3-Clause BSD License, see "LICENSE". */

#ifndef tomvizPresetDialog_h
#define tomvizPresetDialog_h

#include <QDialog>
#include <QScopedPointer>

class QTableView;
class vtkSMProxy;

namespace Ui {
class PresetDialog;
}

namespace tomviz {

class PresetModel;
  
class PresetDialog : public QDialog
{
  Q_OBJECT

public:
  explicit PresetDialog(QWidget* parent);
  QString presetName();
  void addNewPreset(const QJsonObject& newPreset);
  QJsonObject jsonObject();
  ~PresetDialog() override;

signals:
  void applyPreset();
  void resetToDefaults();

private slots:
  void warning();

private:
  QScopedPointer<Ui::PresetDialog> m_ui;
  PresetModel* m_model;
  QTableView* m_view;
  void customMenuRequested(const QModelIndex& Index);
};
} // namespace tomviz

#endif

/* This source file is part of the Tomviz project, https://tomviz.org/.
  It is released under the 3-Clause BSD License, see "LICENSE". */

#ifndef tomvizPresetDialog_h
#define tomvizPresetDialog_h

#include <QDialog>
#include <QScopedPointer>

class QTableView;
class vtkSMProxy;

namespace Ui {
class PresetDialog;
}

namespace tomviz {

class PresetModel;
  
class PresetDialog : public QDialog
{
  Q_OBJECT

public:
  explicit PresetDialog(QWidget* parent);
  ~PresetDialog() override;
  QString presetName();
  void addNewPreset(const QJsonObject& newPreset);
  QJsonObject jsonObject();

signals:
  void applyPreset();
  void resetToDefaults();

private slots:
  void warning();

private:
  QScopedPointer<Ui::PresetDialog> m_ui;
  PresetModel* m_model;
  QTableView* m_view;
  void customMenuRequested(const QModelIndex& Index);
};
} // namespace tomviz

#endif

Move destructor to be below constructor
Move destructor to be below constructor

Signed-off-by: Marcus D. Hanwell <cf7042e2e8eee958b5bcde1ae2cbefef82efc184@kitware.com>
