- Timestamp:
- Feb 27, 2018, 6:11:44 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAbout.pas
r1 r15 69 69 begin 70 70 Core.CoolTranslator1.TranslateComponentRecursive(Self); 71 Core.ThemeManager1.UseTheme(Self); 71 72 end; 72 73 -
trunk/Forms/UFormContact.lfm
r9 r15 17 17 Top = 8 18 18 Width = 744 19 ActivePage = TabSheet General19 ActivePage = TabSheetAll 20 20 Anchors = [akTop, akLeft, akRight, akBottom] 21 TabIndex = 021 TabIndex = 2 22 22 TabOrder = 0 23 23 object TabSheetGeneral: TTabSheet … … 398 398 end> 399 399 OwnerData = True 400 PopupMenu = PopupMenu1 400 401 ReadOnly = True 401 402 RowSelect = True … … 403 404 ViewStyle = vsReport 404 405 OnData = ListView1Data 406 OnDblClick = AEditFieldExecute 405 407 end 406 408 end … … 426 428 TabOrder = 2 427 429 end 430 object ActionList1: TActionList 431 Images = Core.ImageList1 432 left = 317 433 top = 157 434 object AEditField: TAction 435 Caption = 'Edit' 436 OnExecute = AEditFieldExecute 437 end 438 end 439 object PopupMenu1: TPopupMenu 440 Images = Core.ImageList1 441 left = 172 442 top = 159 443 object MenuItem1: TMenuItem 444 Action = AEditField 445 end 446 end 428 447 end -
trunk/Forms/UFormContact.pas
r9 r15 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, UContact;9 ComCtrls, ActnList, Menus, UContact; 10 10 11 11 type … … 14 14 15 15 TFormContact = class(TForm) 16 AEditField: TAction; 17 ActionList1: TActionList; 16 18 ButtonCancel: TButton; 17 19 ButtonOk: TButton; … … 63 65 ListView1: TListView; 64 66 MemoNotes: TMemo; 67 MenuItem1: TMenuItem; 65 68 PageControlContact: TPageControl; 69 PopupMenu1: TPopupMenu; 66 70 TabSheetGeneral: TTabSheet; 67 71 TabSheetDetails: TTabSheet; 68 72 TabSheetAll: TTabSheet; 73 procedure AEditFieldExecute(Sender: TObject); 69 74 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 70 75 procedure FormCreate(Sender: TObject); … … 89 94 uses 90 95 UCore; 96 97 resourcestring 98 SFieldEdit = 'Field edit'; 99 SEditFieldValue = 'Edit field value'; 91 100 92 101 { TFormContact } … … 126 135 end; 127 136 137 procedure TFormContact.AEditFieldExecute(Sender: TObject); 138 begin 139 if Assigned(ListView1.Selected) then begin 140 Contact.Fields[TContactFieldIndex(ListView1.Selected.Index)] := 141 InputBox(SFieldEdit, SEditFieldValue, Contact.Fields[TContactFieldIndex(ListView1.Selected.Index)]); 142 end; 143 end; 144 128 145 procedure TFormContact.FormCreate(Sender: TObject); 129 146 begin 130 147 Core.CoolTranslator1.TranslateComponentRecursive(Self); 148 Core.ThemeManager1.UseTheme(Self); 131 149 Contact := nil; 132 150 end; -
trunk/Forms/UFormContacts.pas
r14 r15 101 101 begin 102 102 Core.PersistentForm1.Load(Self); 103 Core.ThemeManager1.UseTheme(Self); 103 104 ReloadList; 104 105 UpdateInterface; -
trunk/Forms/UFormMain.lfm
r14 r15 5 5 Width = 785 6 6 Caption = 'vCard Studio' 7 ClientHeight = 4977 ClientHeight = 506 8 8 ClientWidth = 785 9 DesignTimePPI = 120 9 10 Menu = MainMenu1 10 11 OnClose = FormClose … … 12 13 OnCreate = FormCreate 13 14 OnShow = FormShow 14 LCLVersion = '1.8.0. 4'15 LCLVersion = '1.8.0.6' 15 16 object CoolBar1: TCoolBar 16 17 Left = 0 17 Height = 3 218 Height = 38 18 19 Top = 0 19 20 Width = 785 … … 35 36 AnchorSideTop.Control = CoolBar1 36 37 Left = 24 37 Height = 2 838 Height = 22 38 39 Top = 5 39 Width = 1 3240 Width = 105 40 41 Align = alNone 41 42 AutoSize = True … … 55 56 end 56 57 object ToolButton2: TToolButton 57 Left = 3058 Left = 24 58 59 Top = 0 59 60 Action = Core.AFileOpen … … 62 63 end 63 64 object ToolButton3: TToolButton 64 Left = 7465 Left = 59 65 66 Top = 0 66 67 Action = Core.AFileSave 67 68 end 68 69 object ToolButton4: TToolButton 69 Left = 10370 Left = 82 70 71 Top = 0 71 72 Action = Core.AFileClose … … 76 77 AnchorSideTop.Control = CoolBar1 77 78 Left = 188 78 Height = 2 879 Height = 22 79 80 Top = 5 80 Width = 3081 Width = 24 81 82 Align = alNone 82 83 AutoSize = True … … 99 100 object StatusBar1: TStatusBar 100 101 Left = 0 101 Height = 30102 Top = 4 67102 Height = 28 103 Top = 478 103 104 Width = 785 104 105 Panels = < -
trunk/Forms/UFormMain.pas
r14 r15 93 93 begin 94 94 Core.Initialize; 95 Core.ThemeManager1.UseTheme(Self); 95 96 Core.PersistentForm1.Load(Self); 96 97 FormContacts.ManualDock(Self, nil, alClient); -
trunk/Forms/UFormSettings.lfm
r1 r15 63 63 end 64 64 object SpinEditDPI: TSpinEdit 65 Left = 1 5265 Left = 160 66 66 Height = 28 67 67 Top = 144 … … 97 97 Anchors = [akLeft, akRight, akBottom] 98 98 end 99 object Label2: TLabel 100 Left = 20 101 Height = 20 102 Top = 184 103 Width = 48 104 Caption = 'Theme:' 105 ParentColor = False 106 end 107 object ComboBoxTheme: TComboBox 108 Left = 160 109 Height = 28 110 Top = 184 111 Width = 260 112 ItemHeight = 20 113 Style = csDropDownList 114 TabOrder = 6 115 end 99 116 end -
trunk/Forms/UFormSettings.pas
r1 r15 20 20 CheckBoxAutomaticDPI: TCheckBox; 21 21 ComboBoxLanguage: TComboBox; 22 ComboBoxTheme: TComboBox; 22 23 Label1: TLabel; 24 Label2: TLabel; 23 25 LabelDPI: TLabel; 24 26 SpinEditDPI: TSpinEdit; … … 39 41 FormSettings: TFormSettings; 40 42 43 41 44 implementation 42 45 … … 44 47 45 48 uses 46 UCore ;49 UCore, UTheme; 47 50 48 51 { TFormSettings } … … 53 56 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); 54 57 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 58 59 Core.ThemeManager1.Themes.LoadToStrings(ComboBoxTheme.Items); 60 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager1.Theme); 61 if ComboBoxTheme.ItemIndex = -1 then ComboBoxTheme.ItemIndex := 0; 55 62 end; 56 63 … … 58 65 begin 59 66 if ComboBoxLanguage.ItemIndex <> -1 then 60 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 67 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxTheme.ItemIndex]); 68 if ComboBoxTheme.ItemIndex <> -1 then 69 Core.ThemeManager1.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); 61 70 end; 62 71 … … 74 83 begin 75 84 Core.CoolTranslator1.TranslateComponentRecursive(Self); 85 Core.ThemeManager1.UseTheme(Self); 76 86 end; 77 87 -
trunk/Install/win/vCard Studio.iss
r6 r15 69 69 Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" 70 70 71 #define FileTypeName "vCard file" 72 Root: HKCR; Subkey: ".vcard"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue 73 Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey 74 Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" 75 Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" 76 71 77 [Files] 72 78 Source: "{#MyAppSubDir}\lib\x86_64-win64-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode -
trunk/Languages/vCardStudio.cs.po
r14 r15 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "Language: cs\n" 12 "X-Generator: Poedit 2.0.4\n"12 "X-Generator: Poedit 1.8.8\n" 13 13 14 14 #: tcore.aabout.caption … … 78 78 msgstr " " 79 79 80 #: tformcontact.aeditfield.caption 81 msgid "Edit" 82 msgstr "Upravit" 83 80 84 #: tformcontact.buttoncancel.caption 81 85 msgctxt "tformcontact.buttoncancel.caption" … … 303 307 msgstr "Jazyk:" 304 308 309 #: tformsettings.label2.caption 310 msgid "Theme:" 311 msgstr "Téma:" 312 305 313 #: tformsettings.labeldpi.caption 306 314 msgid "DPI:" … … 357 365 msgstr "Verze" 358 366 367 #: uformcontact.seditfieldvalue 368 msgid "Edit field value" 369 msgstr "Upravit hodnotu položky" 370 371 #: uformcontact.sfieldedit 372 msgid "Field edit" 373 msgstr "Upravit pole" 374 359 375 #: uformcontacts.sremovecontacts 360 376 msgid "Remove contacts" -
trunk/Languages/vCardStudio.po
r14 r15 68 68 msgstr "" 69 69 70 #: tformcontact.aeditfield.caption 71 msgid "Edit" 72 msgstr "" 73 70 74 #: tformcontact.buttoncancel.caption 71 75 msgctxt "tformcontact.buttoncancel.caption" … … 291 295 msgstr "" 292 296 297 #: tformsettings.label2.caption 298 msgid "Theme:" 299 msgstr "" 300 293 301 #: tformsettings.labeldpi.caption 294 302 msgid "DPI:" … … 345 353 msgstr "" 346 354 355 #: uformcontact.seditfieldvalue 356 msgid "Edit field value" 357 msgstr "" 358 359 #: uformcontact.sfieldedit 360 msgid "Field edit" 361 msgstr "" 362 347 363 #: uformcontacts.sremovecontacts 348 364 msgid "Remove contacts" -
trunk/Packages/Common/Common.lpk
r1 r15 11 11 <PathDelim Value="\"/> 12 12 <SearchPaths> 13 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS) "/>13 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)-$(BuildMode)"/> 14 14 </SearchPaths> 15 <Parsing> 16 <SyntaxOptions> 17 <SyntaxMode Value="Delphi"/> 18 <CStyleOperator Value="False"/> 19 <AllowLabel Value="False"/> 20 <CPPInline Value="False"/> 21 </SyntaxOptions> 22 </Parsing> 23 <CodeGeneration> 24 <Optimizations> 25 <OptimizationLevel Value="0"/> 26 </Optimizations> 27 </CodeGeneration> 28 <Linking> 29 <Debugging> 30 <GenerateDebugInfo Value="False"/> 31 </Debugging> 32 </Linking> 33 <Other> 34 <CompilerMessages> 35 <IgnoredMessages idx5024="True"/> 36 </CompilerMessages> 37 </Other> 15 38 </CompilerOptions> 16 39 <Description Value="Various libraries"/> 17 40 <License Value="GNU/GPL"/> 18 41 <Version Minor="7"/> 19 <Files Count="2 0">42 <Files Count="21"> 20 43 <Item1> 21 44 <Filename Value="StopWatch.pas"/> … … 106 129 <UnitName Value="UScaleDPI"/> 107 130 </Item20> 131 <Item21> 132 <Filename Value="UTheme.pas"/> 133 <HasRegisterProc Value="True"/> 134 <UnitName Value="UTheme"/> 135 </Item21> 108 136 </Files> 109 137 <i18n> -
trunk/Packages/Common/Common.pas
r1 r15 8 8 9 9 uses 10 StopWatch, UCommon, UDebugLog, UDelay, UPrefixMultiplier, UURI, UThreading, 11 UMemory, UResetableThread, UPool, ULastOpenedList, URegistry, 12 UJobProgressView, UXMLUtils, UApplicationInfo, USyncCounter, UListViewSort, 13 UPersistentForm, UFindFile, UScaleDPI, LazarusPackageIntf;10 StopWatch, UCommon, UDebugLog, UDelay, UPrefixMultiplier, UURI, UThreading, 11 UMemory, UResetableThread, UPool, ULastOpenedList, URegistry, 12 UJobProgressView, UXMLUtils, UApplicationInfo, USyncCounter, UListViewSort, 13 UPersistentForm, UFindFile, UScaleDPI, UTheme, LazarusPackageIntf; 14 14 15 15 implementation … … 25 25 RegisterUnit('UFindFile', @UFindFile.Register); 26 26 RegisterUnit('UScaleDPI', @UScaleDPI.Register); 27 RegisterUnit('UTheme', @UTheme.Register); 27 28 end; 28 29 -
trunk/Packages/Common/UCommon.pas
r1 r15 28 28 unfDNSDomainName = 11); 29 29 30 TFilterMethodMethod = function (FileName: string): Boolean of object; 30 31 var 31 32 ExceptionHandler: TExceptionEvent; … … 63 64 procedure OpenWebPage(URL: string); 64 65 procedure OpenFileInShell(FileName: string); 65 procedure ExecuteProgram( CommandLine:string);66 procedure ExecuteProgram(Executable: string; Parameters: array of string); 66 67 procedure FreeThenNil(var Obj); 67 68 function RemoveQuotes(Text: string): string; … … 70 71 function GetDirCount(Dir: string): Integer; 71 72 function MergeArray(A, B: array of string): TArrayOfString; 73 function LoadFileToStr(const FileName: TFileName): AnsiString; 74 procedure SearchFiles(AList: TStrings; Dir: string; 75 FilterMethod: TFilterMethodMethod); 72 76 73 77 … … 111 115 Path := IncludeTrailingPathDelimiter(APath); 112 116 113 Find := FindFirst( UTF8Decode(Path + AFileSpec), faAnyFile xor faDirectory, SearchRec);117 Find := FindFirst(Path + AFileSpec, faAnyFile xor faDirectory, SearchRec); 114 118 while Find = 0 do begin 115 DeleteFile(Path + UTF8Encode(SearchRec.Name));119 DeleteFile(Path + SearchRec.Name); 116 120 117 121 Find := SysUtils.FindNext(SearchRec); … … 428 432 end; 429 433 430 procedure ExecuteProgram( CommandLine:string);434 procedure ExecuteProgram(Executable: string; Parameters: array of string); 431 435 var 432 436 Process: TProcess; 437 I: Integer; 433 438 begin 434 439 try 435 440 Process := TProcess.Create(nil); 436 Process.CommandLine := CommandLine; 441 Process.Executable := Executable; 442 for I := 0 to Length(Parameters) - 1 do 443 Process.Parameters.Add(Parameters[I]); 437 444 Process.Options := [poNoConsole]; 438 445 Process.Execute; … … 455 462 procedure OpenFileInShell(FileName: string); 456 463 begin 457 ExecuteProgram('cmd.exe /c start "' + FileName + '"');464 ExecuteProgram('cmd.exe', ['/c', 'start', FileName]); 458 465 end; 459 466 … … 492 499 end; 493 500 501 function LoadFileToStr(const FileName: TFileName): AnsiString; 502 var 503 FileStream: TFileStream; 504 Read: Integer; 505 begin 506 Result := ''; 507 FileStream := TFileStream.Create(FileName, fmOpenRead); 508 try 509 if FileStream.Size > 0 then begin 510 SetLength(Result, FileStream.Size); 511 Read := FileStream.Read(Pointer(Result)^, FileStream.Size); 512 SetLength(Result, Read); 513 end; 514 finally 515 FileStream.Free; 516 end; 517 end; 518 519 function DefaultSearchFilter(const FileName: string): Boolean; 520 begin 521 Result := True; 522 end; 523 524 procedure SearchFiles(AList: TStrings; Dir: string; 525 FilterMethod: TFilterMethodMethod); 526 var 527 SR: TSearchRec; 528 begin 529 Dir := IncludeTrailingPathDelimiter(Dir); 530 if FindFirst(Dir + '*', faAnyFile, SR) = 0 then 531 try 532 repeat 533 if (SR.Name = '.') or (SR.Name = '..') or not FilterMethod(SR.Name) then Continue; 534 AList.Add(Dir + SR.Name); 535 if (SR.Attr and faDirectory) <> 0 then 536 SearchFiles(AList, Dir + SR.Name, FilterMethod); 537 until FindNext(SR) <> 0; 538 finally 539 FindClose(SR); 540 end; 541 end; 494 542 495 543 -
trunk/Packages/Common/UListViewSort.pas
r1 r15 81 81 FOnChange: TNotifyEvent; 82 82 FStringGrid1: TStringGrid; 83 procedure DoOnKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);84 procedure DoOnResize(Sender: TObject);83 procedure GridDoOnKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); 84 procedure GridDoOnResize(Sender: TObject); 85 85 public 86 86 constructor Create(AOwner: TComponent); override; … … 110 110 { TListViewFilter } 111 111 112 procedure TListViewFilter. DoOnKeyUp(Sender: TObject; var Key: Word;112 procedure TListViewFilter.GridDoOnKeyUp(Sender: TObject; var Key: Word; 113 113 Shift: TShiftState); 114 114 begin … … 117 117 end; 118 118 119 procedure TListViewFilter. DoOnResize(Sender: TObject);119 procedure TListViewFilter.GridDoOnResize(Sender: TObject); 120 120 begin 121 121 FStringGrid1.DefaultRowHeight := FStringGrid1.Height; … … 135 135 FStringGrid1.Options := [goFixedHorzLine, goFixedVertLine, goVertLine, 136 136 goHorzLine, goRangeSelect, goEditing, goAlwaysShowEditor, goSmoothScroll]; 137 FStringGrid1.OnKeyUp := DoOnKeyUp;138 FStringGrid1.OnResize := DoOnResize;137 FStringGrid1.OnKeyUp := GridDoOnKeyUp; 138 FStringGrid1.OnResize := GridDoOnResize; 139 139 end; 140 140 … … 144 144 begin 145 145 with FStringGrid1 do begin 146 Options := Options - [goEditing, goAlwaysShowEditor]; 146 147 //Columns.Clear; 147 148 while Columns.Count > ListView.Columns.Count do Columns.Delete(Columns.Count - 1); … … 150 151 Columns[I].Width := ListView.Columns[I].Width; 151 152 end; 153 Options := Options + [goEditing, goAlwaysShowEditor]; 152 154 end; 153 155 end; … … 197 199 if AMsg.Msg = WM_NOTIFY then 198 200 begin 199 Code := PHDNotify(vMsgNotify.NMHdr)^.Hdr.Code;201 Code := NMHDR(PHDNotify(vMsgNotify.NMHdr)^.Hdr).Code; 200 202 case Code of 201 203 HDN_ENDTRACKA, HDN_ENDTRACKW: … … 353 355 TP1: TPoint; 354 356 XBias, YBias: Integer; 355 OldColor: TColor; 357 PenColor: TColor; 358 BrushColor: TColor; 356 359 BiasTop, BiasLeft: Integer; 357 360 Rect1: TRect; … … 365 368 Item.Left := 0; 366 369 GetCheckBias(XBias, YBias, BiasTop, BiasLeft, ListView); 367 OldColor := ListView.Canvas.Pen.Color; 370 PenColor := ListView.Canvas.Pen.Color; 371 BrushColor := ListView.Canvas.Brush.Color; 368 372 //TP1 := Item.GetPosition; 369 373 lRect := Item.DisplayRect(drBounds); // Windows 7 workaround … … 408 412 end; 409 413 //ListView.Canvas.Brush.Color := ListView.Color; 410 ListView.Canvas.Brush.Color := clWindow;411 ListView.Canvas.Pen.Color := OldColor;414 ListView.Canvas.Brush.Color := BrushColor; 415 ListView.Canvas.Pen.Color := PenColor; 412 416 end; 413 417 -
trunk/Packages/CoolTranslator/CoolTranslator.lpk
r1 r15 1 <?xml version="1.0" ?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <CONFIG> 3 3 <Package Version="4"> 4 4 <PathDelim Value="\"/> 5 5 <Name Value="CoolTranslator"/> 6 <Type Value="RunAndDesignTime"/> 6 7 <AddToProjectUsesSection Value="True"/> 7 8 <Author Value="Chronos (robie@centrum.cz)"/> 8 9 <CompilerOptions> 9 <Version Value="1 0"/>10 <Version Value="11"/> 10 11 <PathDelim Value="\"/> 11 12 <SearchPaths> 12 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS) "/>13 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)-$(BuildMode)"/> 13 14 </SearchPaths> 15 <Parsing> 16 <SyntaxOptions> 17 <SyntaxMode Value="Delphi"/> 18 <CStyleOperator Value="False"/> 19 <AllowLabel Value="False"/> 20 <CPPInline Value="False"/> 21 </SyntaxOptions> 22 </Parsing> 23 <CodeGeneration> 24 <Optimizations> 25 <OptimizationLevel Value="0"/> 26 </Optimizations> 27 </CodeGeneration> 28 <Linking> 29 <Debugging> 30 <GenerateDebugInfo Value="False"/> 31 </Debugging> 32 </Linking> 14 33 <Other> 15 <CompilerPath Value="$(CompPath)"/> 34 <CompilerMessages> 35 <IgnoredMessages idx5024="True"/> 36 </CompilerMessages> 16 37 </Other> 17 38 </CompilerOptions> … … 38 59 <OutDir Value="Languages"/> 39 60 </i18n> 40 <Type Value="RunAndDesignTime"/>41 61 <RequiredPkgs Count="2"> 42 62 <Item1> -
trunk/Packages/TemplateGenerics/TemplateGenerics.lpk
r1 r15 1 <?xml version="1.0" ?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <CONFIG> 3 3 <Package Version="4"> 4 4 <PathDelim Value="\"/> 5 5 <Name Value="TemplateGenerics"/> 6 <Type Value="RunAndDesignTime"/> 6 7 <AddToProjectUsesSection Value="True"/> 7 8 <Author Value="Chronos (robie@centrum.cz)"/> … … 12 13 <IncludeFiles Value="Generic"/> 13 14 <OtherUnitFiles Value="Specialized;Generic;Additional"/> 14 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS) "/>15 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)-$(BuildMode)"/> 15 16 </SearchPaths> 17 <Parsing> 18 <SyntaxOptions> 19 <SyntaxMode Value="Delphi"/> 20 <CStyleOperator Value="False"/> 21 <AllowLabel Value="False"/> 22 <CPPInline Value="False"/> 23 </SyntaxOptions> 24 </Parsing> 16 25 <CodeGeneration> 17 26 <Optimizations> 27 <OptimizationLevel Value="0"/> 18 28 <VariablesInRegisters Value="True"/> 19 <OptimizationLevel Value="3"/>20 29 </Optimizations> 21 30 </CodeGeneration> 31 <Linking> 32 <Debugging> 33 <GenerateDebugInfo Value="False"/> 34 </Debugging> 35 </Linking> 22 36 <Other> 23 37 <CompilerMessages> 24 < UseMsgFile Value="True"/>38 <IgnoredMessages idx5024="True"/> 25 39 </CompilerMessages> 26 <CompilerPath Value="$(CompPath)"/>27 40 </Other> 28 41 </CompilerOptions> … … 48 61 <Item5> 49 62 <Filename Value="Generic\GenericFileList.inc"/> 63 <UnitName Value="GenericFileList"/> 50 64 </Item5> 51 65 <Item6> … … 142 156 </Item28> 143 157 </Files> 144 <Type Value="RunAndDesignTime"/>145 158 <RequiredPkgs Count="2"> 146 159 <Item1> -
trunk/UContact.pas
r14 r15 435 435 Charset: string; 436 436 Encoding: string; 437 Language: string; 437 438 CommandItems: TStringList; 438 439 begin … … 465 466 Encoding := CommandItems.Values['ENCODING']; 466 467 CommandItems.Delete(CommandItems.IndexOfName('ENCODING')); 468 end 469 else if CommandItems.IndexOfName('LANGUAGE') >= 0 then begin 470 Language := CommandItems.Values['LANGUAGE']; 471 CommandItems.Delete(CommandItems.IndexOfName('LANGUAGE')); 467 472 end; 468 473 Command := CommandItems.DelimitedText; -
trunk/UCore.lfm
r14 r15 3 3 OnDestroy = DataModuleDestroy 4 4 OldCreateOrder = False 5 Height = 758 6 HorizontalOffset = 605 7 VerticalOffset = 428 8 Width = 1020 5 Height = 703 6 HorizontalOffset = 270 7 VerticalOffset = 174 8 Width = 1078 9 PPI = 120 9 10 object ImageList1: TImageList 10 left = 2 0011 top = 28911 left = 250 12 top = 361 12 13 Bitmap = { 13 14 4C690B0000001000000010000000000000000000000000000000000000000000 … … 368 369 object ActionList1: TActionList 369 370 Images = ImageList1 370 left = 425371 top = 291371 left = 531 372 top = 364 372 373 object AExit: TAction 373 374 Caption = 'Exit' … … 437 438 MaxCount = 10 438 439 OnChange = LastOpenedList1Change 439 left = 636440 top = 289440 left = 795 441 top = 361 441 442 end 442 443 object OpenDialog1: TOpenDialog 443 left = 650444 top = 403444 left = 813 445 top = 504 445 446 end 446 447 object SaveDialog1: TSaveDialog 447 left = 469448 top = 411448 left = 586 449 top = 514 449 450 end 450 451 object ApplicationInfo1: TApplicationInfo … … 459 460 AppName = 'vCard Studio' 460 461 Description = 'vCard files management tool' 461 ReleaseDate = 0462 ReleaseDate = 43158 462 463 RegistryKey = '\Software\Chronosoft\vCard Studio' 463 464 RegistryRoot = rrKeyCurrentUser 464 465 License = 'CC0' 465 left = 2 39466 top = 411466 left = 299 467 top = 514 467 468 end 468 469 object PersistentForm1: TPersistentForm 469 470 MinVisiblePart = 50 470 471 EntireVisible = False 471 left = 650472 top = 90472 left = 813 473 top = 113 473 474 end 474 475 object CoolTranslator1: TCoolTranslator 475 476 POFilesFolder = 'Languages' 476 left = 299477 top = 90477 left = 374 478 top = 113 478 479 end 479 480 object ScaleDPI1: TScaleDPI 480 481 AutoDetect = False 481 left = 470 482 top = 90 482 left = 588 483 top = 113 484 end 485 object ThemeManager1: TThemeManager 486 left = 167 487 top = 250 483 488 end 484 489 end -
trunk/UCore.pas
r14 r15 8 8 Classes, SysUtils, FileUtil, Controls, ActnList, Forms, Dialogs, 9 9 ULastOpenedList, UApplicationInfo, UPersistentForm, UScaleDPI, UCommon, 10 UCoolTranslator, UDataFile, Menus, URegistry, Registry;10 UCoolTranslator, UDataFile, Menus, URegistry, UTheme, Registry; 11 11 12 12 type … … 45 45 SaveDialog1: TSaveDialog; 46 46 ScaleDPI1: TScaleDPI; 47 ThemeManager1: TThemeManager; 47 48 procedure AAboutExecute(Sender: TObject); 48 49 procedure AExitExecute(Sender: TObject); … … 179 180 try 180 181 FormSettings.LoadData; 181 if FormSettings.ShowModal = mrOK then 182 if FormSettings.ShowModal = mrOK then begin 182 183 FormSettings.SaveData; 184 ThemeManager1.UseTheme(FormMain); 185 ThemeManager1.UseTheme(FormContacts); 186 end; 183 187 finally 184 188 FormSettings.Free; … … 308 312 NewContact: TContact; 309 313 I: Integer; 310 CountNew: Integer;311 CountUpdated: Integer;312 314 begin 313 315 Result.Clear; … … 368 370 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', '')) 369 371 else CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(''); 372 if ValueExists('Theme') then 373 ThemeManager1.Theme := ThemeManager1.Themes.FindByName(ReadStringWithDefault('Theme', 'System')) 374 else ThemeManager1.Theme := ThemeManager1.Themes.FindByName('System'); 370 375 FormMain.MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True); 371 376 ReopenLastFileOnStart := ReadBoolWithDefault('ReopenLastFileOnStart', True); … … 386 391 WriteString('LanguageCode', CoolTranslator1.Language.Code) 387 392 else DeleteValue('LanguageCode'); 393 if Assigned(ThemeManager1.Theme) and (ThemeManager1.Theme.Name <> '') then 394 WriteString('Theme', ThemeManager1.Theme.Name) 395 else DeleteValue('Theme'); 388 396 WriteBool('ToolBarVisible', FormMain.MenuItemToolbar.Checked); 389 397 WriteBool('ReopenLastFileOnStart', ReopenLastFileOnStart); -
trunk/vCardStudio.lpi
r6 r15 70 70 </CompilerOptions> 71 71 </Item2> 72 <SharedMatrixOptions Count="2"> 73 <Item1 ID="186308868222" Targets="Common,CoolTranslator,TemplateGenerics" Modes="Debug" Value="-g -gl -gh -CirotR -O1"/> 74 <Item2 ID="035947176865" Targets="Common,CoolTranslator,TemplateGenerics" Modes="Release" Value="-CX -XX -O3"/> 75 </SharedMatrixOptions> 72 76 </BuildModes> 73 77 <PublishOptions>
Note:
See TracChangeset
for help on using the changeset viewer.