This file is indexed.

/usr/include/Wt/WOverlayLoadingIndicator is in libwt-dev 3.1.10-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef WOVERLAY_LOADING_INDICATOR_H_
#define WOVERLAY_LOADING_INDICATOR_H_

#include <Wt/WContainerWidget>
#include <Wt/WLoadingIndicator>

namespace Wt {

class WText;

/*! \class WOverlayLoadingIndicator Wt/WOverlayLoadingIndicator Wt/WOverlayLoadingIndicator
 *  \brief A more obvious loading indicator that grays the window.
 *
 * This loading indicator uses a gray semi-transparent overlay to
 * darken the window contents, and centers a loading icon (with some
 * text).
 *
 * Usage example:
 * \if cpp
 * \code
 * Wt::WApplication *app = Wt::WApplication::instance();
 * app->setLoadingIndicator(new Wt::WOverlayLoadingIndicator());
 * \endcode
 * \endif
 *
 * \image html WOverlayLoadingIndicator.png "The overlay loading indicator" 
 *
 * \note For this loading indicator to render properly in IE, you need to
 *       reset the "body" margin to 0. Using the inline stylesheet, this could
 *       be done using:
 * \if cpp
 * \code
 *   WApplication::instance()->styleSheet().addRule("body", "margin: 0px");
 * \endcode
 * \endif
 *
 * <h3>CSS</h3>
 *
 * This widget does not provide styling, 
 * and can be styled using inline or external CSS as appropriate.
 *
 * <h3>i18n</h3>
 *
 * The strings used in this class can be translated by overriding
 * the default values for the following localization keys:
 * - Wt.WOverlayLoadingIndicator.Loading: Loading...
 *
 * \sa WApplication::setLoadingIndicator()
 */
class WT_API WOverlayLoadingIndicator : public WContainerWidget,
				 public WLoadingIndicator
{
public:
  /*! \brief Construct the loading indicator.
   *  \param styleClass the style class for the central box
   *  \param backgroundStyleClass the style class for the "background" part
   *         of the indicator
   *  \param textStyleClass the style class for the text that is displayed
   *
   *  \note if styleClass is not set, the central box gets the CSS style
   *        elements
   *        \code
   *             background: white;
   *             border: 3px solid #333333;
   *             z-index: 10001; visibility: visible;
   *             position: absolute; left: 50%; top: 50%;
   *             margin-left: -50px; margin-top: -40px;
   *             width: 100px; height: 80px;
   *             font-family: arial,sans-serif;
   *             text-align: center
   *        \endcode
   *  \note if backgroundStyleClass is not set, the background gets the CSS
   *        style elements
   *        \code
   *             background: #DDDDDD;
   *             height: 100%; width: 100%;
   *             top: 0px; left: 0px;
   *             z-index: 10000;
   *             -moz-background-clip: -moz-initial;
   *             -moz-background-origin: -moz-initial;
   *             -moz-background-inline-policy: -moz-initial;
   *             opacity: 0.5; filter: alpha(opacity=50); -moz-opacity:0.5;
   *             position: absolute;
   *        \endcode
   */
  WOverlayLoadingIndicator(const WT_USTRING& styleClass = WT_USTRING(),
			   const WT_USTRING& backgroundStyleClass = WT_USTRING(),
			   const WT_USTRING& textStyleClass = WT_USTRING());

  virtual WWidget *widget() { return this; }
  virtual void setMessage(const WString& text);

private:
  WContainerWidget *cover_;
  WContainerWidget *center_;
  WText            *text_;
};

}

#endif // WOVERLAY_LOADING_INDICATOR_H_