<div dir="ltr"><div>That's very helpful - Thanks.<br><br></div>cheers<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-16 23:31 GMT+04:00 Friedrich W. H. Kossebau <span dir="ltr"><<a href="mailto:kossebau@kde.org" target="_blank">kossebau@kde.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am Montag, 16. Januar 2017, 20:20:31 CET schrieb Friedrich W. H. Kossebau:<br>
> Hi Morten,<br>
><br>
> Am Montag, 16. Januar 2017, 22:45:25 CET schrieb Morten Volden:<br>
</span><div><div class="h5">> > If not, I might be interested in taking on the job if someone can point me<br>
> > in the right(ish) direction.<br>
><br>
> I would (of course) recommend to make use of the basic Okteta libs here,<br>
> which are liboktetacore and liboktetagui (with some version ids added).<br>
> They follow roughly the pattern of QTextDocument and QTextView.<br>
> (Ignore any of Kasten libs coming with Okteta, Kasten is an additional<br>
> (unfinished) framework for which an Okteta extension is done. That one also<br>
> made sense with the hex editor plugin for KDevelop. But for this use-case<br>
> the overhead might be big and also limiting).<br>
><br>
> Sadly there is no tutorial, and for some API dox the best available is<br>
> looking at all the classes in the Okteta namespace at<br>
> <a href="https://api.kde.org/4.x-api/kdesdk-apidocs/okteta/html/namespaceOkteta.html" rel="noreferrer" target="_blank">https://api.kde.org/4.x-api/<wbr>kdesdk-apidocs/okteta/html/<wbr>namespaceOkteta.html</a><br>
><br>
> Minimal starting code would be something like:<br>
><br>
> CMake:<br>
> FindPackage(OktetaGui REQUIRED)<br>
> target_link_libraries(... OktetaGui)<br>
><br>
> C++:<br>
> #include <Okteta/ByteArrayColumnView><br>
> #include <Okteta/ByteArrayModel><br>
><br>
> Okteta::ByteArrayModel* model = new Okteta::ByteArrayModel;<br>
> Okteta::ByteArrayColumnView* widget = new<br>
> Okteta::ByteArrayColumnView(<wbr>parent); widget->setByteArrayModel(<wbr>model);<br>
><br>
> Perhaps one of the existing model classes is good enough, like the<br>
> ByteArrayModel, or you would subclass your own:<br>
> <a href="https://api.kde.org/4.x-api/kdesdk-apidocs/okteta/html/" rel="noreferrer" target="_blank">https://api.kde.org/4.x-api/<wbr>kdesdk-apidocs/okteta/html/</a><br>
> classOkteta_1_<wbr>1AbstractByteArrayModel.html<br>
<br>
</div></div>For a reference also see how the old Okteta plugin for the KHexEdit interfaces<br>
was implemented, that might speed you up:<br>
<br>
<a href="https://cgit.kde.org/okteta.git/tree/parts/kbytesedit/kbytearrayedit.cpp?
h=KDE/4.14" rel="noreferrer" target="_blank">https://cgit.kde.org/okteta.<wbr>git/tree/parts/kbytesedit/<wbr>kbytearrayedit.cpp?<br>
h=KDE/4.14</a><br>
<br>
The API of the Okteta classes should not have changed a lot since then.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">Friedrich<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Regards / Med venlig hilsen<br><br></div><div>Morten Danielsen Volden<br></div><div>Software Developer<br></div><div>M.Sc. EE<br></div></div></div></div></div>
</div>