This file is indexed.

/usr/include/Wt/Ext/LineEdit is in libwtext-dev 3.3.4+dfsg-6ubuntu1.

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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// 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 EXT_LINEEDIT_H_
#define EXT_LINEEDIT_H_

#include <Wt/Ext/FormField>

namespace Wt {

  class WLineEdit;

  namespace Ext {

/*! \class LineEdit Wt/Ext/LineEdit Wt/Ext/LineEdit
 *  \brief A line edit.
 *
 * To act upon text changes, connect a slot to the changed() signal.
 * This signal is emitted when the user changed the content, and
 * subsequently removes the focus from the line edit.
 *
 * To act upon editing, connect a slot to the keyWentUp() signal.
 *
 * At all times, the current content may be accessed with the text()
 * method.
 *
 * The API is a super-set of the WLineEdit API.
 *
 * \ingroup ext
 */
class WT_EXT_API LineEdit : public FormField
{
public:
   /*! \brief Enum that describes how the contents is displayed.
   *
   * \sa setEchoMode
   * \sa echoMode
   */
  enum EchoMode { Normal,   //!< Characters are shown.
		  Password  //!< Hide the contents as for a password.
  };

  /*! \brief Create a new line edit with empty content.
   */
  LineEdit(WContainerWidget *parent = 0);

  /*! \brief Construct a line edit with given content.
   */
  LineEdit(const WString& content, WContainerWidget *parent = 0);

  /*! \brief Specify the width of the line edit in number of characters.
   */
  void setTextSize(int chars);

  /*! \brief Return the current width of the line edit in number of characters.
   *
   * \sa setTextSize(int)
   */  
  int textSize() const;
  
  /*! \brief Change the content of the line edit.
   */
  void  setText(const WString& value);
 
  /*! \brief Return the current content.
   */
  const WString& text() const;

  /*! \brief Specify the maximum length of text that can be entered.
   *
   * A value <= 0 indicates that there is no limit.
   *
   * The default value is -1.
   */
  void setMaxLength(int length);

  /*! \brief Returns the maximum length of text that can be entered.
   *
   * \sa setMaxLength(int)
   */
  int maxLength() const;

  /*! \brief Set the echo mode.
   *
   * The default echo mode is Normal.
   */
  void setEchoMode(EchoMode echoMode);

  /*! \brief Return the echo mode.
   */
  EchoMode echoMode() const;
 
  virtual WValidator::State validate();

  void setEmptyDisplayText(const WString& text);
  void setGrowToContent(bool grow, int minWidth = 30, int maxWidth = 800);

  /*! \brief Event signal emitted when a keyboard key is pushed down.
   */
  EventSignal<WKeyEvent>& keyWentDown();

   /*! \brief Event signal emitted when a keyboard key is pressed.
   */
  EventSignal<WKeyEvent>& keyPressed();
    
  /*! \brief Event signal emitted when a keyboard key is released.
   */
  EventSignal<WKeyEvent>& keyWentUp();

  /*! \brief Event signal emitted when enter was pressed.
   *
   * This signal is emitted when the Enter or Return key was pressed.
   *
   * \sa WInteractWidget::enterPressed()
   */
  EventSignal<>& enterPressed();

protected:
  WLineEdit *lineEdit() const { return lineEdit_; }
  virtual WFormWidget *formWidget() const;
  virtual void createConfig(std::ostream& config);

private:
  WLineEdit    *lineEdit_;

  virtual std::string createJS(DomElement *inContainer);

  virtual void useAsTableViewEditor();
};

  }
}

#endif // EXT_LINEEDIT_H_