Re: [Lazarus] What is the hot key to jump to the unit's implementation uses clause

2018-04-26 Thread Michael Van Canneyt via Lazarus



On Thu, 26 Apr 2018, Graeme Geldenhuys via Lazarus wrote:


On 2018-04-26 11:07, Mattias Gaertner via Lazarus wrote:

Or alternatively use Cody's identifier dictionary, which adds the unit
automatically, so you don't need to jump at all.


For us poor sods that are forced to work with Delphi XE3, can't you port
Cody, CodeTools and basically the whole Lazarus IDE to work with the
delphi compiler? ;-)


You should be able to do so in the same way that it currently uses pas2js.

Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Selection block/brace

2018-04-26 Thread Martin Frb via Lazarus

On 26/04/2018 21:56, Vojtěch Čihák via Lazarus wrote:


Hi,

Select to Brace does nothing, no matter if caret is outside or inside 
(),[] or {}.


What it shoulld do?

(abc|def) should select "def"?


It seems to only work, if the caret is either before the opening ( or 
behind the )


It then selects the entire text (both brackets, and the content)

This is just from a quick test, using trunk (but a few weeks old)

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Selection block/brace

2018-04-26 Thread Vojtěch Čihák via Lazarus

Hi,
Select to Brace does nothing, no matter if caret is outside or inside (),[] or 
{}.
What it shoulld do?
 
(abc|def) should select "def"?
 
Thanks,
 
V.
__

Od: Martin Frb via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 26.04.2018 18:35
Předmět: Re: [Lazarus] Selection block/brace


On 25/04/2018 03:01, Vojtěch Čihák via Lazarus wrote:
> Hi,
>   
> I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both seem do nothing. Are they broken? I didn't use them before so I expexted they would do what their name say. I have Lazarus 1.9.0 r57693M FPC 3.1.1 x86_64-linux-qt.

>

Select to brace works well, if the caret is at a brace ()[]{}

"Code block" may not yet be implemented (check console output), needs to 
be verified. If so should be hidden

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] LCL TImageList method wish

2018-04-26 Thread AlexeyT via Lazarus

Ondrej,
this patch 
https://github.com/graemeg/lazarus/commit/0ff493e8cf2b6e4f1c971561db87d2579396eacd
makes the same for 4 WS'es: it gets bitmap from imagelist for some 
resolution.

Wish: make TImageList.GetBitmapForResulution and make this patch simpler.

--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Component editors and related

2018-04-26 Thread Mattias Gaertner via Lazarus
On Thu, 26 Apr 2018 14:33:15 +0200
Werner Pamler via Lazarus  wrote:

>[...]there is a 
> "GlobalDesignHook" and a "FDesigner.PropertyEditorHook" - are they the 
> same, or: what is the difference?

They are the same.

Mattias
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Component editors and related

2018-04-26 Thread Werner Pamler via Lazarus

Am 25.04.2018 um 22:07 schrieb Werner Pamler via Lazarus:

Am 25.04.2018 um 20:40 schrieb Vojtěch Čihák via Lazarus:


ad 1: I never tried two level collection. Are they all published 
(both collections and their items)?




Yes. And both collections are accessible in the object inspector: The 
JvOutlookBar has a property "Pages", the ellipsis button next to it 
opens the usual collection property editor which can be used to add, 
delete or rearrange pages. And when one of the pages is selected the 
object inspector displays the property "Buttons", again with an 
ellipsis button to open another collection property editor, now for 
the buttons. This part is working out of the box. The problem is the 
component tree which only shows the page nodes but no button nodes.


I am getting the impression that this is a bug of the component tree. 
The listed page items inherit from TCollectionItem, not from TComponent. 
The component tree somehow must be instructed to look for another 
collection within each page colletionItem.



ad 2: You can do (in your component editor) something like:

var aHook: TPropertyEditorHook;

begin

  ...

  aHook:=nil;

      if not GetHook(aHook) then exit;

  ...

  //add or insert:

AddedItem:=aComponent.Columns.Add;

aHook.PersistentAdded(AddedItem, True);  //this notifies component tree

aHook.SelectOnlyThis(AddedItem);   //this selects added object

  //deleting

   DeletedItem:=aComponent.Columns[aIndex];

 aHook.DeletePersistent(TPersistent(DeletedItem)); //this notifies 
component tree




This is for notification of the component tree by the component editor 
and this code is already there and working. What I want is 
notification of the component editor by the designer if pages or 
buttons are added while the component editor is open (the component 
editor is not modal).


I was able to solve this based on code I found in unit 
components/ideintf/fieldseditor. The key point is that handlers for 
GlobalDesignHook events/notifications must be added. BTW, there is a 
"GlobalDesignHook" and a "FDesigner.PropertyEditorHook" - are they the 
same, or: what is the difference?
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] What is the hot key to jump to the unit's implementation uses clause

2018-04-26 Thread Ondrej Pokorny via Lazarus

On 26.04.2018 12:00, Dennis via Lazarus wrote:
From time to time, I need to add an unit to the uses clause of the 
implement section of the unit.


Just use the search function of the Key Mappings IDE options...



It has a tool button as well.

Ondrej
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] What is the hot key to jump to the unit's implementation uses clause

2018-04-26 Thread Dennis via Lazarus
From time to time, I need to add an unit to the uses clause of the 
implement section of the unit.


Dennis
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus