• 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
  • 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 //
11 
12 //
13 // The Legend Browser displays the legend
14 //
15 
16 #ifndef MARBLE_MARBLELEGENDBROWSER_H
17 #define MARBLE_MARBLELEGENDBROWSER_H
18 
19 
20 #include <QString>
21 #include "MarbleWebView.h"
22 
23 #include "marble_export.h"
24 
25 class QEvent;
26 class QUrl;
27 
28 namespace Marble
29 {
30 
31 class MarbleModel;
32 class MarbleLegendBrowserPrivate;
33 
34 class MARBLE_EXPORT MarbleLegendBrowser : public MarbleWebView
35 {
36  Q_OBJECT
37 
38  public:
39  explicit MarbleLegendBrowser( QWidget* parent );
40  ~MarbleLegendBrowser();
41 
42  void setMarbleModel( MarbleModel *marbleModel );
43  QSize sizeHint() const;
44 
45  public slots:
46  void setCheckedProperty( const QString& name, bool checked );
47 
48  signals:
49  void toggledShowProperty( QString, bool );
50 
51  private Q_SLOTS:
52  void initTheme();
53  void loadLegend();
54  void injectCheckBoxChecker();
55  void openLinkExternally( const QUrl &url );
56 
57  protected:
58  bool event( QEvent * event );
59  QString readHtml( const QUrl & name );
60  QString generateSectionsHtml();
61  void translateHtml( QString & html );
62 
63  private:
64  void reverseSupportCheckboxes( QString &html );
65 
66  private:
67  Q_DISABLE_COPY( MarbleLegendBrowser )
68  MarbleLegendBrowserPrivate * const d;
69 };
70 
71 }
72 
73 #endif
MarbleWebView.h
QWidget
MarbleWebView
Definition: MarbleWebView.h:18
Marble::MarbleLegendBrowser
Definition: MarbleLegendBrowser.h:34
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
marble_export.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