summaryrefslogtreecommitdiff
path: root/src/previewdialog.h
blob: 9525f127616f3195dba5643848024a6c83c5b1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef PREVIEWDIALOG_H
#define PREVIEWDIALOG_H

#include <QDialog>

namespace Ui {
class PreviewDialog;
}

class PreviewDialog : public QDialog
{
  Q_OBJECT

public:
  explicit PreviewDialog(const QString &fileName, QWidget *parent = 0);
  ~PreviewDialog();

  // also saves and restores geometry
  //
  int exec() override;

  void addVariant(const QString &modName, QWidget *widget);
  int numVariants() const;

private slots:

  void on_variantsStack_currentChanged(int arg1);

  void on_closeButton_clicked();

  void on_previousButton_clicked();

  void on_nextButton_clicked();

private:

  Ui::PreviewDialog *ui;
};

#endif // PREVIEWDIALOG_H