Autore Topic: ATTENZIONE ai recenti cambiamenti nella versione #7089 !  (Letto 270 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.718
  • Ne mors quidem nos iunget
    • Mostra profilo
Vi riporto queto messaggio di Minisini:


" Hi,

Since revision #7089, the IDE uses the new TextEditor control that
replaced the Editor control
.

The TextEditor control has not all the features of the old Editor
control yet, and it surely still have bugs. So please report any problem!

One advantage: TextEditor is entirely written in Gambas, so it will
works with all GUI components. And Gambas programmes will be able to
easily use and extend it.

By the way, the IDE cannot use the new gb.qt5 component yet, because it
seems to have many problems. For example: the Balloon is not displayed
on the top of other windows, and appears in the task bar; When you
resize the IDE console vertically, the Editor is incorrectly redrawn...
I have no idea why, as the two components share their code at most as
possible.

So if you test the gb.qt5 component, please report any problem too!

As for gb.qt5.webkit, you must know that QT will drop the support of
webkit in the next versions, and replace it by classes based on the
Google browser. And guess what, these classes will have less features
than the webkit one, especially the hability to deal with the inner DOM
(the WebElement Gambas class). You have been warned!

Regards,

--
Benoît Minisini
"



" Benoit, do you mean the TextEdit control. My program relies heavily on
that control and its features, without it functioning like the old one
my entire program falls over - no more medical record progress notes
editor. Should I be concerned, How can I find out more details.

richard
"


" No, TextEdit is a specific Qt control located in gb.qt4.ext. It didn't change.
I'm talking about replacing Editor by TextEditor.


--
Benoît Minisini
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.718
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: ATTENZIONE ai recenti cambiamenti nella versione #7089 !
« Risposta #1 il: 20 Maggio 2015, 12:26:28 »
...continua...


" Will TextEditor and Editor be code compatible?
I mean when changing from Editor to TextEditor would the same code for
Editor still work for TextEditor or would one have to rewrite all?


--
Kind regards,

Willy
"


" They are not 100% compatible:

- The Editor.Flags[] array has been replaced by one boolean property for
each flag. TextEditor.ShowLimit, TextEditor.ShowCurrent...

- The Editor.Lines[] array is replaced by the TextEditor[] array.

- Editor.Lines.Count is now TextEditor.Count.

- Folding is not yet implemented.

- TextEditor.Highlight now takes a string ("c","c++","gambas"), not an
integer constant.

- Selection is now indicated by the SelectionLine and SelectionColumn
properties. Everything between (SelectionColumn,SelectionLine) and
(Column,Line) is selected.

- A style has one color only now, not foreground and background anymore.

- Italic has been removed from styles.

Regards,


--
Benoît Minisini
"


" I don't understand why there's no italics anymore, it's a nice feature
and a usual thing on editors. Everything else should be manageable.

But this TextEditor thing lets me remember of the Printer interface -
will there be any major changes through qt5 in the future?

Rolf
"


" It may return in the future. It's because Italic need another font,
whereas Bold is implemented by drawing the text twice.

>
> But this TextEditor thing lets me remember of the Printer interface -
> will there be any major changes through qt5 in the future?


It's the same code as in gb.qt4, but I didn't test it yet.

Regards,


--
Benoît Minisini
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »