File indexing completed on 2024-05-12 05:04:31

0001 /*
0002     SPDX-FileCopyrightText: 2018 Ralf Habacker ralf.habacker @freenet.de
0003 
0004     This file is part of libalkimia.
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef MAINWINDOW_H
0010 #define MAINWINDOW_H
0011 
0012 #include <QMainWindow>
0013 #include "applicationsettings.h"
0014 
0015 class QUrl;
0016 
0017 class MainWindow : public QMainWindow, public ApplicationSettings
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit MainWindow(QWidget *parent = 0);
0023     ~MainWindow();
0024 
0025 protected Q_SLOTS:
0026     void slotUpdateAvailable(const QString &profile, const QString &name);
0027     void slotUrlChanged(const QUrl &url);
0028     void slotEditingFinished();
0029     void slotLanguageChanged(const QString &);
0030 
0031 protected:
0032     void closeEvent(QCloseEvent *event) override;
0033 
0034 private:
0035     class Private;
0036     Private *const d;
0037 };
0038 
0039 #endif // MAINWINDOW_H