blob: 4b081b667fd1fa804ef8b1d781a03b17e284d3b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
//
// C++ Interface: cinfodisplay
//
// Description:
//
//
// Author: The BibleTime team <info@bibletime.info>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CINFODISPLAY_H
#define CINFODISPLAY_H
//Backend
#include "backend/ctextrendering.h"
//Qt includes
#include <tqwidget.h>
#include <tqvaluelist.h>
#include <tqpair.h>
//class forward declarations
class CReadDisplay;
namespace InfoDisplay {
/**
@author The BibleTime team
*/
class CInfoDisplay : public TQWidget {
Q_OBJECT
public:
enum InfoType {
Abbreviation,
CrossReference,
Footnote,
Lemma,
Morph,
WordTranslation,
WordGloss
};
typedef TQPair<InfoType, TQString> InfoData;
typedef TQValueList<InfoData> ListInfoData;
CInfoDisplay(TQWidget *parent = 0, const char *name = 0);
virtual ~CInfoDisplay();
void setInfo(const InfoType, const TQString& data);
void setInfo(const ListInfoData&);
void clearInfo();
protected:
const TQString decodeAbbreviation( const TQString& data );
const TQString decodeCrossReference( const TQString& data );
const TQString decodeFootnote( const TQString& data );
const TQString decodeStrongs( const TQString& data );
const TQString decodeMorph( const TQString& data );
const TQString getWordTranslation( const TQString& data );
protected slots:
void lookup(const TQString &, const TQString &);
private:
CReadDisplay* m_htmlPart;
};
} //end of InfoDisplay namespace
#endif
|