This file is indexed.

/usr/share/doc/mapnik-doc/examples/viewer/mainwindow.hpp is in mapnik-doc 3.0.9+ds-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
112
113
114
115
116
/* This file is part of Mapnik (c++ mapping toolkit)
 *
 * Copyright (C) 2015 Artem Pavlenko
 *
 * Mapnik 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 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.
 */


#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP

#include <QMainWindow>
#include <QList>
#include <QActionGroup>
#include <QStatusBar>
#include <QAbstractItemModel>
#include <QDoubleSpinBox>

#include "mapwidget.hpp"

//using namespace mapnik;

class LayerTab;
class StyleTab;
class QSlider;
class QComboBox;
class QDoubleSpinBox;

class MainWindow : public QMainWindow
{
    Q_OBJECT
    public:
    MainWindow();
    virtual ~MainWindow();
    void set_default_extent(double x0,double y0,double x1, double y1);
    void set_scaling_factor(double scaling_factor);
public :
    std::shared_ptr<mapnik::Map> get_map();
protected:
    void closeEvent(QCloseEvent* event);
public slots:
    void zoom_all();
    void zoom_to_box();
    void pan();
    void info();
    void export_as();
    void open(QString const&  path = QString());
    void reload();
    void save();
    void print();
    void about();
    void pan_left();
    void pan_right();
    void pan_up();
    void pan_down();
private:
    void createActions();
    void createMenus();
    void createToolBars();
    void createContextMenu();
    void load_map_file(QString const& filename);

    QString currentPath;
    QString filename_;
    QAbstractItemModel *model;
    LayerTab  *layerTab_;
    StyleTab * styleTab_;
    MapWidget * mapWidget_;
    //actions
    QList<QAction *> exportAsActs;
    QActionGroup *toolsGroup;

    QAction *zoomAllAct;
    QAction *zoomBoxAct;
    QAction *panAct;
    QAction *infoAct;
    QAction *openAct;
    QAction *saveAct;
    QAction *printAct;
    QAction *exitAct;
    QAction *aboutAct;
    QAction *panLeftAct;
    QAction *panRightAct;
    QAction *panUpAct;
    QAction *panDownAct;
    QAction *reloadAct;
    QAction *layerInfo;
    //toolbars
    QToolBar *fileToolBar;
    QToolBar *editToolBar;
    //menus
    QMenu *exportMenu;
    QMenu *fileMenu;
    QMenu *helpMenu;
    //status bar
    QStatusBar *status;
    QSlider * slider_;
    QComboBox * renderer_selector_;
    QDoubleSpinBox * scale_factor_;
    mapnik::box2d<double> default_extent_;
};


#endif //MAINWINDOW_HPP