~ubuntu-branches/ubuntu/intrepid/bibletime/intrepid

« back to all changes in this revision

Viewing changes to bibletime/frontend/display/creaddisplay.h

  • Committer: Bazaar Package Importer
  • Author(s): Ralph Janke
  • Date: 2008-05-10 15:18:16 UTC
  • mfrom: (1.1.6 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080510151816-bqp8y1to705zd0fm
Tags: 1.6.5.1-1
* New upstream version (Closes: #441161, #271502)
* fixes for new autotools and gcc 4.3 (Closes: #407291)
* added poxml to Build-Depends
* No DFSG necessary anymore since biblestudy howto has 
  now Commons Licence 
* Added libclucene-dev to dev-depends (Closes: #436677)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********
 
2
*
 
3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
 
4
*
 
5
* Copyright 1999-2006 by the BibleTime developers.
 
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
 
7
*
 
8
**********/
 
9
 
 
10
 
 
11
 
 
12
#ifndef CREADDISPLAY_H
 
13
#define CREADDISPLAY_H
 
14
 
 
15
#include "cdisplay.h"
 
16
#include "backend/cswordbackend.h"
 
17
 
 
18
class QPopupMenu;
 
19
class QWidget;
 
20
 
 
21
/**The base class for all read-only widgets like KHTMLView.
 
22
  *@author The BibleTime team
 
23
  */
 
24
 
 
25
class CReadDisplay :  public CDisplay {
 
26
public:
 
27
        /**
 
28
        * Returns true if the display has an active anchor.
 
29
        */
 
30
        const bool hasActiveAnchor();
 
31
        /**
 
32
        * Returns the current active anchor.
 
33
        */
 
34
        const QString& activeAnchor();
 
35
        /**
 
36
        * Moves the widget to the given anchor.
 
37
        */
 
38
        virtual void moveToAnchor( const QString& ) = 0;
 
39
        virtual void print(const CDisplay::TextPart, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
 
40
 
 
41
        void setMouseTracking(const bool trackingEnabled) {
 
42
                m_useMouseTracking = trackingEnabled;
 
43
        };
 
44
        const bool getMouseTracking() const {
 
45
                return m_useMouseTracking;
 
46
        };
 
47
 
 
48
protected: // Protected methods
 
49
        friend class CDisplay;
 
50
        friend class CHTMLReadDisplay;
 
51
        friend class CHTMLReadDisplayView;
 
52
 
 
53
        CReadDisplay( CReadWindow* readWindow );
 
54
        ~CReadDisplay();
 
55
 
 
56
        /**
 
57
        * Sets the current anchor to the parameter.
 
58
        */
 
59
        void setActiveAnchor( const QString& );
 
60
 
 
61
private: // Public attributes
 
62
        /**
 
63
        * The member which hols the current anchor.
 
64
        */
 
65
 
 
66
        QString m_activeAnchor;
 
67
 
 
68
        bool m_useMouseTracking;
 
69
};
 
70
 
 
71
#endif