This file is indexed.

/usr/include/codeblocks/incrementalselectlistdlg.h is in codeblocks-dev 10.05-2.

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
/*
 * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
 * http://www.gnu.org/licenses/lgpl-3.0.html
 */

#ifndef INCREMENTALSELECTLISTDLG_H
#define INCREMENTALSELECTLISTDLG_H

#include "settings.h"
#include "scrollingdialog.h"
#include <wx/textctrl.h>
#include <wx/listbox.h>

class myHandler; // forward decl

class DLLIMPORT IncrementalSelectListDlg : public wxScrollingDialog
{
	public:
		IncrementalSelectListDlg(wxWindow* parent, const wxArrayString& items, const wxString& caption = wxEmptyString, const wxString& message = wxEmptyString);
		virtual ~IncrementalSelectListDlg();
		wxString GetStringSelection();
		int GetSelection();
	protected:
		void FillList();
		void OnSearch(wxCommandEvent& event);
		void OnSelect(wxCommandEvent& event);
		void OnKeyDown(wxKeyEvent& event);
		myHandler* m_pMyEvtHandler;
		wxListBox* m_List;
		wxTextCtrl* m_Text;
		const wxArrayString& m_Items;
	private:
		DECLARE_EVENT_TABLE();
};

class myHandler : public wxEvtHandler
{
	public:
		myHandler(wxScrollingDialog* parent, wxTextCtrl* text, wxListBox* list)
			: m_pParent(parent),
			m_pList(list),
			m_pText(text)
		{
			Connect( text->GetId(),  -1, wxEVT_KEY_DOWN,
						  (wxObjectEventFunction) (wxEventFunction) (wxCharEventFunction)
						  &myHandler::OnKeyDown );
			Connect( list->GetId(),  -1, wxEVT_KEY_DOWN,
						  (wxObjectEventFunction) (wxEventFunction) (wxCharEventFunction)
						  &myHandler::OnKeyDown );
		}
		void OnKeyDown(wxKeyEvent& event);
	private:
		wxScrollingDialog* m_pParent;
		wxListBox* m_pList;
		wxTextCtrl* m_pText;
		DECLARE_EVENT_TABLE();
};

#endif // INCREMENTALSELECTLISTDLG_H