/src/wt/src/Wt/WDefaultLoadingIndicator.h
Line | Count | Source |
1 | | // This may look like C code, but it's really -*- C++ -*- |
2 | | /* |
3 | | * Copyright (C) 2008 Emweb bv, Herent, Belgium. |
4 | | * |
5 | | * See the LICENSE file for terms of use. |
6 | | */ |
7 | | #ifndef WDEFAULT_LOADING_INDICATOR_H_ |
8 | | #define WDEFAULT_LOADING_INDICATOR_H_ |
9 | | |
10 | | #include <Wt/WText.h> |
11 | | #include <Wt/WLoadingIndicator.h> |
12 | | |
13 | | namespace Wt { |
14 | | |
15 | | /*! \class WDefaultLoadingIndicator Wt/WDefaultLoadingIndicator.h Wt/WDefaultLoadingIndicator.h |
16 | | * \brief A default loading indicator. |
17 | | * |
18 | | * The default loading indicator displays the text message <span |
19 | | * style="background-color: red; color: white; font-family: |
20 | | * Arial,Helvetica,sans-serif; font-size: small;">Loading...</span> in |
21 | | * the right top corner of the window. |
22 | | * |
23 | | * <h3>CSS</h3> |
24 | | * |
25 | | * This widget does not provide styling, |
26 | | * and can be styled using inline or external CSS as appropriate. |
27 | | * |
28 | | * <h3>i18n</h3> |
29 | | * |
30 | | * The strings used in this class can be translated by overriding |
31 | | * the default values for the following localization keys: |
32 | | * - Wt.WDefaultLoadingIndicator.Loading: Loading... |
33 | | * |
34 | | * \sa WApplication::setLoadingIndicator() |
35 | | */ |
36 | | class WT_API WDefaultLoadingIndicator : public WLoadingIndicator |
37 | | { |
38 | | public: |
39 | | /*! \brief Constructor. |
40 | | */ |
41 | | WDefaultLoadingIndicator(); |
42 | | |
43 | 0 | virtual WWidget *widget() { return this; } |
44 | | virtual void setMessage(const WString& text) override; |
45 | | }; |
46 | | |
47 | | } |
48 | | |
49 | | #endif // WDEFAULT_LOADING_INDICATOR_H_ |