• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • opendesktop
OpenDesktopItem.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2010 Utku Aydın <utkuaydin34@gmail.com>
9 //
10 
11 #ifndef OPENDESKTOPITEM_H
12 #define OPENDESKTOPITEM_H
13 
14 #include <QAction>
15 #include "AbstractDataPluginItem.h"
16 #include "TinyWebBrowser.h"
17 #include "MarbleWidget.h"
18 
19 class QFont;
20 
21 namespace Marble
22 {
23 
24 class TinyWebBrowser;
25 
26 class OpenDesktopItem : public AbstractDataPluginItem
27 {
28  Q_OBJECT
29 
30  public:
31  explicit OpenDesktopItem(QObject *parent);
32 
33  ~OpenDesktopItem();
34 
35  QString itemType() const;
36 
37  bool initialized() const;
38 
39  void addDownloadedFile( const QString& url, const QString& type );
40 
41  void paint( QPainter *painter );
42 
43  bool operator<( const AbstractDataPluginItem *other ) const;
44 
45  void updateToolTip();
46 
47  QAction *action();
48 
49  QUrl profileUrl() const;
50 
51  QUrl avatarUrl() const;
52 
53  void setAvatarUrl( const QUrl url );
54 
55  QString fullName() const;
56 
57  void setFullName(const QString fullName );
58 
59  QString location() const;
60 
61  void setLocation(const QString location );
62 
63  QString role() const;
64 
65  void setRole(const QString role );
66 
67  void setMarbleWidget(MarbleWidget *widget);
68 
69  public slots:
70  void openBrowser();
71 
72  private:
73  MarbleWidget *m_marbleWidget;
74  QString m_fullName;
75  QString m_location;
76  QString m_role;
77  QPixmap m_pixmap;
78  QUrl m_avatarUrl;
79  QAction* m_action;
80 };
81 
82 }
83 #endif // OPENDESKTOPITEM_H
QPainter
Marble::OpenDesktopItem::setLocation
void setLocation(const QString location)
Definition: OpenDesktopItem.cpp:137
TinyWebBrowser.h
Marble::OpenDesktopItem::role
QString role() const
Definition: OpenDesktopItem.cpp:143
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
Marble::OpenDesktopItem::paint
void paint(QPainter *painter)
Paints the item in item coordinates.
Definition: OpenDesktopItem.cpp:70
Marble::OpenDesktopItem::operator<
bool operator<(const AbstractDataPluginItem *other) const
Definition: OpenDesktopItem.cpp:43
QObject
Marble::OpenDesktopItem::setRole
void setRole(const QString role)
Definition: OpenDesktopItem.cpp:148
Marble::OpenDesktopItem::avatarUrl
QUrl avatarUrl() const
Definition: OpenDesktopItem.cpp:111
Marble::OpenDesktopItem
Definition: OpenDesktopItem.h:26
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
Marble::OpenDesktopItem::addDownloadedFile
void addDownloadedFile(const QString &url, const QString &type)
Definition: OpenDesktopItem.cpp:61
Marble::OpenDesktopItem::setAvatarUrl
void setAvatarUrl(const QUrl url)
Definition: OpenDesktopItem.cpp:116
Marble::OpenDesktopItem::updateToolTip
void updateToolTip()
Definition: OpenDesktopItem.cpp:75
Marble::OpenDesktopItem::~OpenDesktopItem
~OpenDesktopItem()
Definition: OpenDesktopItem.cpp:27
Marble::OpenDesktopItem::profileUrl
QUrl profileUrl() const
Definition: OpenDesktopItem.cpp:106
Marble::OpenDesktopItem::action
QAction * action()
Returns the action of this specific item.
Definition: OpenDesktopItem.cpp:91
Marble::OpenDesktopItem::initialized
bool initialized() const
Definition: OpenDesktopItem.cpp:38
Marble::OpenDesktopItem::openBrowser
void openBrowser()
Definition: OpenDesktopItem.cpp:97
Marble::OpenDesktopItem::setMarbleWidget
void setMarbleWidget(MarbleWidget *widget)
Definition: OpenDesktopItem.cpp:154
Marble::OpenDesktopItem::itemType
QString itemType() const
Returns the type of this specific item.
Definition: OpenDesktopItem.cpp:32
Marble::OpenDesktopItem::OpenDesktopItem
OpenDesktopItem(QObject *parent)
Definition: OpenDesktopItem.cpp:19
Marble::OpenDesktopItem::setFullName
void setFullName(const QString fullName)
Definition: OpenDesktopItem.cpp:126
MarbleWidget.h
This file contains the headers for MarbleWidget.
Marble::OpenDesktopItem::location
QString location() const
Definition: OpenDesktopItem.cpp:132
Marble::OpenDesktopItem::fullName
QString fullName() const
Definition: OpenDesktopItem.cpp:121
AbstractDataPluginItem.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal