This file is indexed.

/usr/include/srchiliteqt/LanguageComboBox.h is in libsource-highlight-qt4-dev 0.2.2-0ubuntu7.

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
/*
 *  Copyright (C) 2008-2010  Lorenzo Bettini, http://www.lorenzobettini.it
 *  License: See COPYING file that comes with this distribution
 */

#ifndef LANGUAGECOMBOBOX_H
#define LANGUAGECOMBOBOX_H

#include <QComboBox>
#include "Qt4SyntaxHighlighter.h"

namespace srchiliteqt {

/**
  * A subclass of QComboBox which provides functionalities for showing
  * and selecting the language definition files of Source-Highlight.
  */
class LanguageComboBox : public QComboBox
{
          Q_OBJECT
public:
    /**
     * Initializes the combo box with the .lang files retrieved in the
     * specified path.
     * @param path where to look for .lang files (if empty, uses the data dir
     * path of source-highlight)
     */
    LanguageComboBox(const QString &path = "");

    /**
     * @param _highlighter the highlighter object; this will be used only for initialization
     * @deprecated use the other constructor, which permits not needing a Qt4SyntaxHighlighter
     * only for initialization
     */
    LanguageComboBox(Qt4SyntaxHighlighter *_highlighter);

public slots:
    /**
     * Sets the language in the combo
     * @param lang the language name; if the language is not part of the
     * combo list, nothing happens
     */
    void setCurrentLanguage(const QString &lang);

    /**
      * @return the language definition file name currently selected
      */
    const QString getCurrentLanguage() const;

    /**
     * Reloads the contents of the combo box by using the specified
     * path for searching for .lang files.
     * @param path
     */
    void reload(const QString &path);
};

}

#endif // LANGUAGECOMBOBOX_H