summaryrefslogtreecommitdiffstats
path: root/bibletime/frontend/displaywindow/chtmlwritewindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'bibletime/frontend/displaywindow/chtmlwritewindow.h')
-rw-r--r--bibletime/frontend/displaywindow/chtmlwritewindow.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/bibletime/frontend/displaywindow/chtmlwritewindow.h b/bibletime/frontend/displaywindow/chtmlwritewindow.h
new file mode 100644
index 0000000..04b70f6
--- /dev/null
+++ b/bibletime/frontend/displaywindow/chtmlwritewindow.h
@@ -0,0 +1,74 @@
+/*********
+*
+* This file is part of BibleTime's source code, http://www.bibletime.info/.
+*
+* Copyright 1999-2006 by the BibleTime developers.
+* The BibleTime source code is licensed under the GNU General Public License version 2.0.
+*
+**********/
+
+
+
+#ifndef CHTMLWRITEWINDOW_H
+#define CHTMLWRITEWINDOW_H
+
+//BibleTime includes
+#include "cplainwritewindow.h"
+
+//Qt includes
+#include <qwidget.h>
+
+class KAction;
+
+/** The WYSIWYG implementation of the editor.
+ * @author The BibleTime team
+ */
+class CHTMLWriteWindow : public CPlainWriteWindow {
+ Q_OBJECT
+public:
+ CHTMLWriteWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name = 0);
+ virtual ~CHTMLWriteWindow();
+
+ /**
+ * Store the settings of this window in the given CProfileWindow object.
+ */
+ virtual void storeProfileSettings( Profile::CProfileWindow* );
+ /**
+ * Store the settings of this window in the given profile window.
+ */
+ virtual void applyProfileSettings( Profile::CProfileWindow* );
+
+ virtual const bool syncAllowed() const;
+
+protected: // Protected methods
+ /**
+ * Initialize the state of this widget.
+ */
+ virtual void initView();
+ virtual void initConnections();
+ virtual void initToolbars();
+ virtual const CDisplayWindow::WriteWindowType writeWindowType() {
+ return CDisplayWindow::HTMLWindow;
+ };
+
+protected slots:
+ /**
+ * Is called when the current text was changed.
+ */
+ virtual void textChanged();
+ /**
+ * Loads the original text from the module.
+ */
+ virtual void restoreText();
+
+private:
+ struct {
+ KAction* saveText;
+ KAction* restoreText;
+ KAction* deleteEntry;
+ KToggleAction* syncWindow;
+ }
+ m_actions;
+};
+
+#endif