diff options
Diffstat (limited to 'src/frontend/display/cplainwritedisplay.h')
-rw-r--r-- | src/frontend/display/cplainwritedisplay.h | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/src/frontend/display/cplainwritedisplay.h b/src/frontend/display/cplainwritedisplay.h index 575789e..dad57a1 100644 --- a/src/frontend/display/cplainwritedisplay.h +++ b/src/frontend/display/cplainwritedisplay.h @@ -1,8 +1,10 @@ /********* * +* In the name of the Father, and of the Son, and of the Holy Spirit. +* * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2011 by the BibleTime developers. +* Copyright 1999-2014 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ @@ -11,22 +13,21 @@ #define CPLAINWRITEDISPLAY_H #include <QTextEdit> -#include "frontend/display/cwritedisplay.h" +#include "frontend/display/cdisplay.h" class BtActionCollection; -class CHTMLWriteDisplay; -class QDragEnterEvent; -class QDragMoveEvent; -class QDropEvent; -class QMenu; -class QWidget; +class CPlainWriteWindow; +class QToolBar; /** The write display implementation for plain source code editing. * @author The BibleTime team */ -class CPlainWriteDisplay : public QTextEdit, public CWriteDisplay { +class CPlainWriteDisplay : public QTextEdit, public CDisplay { public: + + CPlainWriteDisplay(CPlainWriteWindow * parentWindow, QWidget * parent = 0); + /** * Reimplementation. */ @@ -52,27 +53,21 @@ class CPlainWriteDisplay : public QTextEdit, public CWriteDisplay { const DisplayOptions &, const FilterOptions &) {} - /** - * Reimplementation (CWriteDisplay). - */ virtual bool isModified() const; /** - * Sets the current status of the edit widget (CWriteDisplay). + * Sets the current status of the edit widget. */ virtual void setModified( const bool modified ); /** - * Returns the text of this edit widget (CWriteDisplay). + * Returns the text of this edit widget. */ virtual const QString plainText(); /** - * Creates the necessary action objects and puts them on the toolbar (CWriteDisplay). + * Creates the necessary action objects and puts them on the toolbar. */ virtual void setupToolbar(QToolBar*, BtActionCollection*); protected: - friend class CDisplay; - - CPlainWriteDisplay(CWriteWindow* parentWindow, QWidget* parent); /** * Reimplementation from QTextEdit to manage drops of our drag and drop objects. |