summaryrefslogtreecommitdiff
path: root/src/frontend/display/cwritedisplay.h
blob: 33ef5a5c36530d7d23e990787459aa616ecae5a8 (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
/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2008 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/

#ifndef CWRITEDISPLAY_H
#define CWRITEDISPLAY_H

#include "frontend/display/cdisplay.h"


class BtActionCollection;
class QToolBar;

/** The base class for all read/write-display classes.
  *@author The BibleTime team
  */
class CWriteDisplay : public CDisplay  {
    protected:
        friend class CDisplay;
        friend class CPlainWriteDisplay;
        CWriteDisplay( CWriteWindow* writeWindow );
        ~CWriteDisplay();

    public: // Public methods
        /**
        * Sets the current modified status of the widget.
        */
        virtual void setModified( const bool modified ) = 0;
        /**
        * Returns true if the current text was modified.
        */
        virtual bool isModified() const = 0;
        /**
        * Returns the text of this edit widget.
        */
        virtual const QString plainText() = 0;
        /**
        * Creates the necessary action objects and puts them on the toolbar.
        */
        virtual void setupToolbar( QToolBar* bar, BtActionCollection* actionCollection ) = 0;
};

#endif