swift
enableforviewbasedindicator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_ENABLEFORVIEWBASEDINDICATOR_H
7 #define SWIFT_GUI_ENABLEFORVIEWBASEDINDICATOR_H
8 
9 #include <chrono>
10 
11 #include "gui/swiftguiexport.h"
12 
13 namespace swift::gui::views
14 {
15  class CViewBaseNonTemplate;
16 }
17 namespace swift::gui
18 {
21  {
22  public:
24  void enableLoadIndicator(bool enable);
25 
27  bool isShowingLoadIndicator() const;
28 
30  int showLoadIndicator(std::chrono::milliseconds timeout = std::chrono::milliseconds(0));
31 
33  void hideLoadIndicator();
34 
35  protected:
37  CEnableForViewBasedIndicator(views::CViewBaseNonTemplate *viewWithIndicator = nullptr);
38 
40  void setViewWithIndicator(swift::gui::views::CViewBaseNonTemplate *viewWithIndicator);
41 
42  private:
43  views::CViewBaseNonTemplate *m_viewWithIndicator = nullptr;
44  };
45 
46 } // namespace swift::gui
47 
48 #endif // SWIFT_GUI_ENABLEFORVIEWBASEDINDICATOR_H
Hand over indication task to an embedded view.
Non templated base class, allows Q_OBJECT and signals / slots to be used.
Definition: viewbase.h:87
Views, mainly QTableView.
GUI related classes.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.