source: subversion/applications/editors/merkaartor/InfoDock.h @ 11022

Last change on this file since 11022 was 11022, checked in by Chris Browet, 12 years ago

ADD : update info dock on hover

File size: 723 bytes
Line 
1//
2// C++ Interface: InfoDock
3//
4// Description:
5//
6//
7// Author: cbro <cbro@semperpax.com>, (C) 2008
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef INFODOCK_H
13#define INFODOCK_H
14
15#include "Utils/MDockAncestor.h"
16#include <QTextBrowser>
17
18class MainWindow;
19class MapFeature;
20
21/**
22        @author cbro <cbro@semperpax.com>
23*/
24class InfoDock : public MDockAncestor
25{
26Q_OBJECT
27public:
28    InfoDock(MainWindow* aParent);
29
30    ~InfoDock();
31
32public:
33        void setHtml(QString html);
34        QString getHtml();
35        void setHoverHtml(QString html);
36        void unsetHoverHtml();
37
38private slots:
39        void on_anchorClicked(const QUrl & link);
40
41private:
42        MainWindow* Main;
43        QTextBrowser* theText;
44        QString currentHtml;
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.