summaryrefslogtreecommitdiffhomepage
path: root/example/text_processor_example
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-07 06:59:38 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-07 06:59:38 +0100
commit24767406a9a1ee0bd53c20175ed7a7d2fe166d29 (patch)
tree223c7e1cf7eff23dc77f4d72cfb2fe5fd6c7f4d5 /example/text_processor_example
parentb30b55c48fd9eb64f3555f19820279792f69703c (diff)
[CHORE] Introduce replacement of text_processor example, text_editor.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/text_processor_example')
-rw-r--r--example/text_processor_example/Jamfile.v214
-rw-r--r--example/text_processor_example/example.cpp15
-rw-r--r--example/text_processor_example/qt_widget.hpp57
3 files changed, 0 insertions, 86 deletions
diff --git a/example/text_processor_example/Jamfile.v2 b/example/text_processor_example/Jamfile.v2
deleted file mode 100644
index 4bfc827..0000000
--- a/example/text_processor_example/Jamfile.v2
+++ /dev/null
@@ -1,14 +0,0 @@
-#
-# File: Jamfile.v2
-# Author: Amlal El Mahrouss,
-# Copyright 2026, Amlal El Mahrouss, Licensed under the Boost Software License
-#
-
-project tests
-: default-build debug
-;
-
-exe example.o
- : example.cpp
- : <cxxstd>20 ;
-
diff --git a/example/text_processor_example/example.cpp b/example/text_processor_example/example.cpp
deleted file mode 100644
index 19f0ecf..0000000
--- a/example/text_processor_example/example.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * File: example.cpp
- * Purpose: Rope example.
- * Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2026, Amlal El Mahrouss, licensed under the Boost Software License.
- */
-
-#include "qt_widget.hpp"
-
-int main(int argc, char** argv)
-{
- QApplication app(argc, argv);
-
- return app.exec();
-}
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 <ocl/tproc/rope.hpp>
-
-#include <iostream>
-#include <string>
-#include <string_view>
-#include <QWidget>
-#include <QApplication>
-
-#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<TTextEditorDelegate> delegate_:
-};
-
-#endif