[Qt-creator] Create SplitView in EditorManager programmatically

Vidhya Arun svidhyapria at gmail.com
Fri Mar 6 15:55:14 CET 2020


Yes Andre, I referred this plugin too but I found there is no separate
preview pane here instead the preview was happening directly in the editor.
I was looking to develop a side by side viewer with the text editor and
preview pane where the preview pane will remain read only

Vidhya

On Fri, 6 Mar 2020 at 8:08 PM, André Hartmann <andre.hartmann at iseg-hv.de>
wrote:

> Dear Vidhya Arun,
>
> Please note that there is currently a markdown viewer in development /
> review: https://codereview.qt-project.org/c/qt-creator/qt-creator/+/287928
>
> Maybe your plugin and the markdown viewer can join forces - after all
> the use case should be similar.
>
> Regards, André
>
> Am 06.03.20 um 15:33 schrieb Eike Ziller:
> >
> >
> >> On 6. Mar 2020, at 15:29, Eike Ziller <eike.ziller at qt.io> wrote:
> >>
> >>
> >>
> >>> On 6. Mar 2020, at 15:15, Vidhya Arun <svidhyapria at gmail.com> wrote:
> >>>
> >>> Hello All
> >>>
> >>> I am creating a plugin for ascii doc preview for which I need to
> create a splitView in the EditorManager.
> >>> My idea is to create a plainTextEdit in one side of Editor and a
> previewer in the other split.
> >>>
> >>> Are there any methods exposed directly from TextEditor or
> EditorManager plugin to create this split view (The split Side by side
> functionality that we are able to do it manually in QtCreator editor is
> what am trying to call programatically )
> >>
> >> The only options that you have programmatically are
> "EditorManager::openEditor(filename, Id(),
> EditorManager::OpenInOtherSplit)” (opens document in “next” split view,
> creates split view if there is none yet),
> >
> > That is available for any editor-opening method, like
> EditorManager::openEditorWithContents, which might be more appropriate if
> you create an in-memory preview.
> >
> >> and possibly "EditorManager::openEditor(....,
> EditorManager::SwitchSplitIfAlreadyVisible)", which does not open the
> document in the current view, if it is already visible in a different view.
> >> Otherwise splits are currently not exposed to the outside.
> >
>
>
> --
> Dipl.-Ing. (FH) André Hartmann
> Softwareentwicklung / Software Development
>
> E-Mail: andre.hartmann at iseg-hv.de | Tel: +49 351 26996-43 | Fax: +49 351
> 26996-21
>
> iseg Spezialelektronik GmbH - HIGH VOLTAGE. EXACTLY.
> iseg-hv.de | iseg-hv.com | download.iseg-hv.com
>
> Bautzner Landstr. 23, 01454 Radeberg / Rossendorf, Germany
> Geschäftsführer / Managing directors: Dr. Frank Gleisberg, Dr. Joachim
> Pöthig
> Amtsgericht / Lower district court: Dresden HRB 16250
> Umsatzsteuer-Id: / VAT-ID: DE812508942
>
> News / Information
> https://iseg-hv.com/en/products/control#isegControl2 isegControl2 -
> Unified Control Software
> https://iseg-hv.com/en/products/detail/EHS EHS FLEX - Customize and keep
> the price
> https://iseg-hv.com/en/products/detail/EHS EHS STACK - Perfect for GEM
> Detectors
> https://iseg-hv.com/files/iseg-high-voltage-power-supplies.pdf NEW!
> Product catalog 2017 / 2018 released
> https://iseg-hv.com/en/products/detail/NHR NHR - NIM HV-Supply with
> reversible polarity
>
> Links
> https://www.linkedin.com/company/12726924 iseg on LINKEDIN | Let's stay
> connected!
> https://www.youtube.com/channel/UC5AL-ZgOqSim_1gYNnndyzQ iseg on YOUTUBE
> | Tutorials and more ...
> https://www.twitter.com/iseg_hv iseg on TWITTER | please follow!
> https://iseg-hv.com/files/iseg-high-voltage-power-supplies.pdf iseg
> CATALOG | download product catalog as PDF
> http://download.iseg-hv.com/ iseg DOWNLOADS | manuals, software,
> firmware and more...
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige
> Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren
> Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht
> gestattet.
>
> This e-mail may contain confidential and/or privileged information. If
> you are not the intended recipient
> (or have received this e-mail in error) please notify the sender
> immediately and destroy this e-mail.
> Any unauthorized copying, disclosure or distribution of the material in
> this e-mail is strictly forbidden.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200306/11d8e94c/attachment-0001.html>


More information about the Qt-creator mailing list