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 "gui/swiftguiexport.h"
10 
11 namespace swift::gui::views
12 {
13  class CViewBaseNonTemplate;
14 }
15 namespace swift::gui
16 {
19  {
20  public:
22  void enableLoadIndicator(bool enable);
23 
25  bool isShowingLoadIndicator() const;
26 
28  int showLoadIndicator(std::chrono::milliseconds timeout = std::chrono::milliseconds(0));
29 
31  void hideLoadIndicator();
32 
33  protected:
35  CEnableForViewBasedIndicator(views::CViewBaseNonTemplate *viewWithIndicator = nullptr);
36 
38  void setViewWithIndicator(swift::gui::views::CViewBaseNonTemplate *viewWithIndicator);
39 
40  private:
41  views::CViewBaseNonTemplate *m_viewWithIndicator = nullptr;
42  };
43 
44 } // namespace swift::gui
45 
46 #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.