This file is indexed.

/usr/share/codelite/templates/gizmos/mainframe.cpp.wizard is in codelite-plugins 2.8.0.4537~dfsg-4.

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
#include "$(MainFrameFile).h"
#include <wx/toolbar.h>
#include <wx/statusbr.h>
#include <wx/sizer.h>
#include <wx/menu.h> //wxMenuBar

BEGIN_EVENT_TABLE($(MainFrameName), wxFrame)
	EVT_CLOSE($(MainFrameName)::OnClose)
	EVT_MENU(wxID_EXIT, $(MainFrameName)::OnQuit)
END_EVENT_TABLE()

$(MainFrameName)::$(MainFrameName)(wxWindow* parent,
                     wxWindowID id,
                     const wxString& title,
                     const wxPoint& pos,
                     const wxSize& size,
                     long style)
		: wxFrame(parent, id, title, pos, size, style)
{
	Initialize();
}

$(MainFrameName)::~$(MainFrameName)()
{

}

void $(MainFrameName)::Initialize()
{
	wxBoxSizer *sz = new wxBoxSizer(wxVERTICAL);
	SetSizer(sz);
	
	//Create a status bar 
	wxStatusBar* statusBar = new wxStatusBar(this, wxID_ANY);
	statusBar->SetFieldsCount(1);
	SetStatusBar(statusBar);
	GetStatusBar()->SetStatusText(wxT("Ready"));
	
	//Create a menu bar
	CreateMenuBar();
	
	sz->Layout();
}

void $(MainFrameName)::OnClose(wxCloseEvent &e)
{
	e.Skip();
}

void $(MainFrameName)::OnQuit(wxCommandEvent &e)
{
	wxUnusedVar(e);
	Close();
}

void $(MainFrameName)::CreateMenuBar()
{
	wxMenuBar *mb = new wxMenuBar();
	//File Menu
	wxMenu *menu = new wxMenu();
	menu->Append(wxID_EXIT);
	mb->Append(menu, wxT("&File"));
	SetMenuBar(mb);
}