summaryrefslogtreecommitdiffhomepage
path: root/variant/default/new_file_dialog.h
blob: 5669e4a90fed0e17e5b0e2e2011b24e324e269e4 (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
#pragma once

#include "ui_new_config.h"
#include "options/options.hpp"
#include <QFile>
#include <QRegExp>
#include <QString>
#include <QMessageBox>

class new_file_dialog : public QDialog
{
    Q_OBJECT
public:
    new_file_dialog(QWidget* parent = 0);
    bool is_ok(QString& name_);

private:
    Ui::UI_new_config ui;
    bool ok = false;
    QString name;

private slots:
    void cancel_clicked();
    void ok_clicked();
};