File indexing completed on 2024-04-21 03:50:00

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2006-2007 Torsten Rahn <tackat@kde.org>
0004 // SPDX-FileCopyrightText: 2007 Inge Wallin <ingwa@kde.org>
0005 //
0006 
0007 //
0008 // The TileCreatorDialog displays the progress of the tile creation.
0009 //
0010 
0011 #ifndef MARBLE_TILECREATORDIALOG_H
0012 #define MARBLE_TILECREATORDIALOG_H
0013 
0014 #include <QDialog>
0015 
0016 #include "marble_export.h"
0017 
0018 class QString;
0019 
0020 namespace Marble
0021 {
0022 
0023 class TileCreator;
0024 class TileCreatorDialogPrivate;
0025 
0026 class MARBLE_EXPORT TileCreatorDialog : public QDialog
0027 {
0028 
0029     Q_OBJECT
0030 
0031  public:
0032     explicit TileCreatorDialog( TileCreator *creator, QWidget *parent = nullptr );
0033     ~TileCreatorDialog() override;
0034 
0035  public Q_SLOTS:
0036     void setProgress( int progress );
0037     void setSummary( const QString& name, const QString& description );
0038 
0039 private Q_SLOTS:
0040     void cancelTileCreation();
0041 
0042  private:
0043     Q_DISABLE_COPY( TileCreatorDialog )
0044     TileCreatorDialogPrivate  * const d;
0045 };
0046 
0047 }
0048 
0049 #endif