aboutsummaryrefslogtreecommitdiffstats
path: root/QrcEditor/mainwindow.h
blob: 54602ad060bd6bf7903d5c084d66c9008d8cedc9 (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
41
42
/***************************************************************************************************
 Copyright (C) 2024 The Qt Company Ltd.
 SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
***************************************************************************************************/

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QString>
#include <QCloseEvent>

namespace SharedTools {
    class QrcEditor;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow();
    void openFile(QString fileName);

protected:
    void closeEvent(QCloseEvent *e);

private slots:
    void slotOpen();
    void slotSave();
    void slotAbout();
    void slotAboutQt();

private:
    int fileChangedDialog();

private:
    SharedTools::QrcEditor *m_qrcEditor;
    QString                 m_devenvPIDArg;
};

#endif // MAINWINDOW_H