/usr/include/marble/PluginAboutDialog.h is in libmarble-dev 4:4.8.2-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 | //
// 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 2009 Bastian Holst <bastianholst@gmx.de>
//
#ifndef MARBLE_PLUGINABOUTDIALOG_H
#define MARBLE_PLUGINABOUTDIALOG_H
#include <QtGui/QDialog>
#include <QtCore/QList>
// Marble
#include "marble_export.h"
namespace Marble
{
class PluginAboutDialogPrivate;
struct Author
{
QString name;
QString task;
QString email;
};
class MARBLE_EXPORT PluginAboutDialog : public QDialog
{
Q_OBJECT
public:
enum LicenseKey {
// License_Unknown = 0,
// License_GPL = 1,
// License_GPL_V2 = 1,
// License_LGPL = 2,
License_LGPL_V2 = 2
// License_BSD = 3,
// License_Artistic = 4,
// License_QPL = 5,
// License_QPL_V1_0 = 5,
// License_GPL_V3 = 6,
// License_LGPL_V3 = 7
};
explicit PluginAboutDialog( QWidget *parent = 0 );
virtual ~PluginAboutDialog();
/**
* Sets the name of the plugin.
*/
void setName( const QString& name );
/**
* Sets the version of the plugin;
*/
void setVersion( const QString& version );
/**
* Sets the pixmap to be displayed at the top of the dialog.
*/
void setPixmap( const QPixmap& pixmap );
/**
* Sets the text displayed in the "About" tab of the dialog.
*/
void setAboutText( const QString& about );
/**
* Sets the authors working on this plugin.
*/
void setAuthors( const QList<Author>& authors );
/**
* Sets the text displayed in the "Authors" tab of the dialog.
* @warning You would want to use setAuthors instead.
*/
void setAuthorsText( const QString& authors );
/**
* Sets the text displayed in the "Data" tab of the dialog.
* An null QString will result into no "Data" tab at all.
*/
void setDataText( const QString& data );
/**
* Sets the license for the "License Agreement" tab of the dialog.
*/
void setLicense( PluginAboutDialog::LicenseKey license );
/**
* Sets the text displayed in the "License Agreement" tab of the dialog.
* A null QString will result into the default LGPLv2 license agreement.
* If your plugin is not part of the official Marble distribution, please set it
* manually to the license agreement you prefer (even if it is LGPLv2).
* @warning You would want to use setLicense instead.
*/
void setLicenseAgreementText( const QString& license );
private:
Q_DISABLE_COPY( PluginAboutDialog )
PluginAboutDialogPrivate * const d;
};
} // namespace Marble
#endif
|