From 24767406a9a1ee0bd53c20175ed7a7d2fe166d29 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 7 Mar 2026 06:59:38 +0100 Subject: [CHORE] Introduce replacement of text_processor example, text_editor. Signed-off-by: Amlal El Mahrouss --- example/text_processor_example/qt_widget.hpp | 57 ---------------------------- 1 file changed, 57 deletions(-) delete mode 100644 example/text_processor_example/qt_widget.hpp (limited to 'example/text_processor_example/qt_widget.hpp') diff --git a/example/text_processor_example/qt_widget.hpp b/example/text_processor_example/qt_widget.hpp deleted file mode 100644 index 6a89ef9..0000000 --- a/example/text_processor_example/qt_widget.hpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - * File: qt_widget.hpp - * Purpose: Minimal text editor widget example using tproc rope. - * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2026, Amlal El Mahrouss, licensed under the Boost Software License. - */ - -#ifndef TPROC_EXAMPLE_QT_WIDGET_HPP -#define TPROC_EXAMPLE_QT_WIDGET_HPP - -#include - -#include -#include -#include -#include -#include - -#ifndef STANDALONE - -using namespace ocl; -using namespace boost; - -#else - -using namespace boost; - -#endif - -class TTextEditorWidget; -class TTextEditorWindow; -class TTextEditorDelegate; - -class TTextEditorWidget : public QWidget -{ - Q_OBJECT - -public: - using rope_type = tproc::crope; - using size_type = rope_type::size_type; - using string_view = std::string_view; - - TTextEditorWidget() = delete; - - TTextEditorWidget(string_view text, TTextEditorDelegate* del) - : buffer_(text), delegate_(del) - { - } - - virtual ~TTextEditorWidget() = default; - -private: - rope_type buffer_; - std::weak_ptr delegate_: -}; - -#endif -- cgit v1.2.3