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

marble

  • sources
  • kde-4.14
  • 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  bool initialized() const;
36 
37  void addDownloadedFile( const QString& url, const QString& type );
38 
39  void paint( QPainter *painter );
40 
41  bool operator<( const AbstractDataPluginItem *other ) const;
42 
43  void updateToolTip();
44 
45  QAction *action();
46 
47  QUrl profileUrl() const;
48 
49  QUrl avatarUrl() const;
50 
51  void setAvatarUrl( const QUrl url );
52 
53  QString fullName() const;
54 
55  void setFullName(const QString fullName );
56 
57  QString location() const;
58 
59  void setLocation(const QString location );
60 
61  QString role() const;
62 
63  void setRole(const QString role );
64 
65  void setMarbleWidget(MarbleWidget *widget);
66 
67  public slots:
68  void openBrowser();
69 
70  private:
71  MarbleWidget *m_marbleWidget;
72  QString m_fullName;
73  QString m_location;
74  QString m_role;
75  QPixmap m_pixmap;
76  QUrl m_avatarUrl;
77  QAction* m_action;
78 };
79 
80 }
81 #endif // OPENDESKTOPITEM_H
Marble::OpenDesktopItem::setLocation
void setLocation(const QString location)
Definition: OpenDesktopItem.cpp:131
TinyWebBrowser.h
Marble::OpenDesktopItem::role
QString role() const
Definition: OpenDesktopItem.cpp:137
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
QFont
Marble::OpenDesktopItem::paint
void paint(QPainter *painter)
Paints the item in item coordinates.
Definition: OpenDesktopItem.cpp:64
Marble::OpenDesktopItem::operator<
bool operator<(const AbstractDataPluginItem *other) const
Definition: OpenDesktopItem.cpp:37
Marble::OpenDesktopItem::setRole
void setRole(const QString role)
Definition: OpenDesktopItem.cpp:142
Marble::OpenDesktopItem::avatarUrl
QUrl avatarUrl() const
Definition: OpenDesktopItem.cpp:105
Marble::OpenDesktopItem
Definition: OpenDesktopItem.h:26
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
Marble::OpenDesktopItem::addDownloadedFile
void addDownloadedFile(const QString &url, const QString &type)
Definition: OpenDesktopItem.cpp:55
QObject
QPainter
Marble::OpenDesktopItem::setAvatarUrl
void setAvatarUrl(const QUrl url)
Definition: OpenDesktopItem.cpp:110
Marble::OpenDesktopItem::updateToolTip
void updateToolTip()
Definition: OpenDesktopItem.cpp:69
Marble::OpenDesktopItem::~OpenDesktopItem
~OpenDesktopItem()
Definition: OpenDesktopItem.cpp:27
QString
Marble::OpenDesktopItem::profileUrl
QUrl profileUrl() const
Definition: OpenDesktopItem.cpp:100
Marble::OpenDesktopItem::action
QAction * action()
Returns the action of this specific item.
Definition: OpenDesktopItem.cpp:85
Marble::OpenDesktopItem::initialized
bool initialized() const
Definition: OpenDesktopItem.cpp:32
QPixmap
Marble::OpenDesktopItem::openBrowser
void openBrowser()
Definition: OpenDesktopItem.cpp:91
QUrl
Marble::OpenDesktopItem::setMarbleWidget
void setMarbleWidget(MarbleWidget *widget)
Definition: OpenDesktopItem.cpp:148
QAction
Marble::OpenDesktopItem::OpenDesktopItem
OpenDesktopItem(QObject *parent)
Definition: OpenDesktopItem.cpp:19
Marble::OpenDesktopItem::setFullName
void setFullName(const QString fullName)
Definition: OpenDesktopItem.cpp:120
MarbleWidget.h
This file contains the headers for MarbleWidget.
QObject::parent
QObject * parent() const
Marble::OpenDesktopItem::location
QString location() const
Definition: OpenDesktopItem.cpp:126
Marble::OpenDesktopItem::fullName
QString fullName() const
Definition: OpenDesktopItem.cpp:115
AbstractDataPluginItem.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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
  • 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