This file is indexed.

/usr/include/Wt/WGroupBox is in libwt-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
// 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 WGROUP_BOX_H_
#define WGROUP_BOX_H_

#include <Wt/WContainerWidget>

namespace Wt {

/*! \class WGroupBox Wt/WGroupBox Wt/WGroupBox
 *  \brief A widget which group widgets into a frame with a title.
 *
 * This is typically used in a form to group certain form elements
 * together.
 *
 * Usage example:
 * \if cpp
 * \code
 * enum Vote { Republican = 1, Democrate = 2, NoVote = 10 };
 *
 * // use a group box as widget container for 3 radio buttons, with a title
 * Wt::WGroupBox *container = new Wt::WGroupBox("USA elections vote");
 *
 * // use a button group to logically group the 3 options
 * Wt::WButtonGroup *group = new Wt::WButtonGroup(this);
 *
 * Wt::WRadioButton *button;
 * button = new Wt::WRadioButton("I voted Republican", container);
 * new Wt::WBreak(container);
 * group->addButton(button, Republican);

 * button = new Wt::WRadioButton("I voted Democrat", container);
 * new Wt::WBreak(container);
 * group->addButton(button, Democrate);

 * button = new Wt::WRadioButton("I didn't vote", container);
 * new Wt::WBreak(container);
 * group->addButton(button, NoVote);
 *
 * group->setCheckedButton(group->button(NoVote));
 * \endcode
 * \elseif java
 * \code
 * enum Vote { Republican , Democrate , NoVote };
 * 
 * // use a group box as widget container for 3 radio buttons, with a title
 * WGroupBox container = new WGroupBox("USA elections vote");
 * 		 
 * // use a button group to logically group the 3 options
 * WButtonGroup group = new WButtonGroup(this);
 *		 
 * WRadioButton button;
 * button = new WRadioButton("I voted Republican", container);
 * new WBreak(container);
 * group.addButton(button, Vote.Republican.ordinal());
 *
 * button = new WRadioButton("I voted Democrat", container);
 * new WBreak(container);
 * group.addButton(button, Vote.Democrate.ordinal());
 *
 * button = new WRadioButton("I didn't vote", container);
 * new WBreak(container);
 * group.addButton(button, Vote.NoVote.ordinal());
 *		 
 * group.setCheckedButton(group.button(Vote.NoVote.ordinal()));
 * \endcode
 * \endif
 *
 * Like WContainerWidget, %WGroupBox is by default displayed as a
 * \link WWidget::setInline() block\endlink.
 *
 * \image html WGroupBox-1.png "WGroupBox example"
 *
 * <h3>CSS</h3>
 *
 * The widget corresponds to the HTML <tt>&lt;fieldset&gt;</tt> tag,
 * and the title in a nested <tt>&lt;legend&gt;</tt> tag. This widget
 * does not provide styling, and can be styled using inline or
 * external CSS as appropriate.
 */
class WT_API WGroupBox : public WContainerWidget
{
public:
  /*! \brief Creates a groupbox with empty title.
   */
  WGroupBox(WContainerWidget *parent = 0);
  
  /*! \brief Creates a groupbox with given title message.
   */
  WGroupBox(const WString& title, WContainerWidget *parent = 0);

  /*! \brief Returns the title.
   */
  const WString& title() const { return title_; }

  /*! \brief Returns the title.
   */
  void setTitle(const WString& title);

  virtual void refresh();

protected:
  virtual DomElementType domElementType() const;

  virtual void updateDom(DomElement& element, bool all);
  virtual void propagateRenderOk(bool deep);
  virtual int firstChildIndex() const;

private:
  WString title_;
  bool titleChanged_;

  void init();
};

}

#endif // WGROUP_BOX_H_