diff options
| -rw-r--r-- | example/text_processor_example/qt_widget.hpp | 11 | ||||
| -rw-r--r-- | include/ocl/tproc/algos/bfs.hpp | 9 |
2 files changed, 18 insertions, 2 deletions
diff --git a/example/text_processor_example/qt_widget.hpp b/example/text_processor_example/qt_widget.hpp index 60777e6..6a89ef9 100644 --- a/example/text_processor_example/qt_widget.hpp +++ b/example/text_processor_example/qt_widget.hpp @@ -27,6 +27,10 @@ using namespace boost; #endif +class TTextEditorWidget; +class TTextEditorWindow; +class TTextEditorDelegate; + class TTextEditorWidget : public QWidget { Q_OBJECT @@ -36,8 +40,10 @@ public: using size_type = rope_type::size_type; using string_view = std::string_view; - TTextEditorWidget(string_view text = {}) - : buffer_(text) + TTextEditorWidget() = delete; + + TTextEditorWidget(string_view text, TTextEditorDelegate* del) + : buffer_(text), delegate_(del) { } @@ -45,6 +51,7 @@ public: private: rope_type buffer_; + std::weak_ptr<TTextEditorDelegate> delegate_: }; #endif diff --git a/include/ocl/tproc/algos/bfs.hpp b/include/ocl/tproc/algos/bfs.hpp index 8dbd313..a27dfcb 100644 --- a/include/ocl/tproc/algos/bfs.hpp +++ b/include/ocl/tproc/algos/bfs.hpp @@ -8,4 +8,13 @@ #include <ocl/tproc/detail/config.hpp> +namespace ocl::tproc +{ + + + +} + +#include "bfs.inl" + #endif // OCL_TPROC_BFS_HPP |
