This file is indexed.

/usr/lib/Wt/examples/extkitchen/ExtKitchenApplication.h is in witty-examples 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
// 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_KITCHEN_APPLICATION_H_
#define EXT_KITCHEN_APPLICATION_H_

#include <Wt/WApplication>

#include <iostream>

namespace Wt {
  class WStandardItemModel;
  class WTable;
  class WTreeNode;
  class WTableView;
  class WWidget;

  namespace Ext {
    class ComboBox;
    class MessageBox;
    class TableView;
    class TabWidget;
    class TextEdit;
  }
}

class ExtKitchenApplication : public Wt::WApplication
{
public:
  ExtKitchenApplication(const Wt::WEnvironment& env);

private:
  typedef void (ExtKitchenApplication::*ShowExample)();

  Wt::WWidget                       *currentExample_;
  Wt::WContainerWidget              *exampleContainer_;

  Wt::WWidget *createExampleTree();
  Wt::WTreeNode *createExampleNode(const Wt::WString& label,
				   Wt::WTreeNode *parentNode,
				   ShowExample f);
  void setExample(Wt::WWidget *exampleWidget);

  void menuAndToolBarExample();
  void formWidgetsExample();
  void tableViewExample();
  void dialogExample();
  void tabWidgetExample();

  void createDialog();
  void createDialog2();
  void createDialog3();
  void createDialog4();
  void createDialog5();
  void createDialog6();
  void createDialog7();

  /*
   * Delete the dialog
   */
  Wt::Ext::MessageBox *mbox_;
  void testDelete();

  /*
   * Modify the combo box
   */
  void formModify();
  Wt::Ext::ComboBox *cb;
  Wt::Ext::TextEdit *html_;

  /*
   * Modify the WTableView model
   */
  void addRow();
  void removeRow();
  void resetModel();
  void addChildren();
  Wt::WStandardItemModel *model_;
  Wt::Ext::TableView *table1_, *table2_;
  Wt::WTableView *tableView_;

  /*
   * Modify the tabwidget
   */
  Wt::Ext::TabWidget *tb;
  void hideTab();
  void showTab();
  void modifyTabWidget();
};

#endif // EXT_KITCHEN_APPLICATION_H_