/usr/include/qgis/qgssymbollevelsv2dialog.h is in libqgis-dev 2.18.17+dfsg-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 | /***************************************************************************
qgssymbollevelsv2dialog.h
---------------------
begin : November 2009
copyright : (C) 2009 by Martin Dobias
email : wonder dot sk at gmail dot com
***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef QGSSYMBOLLEVELSV2DIALOG_H
#define QGSSYMBOLLEVELSV2DIALOG_H
#include <QDialog>
#include <QList>
#include <QItemDelegate>
#include "qgsrendererv2.h"
#include "ui_qgssymbollevelsv2dialogbase.h"
/** \ingroup gui
* \class QgsSymbolLevelsV2Dialog
*/
class GUI_EXPORT QgsSymbolLevelsV2Dialog : public QDialog, private Ui::QgsSymbolLevelsV2DialogBase
{
Q_OBJECT
public:
//! @note not available in python bindings
QgsSymbolLevelsV2Dialog( const QgsLegendSymbolList& list, bool usingSymbolLevels, QWidget* parent = nullptr );
~QgsSymbolLevelsV2Dialog();
bool usingLevels() const;
// used by rule-based renderer (to hide checkbox to enable/disable ordering)
void setForceOrderingEnabled( bool enabled );
public slots:
void updateUi();
void renderingPassChanged( int row, int column );
protected:
//! @note not available in python bindings
void populateTable();
//! @note not available in python bindings
void setDefaultLevels();
protected:
//! maximal number of layers from all symbols
int mMaxLayers;
QgsLegendSymbolList mList;
//! whether symbol layers always should be used (default false)
bool mForceOrderingEnabled;
};
///@cond PRIVATE
// delegate used from Qt Spin Box example
class SpinBoxDelegate : public QItemDelegate
{
Q_OBJECT
public:
explicit SpinBoxDelegate( QObject *parent = nullptr ) : QItemDelegate( parent ) {}
QWidget *createEditor( QWidget *parent, const QStyleOptionViewItem & /*option*/, const QModelIndex &/*index*/ ) const override;
void setEditorData( QWidget *editor, const QModelIndex &index ) const override;
void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const override;
void updateEditorGeometry( QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex & /*index*/ ) const override;
};
///@endcond
#endif // QGSSYMBOLLEVELSV2DIALOG_H
|