[Lazarus] EditorToolBarOptions nodes demaged

FreeMan freeman35 at delphiturkiye.com
Thu Oct 15 12:31:57 CEST 2015


In r50059 toolbarconfig.pas
procedure TIDEToolBarOptionsBase.SaveButtonNames(XMLConfig: TXMLConfig; 
SubPath: String);
..
XMLConfig.SetDeleteValue(SubPath + 'Button' + IntToStr(I+1) + '/Name', 
ButtonNames[I], '');

   has only this line, but loadbuttonnames has

ButtonName := XMLConfig.GetValue(SubPath + 'Button' + IntToStr(I) + 
'/Name', '')
if ButtonName = '' then  // Old format
ButtonName := XMLConfig.GetValue(SubPath + 'Buttons/Name' + IntToStr(I) 
+ '/Value', '');

this is from my environmentoptions.xml after add "build project" menu 
item, but its Caption has added shortcut and when save in 
environmentoptions.xml like this. You can see extra added "/" char,  tag 
end chars.
And I wanna ask question, if I'm not misunderstood, in new format, 
captions are writing, if its yes its a problem.

     <Button11 Name="Build project*/*program"/>
         <Button12 Name="Compile project/program"/>
         <Button13 Name="Abort building"/>

On 15.10.2015 13:10, Ondrej Pokorny wrote:
> On 15.10.2015 12:05, FreeMan wrote:
>>  r50058-50059 change "EditorToolBarOptions" node's values
>> in environmentoptions.xml
>> after:
>>       <EditorToolBarOptions Position="Left" Count="27">
>>         <Button1 Name="Save"/>
>>         <Button2 Name="SaveAll"/>
>>         <Button3 Name="---------------"/>
>>         <Button4 Name="Jump to Implementation"/>
>>         <Button5 Name="---------------"/>
>>         <Button6 Name="Open package file"/>
>>         <Button7 Name="Open"/>
>>         <Button8 Name="Open project"/>
>>         <Button9 Name="CloseAll"/>
>>         <Button10 Name="---------------"/>
>>         <Button11 Name="Build project/program"/>
>>
>> before:
>>       <EditorToolBarOptions Position="Left" Count="31">
>>         <Button1 Name="IDEMainMenu/File/itmFileOpenSave/itmFileSave"/>
>>         <Button2 
>> Name="IDEMainMenu/File/itmFileOpenSave/itmFileSaveAll"/>
>>         <Button3 
>> Name="IDEMainMenu/Search/itmJumpings/itmJumpToSection/itmJumpToInterfaceUses"/>
>>         <Button4 Name="---------------"/>
>>         <Button5 
>> Name="IDEMainMenu/Package/itmPkgOpening/itmPkgOpenPackageFile"/>
>>         <Button6 Name="IDEMainMenu/File/itmFileOpenSave/itmFileOpen"/>
>>         <Button7 
>> Name="IDEMainMenu/Project/itmProjectOpenSection/itmProjectOpen"/>
>>         <Button8 
>> Name="IDEMainMenu/File/itmFileOpenSave/itmFileCloseAll"/>
>>         <Button9 Name="---------------"/>
>>         <Button10 
>> Name="IDEMainMenu/Run/itmRunBuilding/itmRunMenuBuild"/>
>>         <Button11 
>> Name="IDEMainMenu/Run/itmRunBuilding/itmRunMenuAbortBuild"/>
>
> Yes, they changed. What's the problem?
>
> Ondrej
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151015/8d598d18/attachment-0003.html>


More information about the Lazarus mailing list