• 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
  • lib
  • marble
MarbleLegendBrowser.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 2006-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 // Copyright 2013 Yazeed Zoabi <yazeedz.zoabi@gmail.com>
11 //
12 
13 //
14 // The Legend Browser displays the legend
15 //
16 
17 #ifndef MARBLE_MARBLELEGENDBROWSER_H
18 #define MARBLE_MARBLELEGENDBROWSER_H
19 
20 
21 #include <QString>
22 #include "MarbleWebView.h"
23 
24 #include "marble_export.h"
25 
26 class QEvent;
27 class QUrl;
28 
29 namespace Marble
30 {
31 
32 class MarbleModel;
33 class MarbleLegendBrowserPrivate;
34 
35 class MARBLE_EXPORT MarbleLegendBrowser : public MarbleWebView
36 {
37  Q_OBJECT
38 
39  public:
40  explicit MarbleLegendBrowser( QWidget* parent );
41  ~MarbleLegendBrowser();
42 
43  void setMarbleModel( MarbleModel *marbleModel );
44  QSize sizeHint() const;
45 
46  public slots:
47  void setCheckedProperty( const QString& name, bool checked );
48  void setRadioCheckedProperty( const QString& value,const QString& name, bool checked );
49 
50 
51  signals:
52  void toggledShowProperty( QString, bool );
53  void tourLinkClicked( const QString &url );
54 
55  private Q_SLOTS:
56  void initTheme();
57  void loadLegend();
58  void injectCheckBoxChecker();
59  void openLinkExternally( const QUrl &url );
60 
61  protected:
62  bool event( QEvent * event );
63  QString readHtml( const QUrl & name );
64  QString generateSectionsHtml();
65  void translateHtml( QString & html );
66 
67  private:
68  void reverseSupportCheckboxes( QString &html );
69 
70  private:
71  Q_DISABLE_COPY( MarbleLegendBrowser )
72  MarbleLegendBrowserPrivate * const d;
73 };
74 
75 }
76 
77 #endif
QEvent
QWidget
MarbleWebView.h
MarbleWebView
Definition: MarbleWebView.h:18
Marble::MarbleLegendBrowser
Definition: MarbleLegendBrowser.h:35
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
QSize
QUrl
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
marble_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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