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

Last change on this file since 13422 was 13422, checked in by Łukasz Jernaś, 11 years ago

FIX : Implement dynamic UI translation (fixes #1432)

File size: 789 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        void changeEvent(QEvent *);
38        void retranslateUi();
39
40private slots:
41        void on_anchorClicked(const QUrl & link);
42
43private:
44        MainWindow* Main;
45        QTextBrowser* theText;
46        QString currentHtml;
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.