File indexing completed on 2024-05-19 04:07:53

0001 /*
0002     SPDX-FileCopyrightText: 2009 Stefan Majewsky <majewsky@gmx.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef PALAPELI_PUZZLETABLEWIDGET_H
0008 #define PALAPELI_PUZZLETABLEWIDGET_H
0009 
0010 #include <QWidget>
0011 
0012 class QStackedWidget;
0013 
0014 namespace Palapeli
0015 {
0016     class LoadingWidget;
0017     class TextProgressBar;
0018     class View;
0019     class ZoomWidget;
0020 
0021     class PuzzleTableWidget : public QWidget
0022     {
0023         Q_OBJECT
0024         public:
0025             PuzzleTableWidget();
0026 
0027             Palapeli::View* view() const;
0028         public Q_SLOTS:
0029             void reportProgress(int pieceCount, int partCount);
0030             void showStatusBar(bool visible);
0031         private Q_SLOTS:
0032             void setZoomAdjustable(bool adjustable);
0033         private:
0034             bool m_zoomAdjustable;
0035             QStackedWidget* m_stack;
0036             Palapeli::LoadingWidget* m_loadingWidget;
0037             Palapeli::View* m_view;
0038             Palapeli::TextProgressBar* m_progressBar;
0039             Palapeli::ZoomWidget* m_zoomWidget;
0040     };
0041 }
0042 
0043 #endif // PALAPELI_PUZZLETABLE_H