Recent

Author Topic: Code Librarian V1 Release Candidate.  (Read 12590 times)

paweld

  • Hero Member
  • *****
  • Posts: 995
Re: Code Librarian V1 Release Candidate.
« Reply #15 on: June 03, 2015, 07:53:29 pm »
create new empty code librarian file after click File>New:
Code: [Select]
procedure TSnippetsMainFrm.actFileNewAccept(Sender : TObject);
begin
  if not actFileNew.Dialog.Execute then
  exit;
  if not FileExistsUTF8(actFileNew.Dialog.FileName) then
  begin
    if MessageDlg('File not exists', 'File '+actFileNew.Dialog.FileName+' not exists. Are you sure you want to create code library file?',
                   mtConfirmation, mbYesNo, 0)=mrNo then
    exit;
    FCodeLib:=CreateStorage;
  end
  else if not IsStructuredStorage(actFileNew.Dialog.FileName) then
  begin
    if MessageDlg('Selected file is not code library file', 'File '+actFileNew.Dialog.FileName+' is not code library file. Are you sure you want to replace this file with new code library file?',
                   mtConfirmation, mbYesNo, 0)=mrNo then
    exit;
    FCodeLib:=CreateStorage;
  end;
  FCodeLib.Initialize(actFileNew.Dialog.FileName, fmCreate);
  LoadCodeLib;
end;   
Best regards / Pozdrawiam
paweld

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Code Librarian V1 Release Candidate.
« Reply #16 on: June 03, 2015, 08:43:29 pm »
I see your point. although that is not what I was looking for this is a bug as well. thank you for your effort.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Paul_

  • Full Member
  • ***
  • Posts: 143
Re: Code Librarian V1 Release Candidate.
« Reply #17 on: June 08, 2015, 02:54:16 pm »
Now its OK, maybe I had old version before. But it was dowloaded from Sourceforge.

Thausand

  • Sr. Member
  • ****
  • Posts: 292
Re: Code Librarian V1 Release Candidate.
« Reply #18 on: April 22, 2019, 11:21:41 am »
I sorry write topic old.

i write use code librarian new user and then
Ok. i have write i sorry.

I have old librarian sourceforge. I have no try github. Github source have error  :(
That is compile source github master.

If want compile github then not source master but source 1.0.1 release and need not many fix.
Code: [Select]
- have page https://github.com/taazz/CodeLibrarian/releases/tag/v1.0.1
- download + unzip https://github.com/taazz/CodeLibrarian/archive/v1.0.1.zip

- start Lazarus. Make project empty new (if not project)
- if no have Tab component LazControls then
  - Lazarus - Menu - Package - Install/Uninstall Packages...
  - dialog -  "Available for Installation:" then have "lazcontroldsgn 0.0"
  - dialog - "Install selection"
  - dialog - "Save and rebuild IDE"
  - dialog - "Confirm new package set for the IDE"
  - dialog -  continue
  - Lazarus - Close project
- Lazarus - "Open project file" WereHave/CodeLibrarian-1.0.1/Librarian/CodeLibrarian.lpi
- Lazarus - editor - uMainForm.pas
  - look interface
  - below write "{$DEFINE LAZARUS_2_0_0_OR_HIGH}"
  - Look uses head line read "Classes,   SysUtils, FileUtil, Forms,    Controls, Graphics, Dialogs, ComCtrls,"
    change make read "Classes,   SysUtils, {$IFDEF LAZARUS_2_0_0_OR_HIGH}LazFileUtilsl{$ELSE}FileUtil{$ENDIF}, Forms,    Controls, Graphics, Dialogs, ComCtrls,
- Lazarus - menu - Project - Save Project
- Lazarus - Menu - Run - Build
Maybe if good build then have code librarian

 

TinyPortal © 2005-2018