1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2007-27-08 7 * Description : a tool bar action object to display animated logo 8 * 9 * Copyright (C) 2007-2021 by Gilles Caulier <caulier dot gilles at gmail dot com> 10 * 11 * This program is free software; you can redistribute it 12 * and/or modify it under the terms of the GNU General 13 * Public License as published by the Free Software Foundation; 14 * either version 2, or (at your option) 15 * any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * ============================================================ */ 23 24 #ifndef DIGIKAM_DLOGO_ACTION_H 25 #define DIGIKAM_DLOGO_ACTION_H 26 27 // Qt includes 28 29 #include <QWidgetAction> 30 31 // Local includes 32 33 #include "digikam_export.h" 34 35 namespace Digikam 36 { 37 38 class DIGIKAM_EXPORT DLogoAction : public QWidgetAction 39 { 40 Q_OBJECT 41 42 public: 43 44 explicit DLogoAction(QObject* const parent, bool alignOnright=true); 45 ~DLogoAction() override; 46 47 void start(); 48 void stop(); 49 bool running() const; 50 51 protected: 52 53 QWidget* createWidget(QWidget* parent) override; 54 void deleteWidget(QWidget* widget) override; 55 56 private Q_SLOTS: 57 58 void slotProgressTimerDone(); 59 60 private: 61 62 class Private; 63 Private* const d; 64 }; 65 66 } // namespace Digikam 67 68 #endif // DIGIKAM_DLOGO_ACTION_H 69