~ubuntu-branches/ubuntu/wily/marble/wily-proposed

« back to all changes in this revision

Viewing changes to src/plugins/render/panoramio/PanoramioWidget.h

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark, Jonathan Riddell, Scarlett Clark
  • Date: 2014-07-24 23:38:32 UTC
  • mfrom: (1.5.2)
  • Revision ID: package-import@ubuntu.com-20140724233832-7v4421t4khrhw487
Tags: 4:4.13.90-0ubuntu1
[ Jonathan Riddell ]
* Switch to libmarblewidget19 for new soversion

[ Scarlett Clark ]
* New upstream beta release
* Update: do_not_install_private_headers. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#ifndef PANORAMIOWIDGET_H
12
12
#define PANORAMIOWIDGET_H
13
13
 
14
 
#include "AbstractDataPluginWidget.h"
 
14
#include "AbstractDataPluginItem.h"
15
15
 
16
16
#include <QDate>
17
17
#include <QPixmap>
18
18
 
19
19
namespace Marble
20
20
{
21
 
    
 
21
 
22
22
const QString standardImageSize = "mini_square";
23
 
 
24
 
class PanoramioWidget : public AbstractDataPluginWidget
 
23
 
 
24
class PanoramioWidget : public AbstractDataPluginItem
25
25
{
 
26
    Q_OBJECT
 
27
 
26
28
 public:
27
29
    explicit PanoramioWidget( QObject *parent );
28
30
    
29
 
    QString widgetType() const;
30
 
     
31
 
    bool initialized();
 
31
    bool initialized() const;
32
32
    
33
 
    void addDownloadedFile( QString url, QString type );
 
33
    void addDownloadedFile( const QString &url, const QString &type );
34
34
    
35
35
    QDate uploadDate() const;
36
36
    
37
37
    void setUploadDate( QDate uploadDate );
38
38
    
39
 
    bool render( GeoPainter *painter, ViewportParams *viewport,
40
 
                 const QString& renderPos, GeoSceneLayer * layer = 0 );
 
39
    void paint( QPainter *painter );
41
40
                 
42
 
    bool operator<( const AbstractDataPluginWidget *other ) const;
 
41
    bool operator<( const AbstractDataPluginItem *other ) const;
43
42
 private:
44
43
    QImage smallImage;
45
44
    QDate m_uploadDate;
46
45
};
47
 
    
 
46
 
48
47
}
49
48
 
50
49
#endif // PANORAMIOWIDGET_H