// SPDX-License-Identifier: BSL-1.0 // Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-foss-org/tproc #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 TTextEditor; class TTextEditor : public QMainWindow { Q_OBJECT public: using rope_type = tproc::crope; using size_type = rope_type::size_type; using string_view = std::string_view; TTextEditorWidget() = delete; TTextEditor(string_view text, TTextEditorDelegate* del) : buffer_(text), delegate_(del) { } virtual ~TTextEditor() = default; private: rope_type buffer_; }; #endif