/usr/include/marble/EditPlacemarkDialog.h is in libmarble-dev 4:15.12.3-0ubuntu2.
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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2014 Calin Cruceru <crucerucalincristian@gmail.com>
//
#ifndef EDITPLACEMARKDIALOG_H
#define EDITPLACEMARKDIALOG_H
#include "marble_export.h"
#include <QDialog>
namespace Marble {
class GeoDataFeature;
class GeoDataPlacemark;
class OsmPlacemarkData;
/**
* @brief The EditPlacemarkDialog class deals with customizing placemarks.
*/
class MARBLE_EXPORT EditPlacemarkDialog : public QDialog
{
Q_OBJECT
public:
EditPlacemarkDialog( GeoDataPlacemark *placemark,
const QHash<qint64,OsmPlacemarkData> *relations = 0,
QWidget *parent = 0 );
~EditPlacemarkDialog();
/**
* @brief setLabelColor tells the dialog what the label color is
*/
void setLabelColor( const QColor &color );
/**
* @brief idFilter gets filter for id of placemark
* @return QStringList of ids which could not be used as id.
*/
QStringList idFilter() const;
/**
* @brief targetIds gets ids which could be target of placemark.
* @return QStringList of ids which could be target of placemark.
*/
QStringList targetIds() const;
/**
* @brief isTargetIdFieldVisible tells if targetId field is shown.
*/
bool isTargetIdFieldVisible() const;
/**
* @brief isIdFieldVisible tells if targetId field is shown.
*/
bool isIdFieldVisible() const;
public slots:
/**
* @brief updateDialogFields is connected to a signal from AnnotatePlugin in order
* to update some fields in the dialog as the user interacts directly with the text
* annotation item.
*/
void updateDialogFields();
/**
* @brief setIdFilter sets filter for id of placemark.
* @param filter QStringList with ids which could not be used as id.
*/
void setIdFilter( const QStringList &filter );
/**
* @brief setTargetIds sets ids which could be target of placemark.
* @param targetIds QStringList with ids which could be target of placemark.
*/
void setTargetIds( const QStringList &targetIds );
/**
* @brief setTargetIdFieldVisible tells the dialog whether targetId field should be shown.
*/
void setTargetIdFieldVisible( bool visible );
/**
* @brief setIdFieldVisible tells the dialog whether id field should be shown.
*/
void setIdFieldVisible( bool visible );
/**
* @brief Protecting data from input fields changes
*/
void setReadOnly( bool state );
private slots:
/**
* @brief checkFields shows warnings if there are important fields which don't hold
* accurate information.
*/
void checkFields();
/**
* @brief updateTextAnnotation is the main slot which synchronizes the information
* from the dialog with the way the text annotation item is painted.
*/
void updateTextAnnotation();
/**
* @brief updateLabelDialog The color chooser for label is represented as a push
* button with a filled pixmap as its icon. This slot updates the color fill of this
* pixmap.
*/
void updateLabelDialog( const QColor &color );
/**
* @brief updateIconDialog The same as above, but for icons.
* FIXME: This is not functional ATM - we need some mechanism for customizing existing
* icons.
*/
void updateIconDialog( const QColor &color );
/**
* @brief updatePlacemarkAltitude changes an actual elevation value of placemark instance
* according to the value/unit of elevation widget spin box representing it
*/
void updatePlacemarkAltitude();
/**
* @brief restoreInitial restores the dialog's previous settings if the dialog closes with
* a zero return value.
*/
void restoreInitial( int result );
/**
* @brief toogleDescriptionEditMode toggles edit mode for description field.
*/
signals:
/**
* @brief textAnnotationUpdated signals that some property of the PlacemarkTextAnnotation
* instance has changed.
* @param feature The instance's placemark.
*/
void textAnnotationUpdated( GeoDataFeature *feature );
/**
* @brief relationCreated signals the annotate plugin that a new relation has been
* created( or modified ) within the relation editor
* @param relation the relation's osmData
*/
void relationCreated( const OsmPlacemarkData &relation );
private:
class Private;
Private * const d;
};
}
#endif
|