This file is indexed.

/usr/include/klfapp/klflibentryeditor.h is in libklatexformula3-dev 3.2.7-1.

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
/***************************************************************************
 *   file klflibentryeditor.h
 *   This file is part of the KLatexFormula Project.
 *   Copyright (C) 2011 by Philippe Faist
 *   philippe.faist at bluewin.ch
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
/* $Id: klflibentryeditor.h 603 2011-02-26 23:14:55Z phfaist $ */

#ifndef KLFLIBENTRYEDITOR_H
#define KLFLIBENTRYEDITOR_H

#include <QWidget>
#include <QComboBox>

#include <klflib.h>



namespace Ui { class KLFLibEntryEditor; }

class KLF_EXPORT KLFLibEntryEditor : public QWidget
{
  Q_OBJECT
public:
  KLFLibEntryEditor(QWidget *parent = NULL);
  virtual ~KLFLibEntryEditor();

  void addCategorySuggestions(const QStringList& categorylist);

  virtual bool eventFilter(QObject *object, QEvent *event);

  inline bool metaInfoModified() const { return pMetaInfoModified; }

signals:

  /** Emitted when user clicks the "Apply" button after having edited category/tags, or hits return.
   * The \c props are given as a map of KLFLibEntry-property IDs with their corresponding new values.
   */
  void metaInfoChanged(const QMap<int,QVariant>& props);

  void restoreStyle(const KLFStyle& style);

public slots:

  void displayEntry(const KLFLibEntry& entry);

  /** Handles the selection of multiple items properly by displaying
   * [Multiple items selected] whenever needed. */
  void displayEntries(const QList<KLFLibEntry>& entries);

  /** Globally enable or disable input. Individual fields may still be disabled
   * for example if more than one entry is selected.
   *
   * \warning Changes take effect upon next call of \ref displayEntries() or
   *   \ref displayEntry() */
  void setInputEnabled(bool enabled);

  void retranslateUi(bool alsoBaseUi = true);

protected slots:

  void slotUpdateFromCbx(QComboBox *cbx);

  void on_btnApplyChanges_clicked();
  void on_btnRestoreStyle_clicked();
  /** Updates the changes done to category and tags, for which the corresponding argument is \c true.
   * eg. <tt>slotApplyChanges(true,false)</tt> will update category but not tags.
   */
  void slotApplyChanges() { slotApplyChanges(true, true); }
  void slotApplyChanges(bool category, bool tags);

  void slotModified(bool modif = true);

  void slotCbxSaveCurrentCompletion(QComboBox *cbx);
  void slotCbxCleanUpCompletions(QComboBox *cbx);

private:
  Ui::KLFLibEntryEditor *u;

  bool pInputEnabled;

  bool pMetaInfoModified;

  KLFStyle pCurrentStyle;

  //  void updateEditText(QComboBox *editWidget, const QString& newText);
  void displayStyle(bool valid, const KLFStyle& style);
};







#endif