Changeset 90
- Timestamp:
- Aug 10, 2016, 11:24:45 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AcronymDecoder.lpi
r88 r90 234 234 </Item5> 235 235 </RequiredPackages> 236 <Units Count="1 6">236 <Units Count="17"> 237 237 <Unit0> 238 238 <Filename Value="AcronymDecoder.lpr"/> … … 341 341 <ResourceBaseClass Value="DataModule"/> 342 342 </Unit15> 343 <Unit16> 344 <Filename Value="Forms\UFormExport.pas"/> 345 <IsPartOfProject Value="True"/> 346 <ComponentName Value="FormExport"/> 347 <ResourceBaseClass Value="Form"/> 348 </Unit16> 343 349 </Units> 344 350 </ProjectOptions> -
trunk/AcronymDecoder.lpr
r87 r90 10 10 Forms, UAcronym, Common, SysUtils, TemplateGenerics, UFormImport, 11 11 CoolTranslator, UFormCategorySelect, UFormMain, UFormAcronym, UFormSettings, 12 UFormCategories, UFormAcronyms, UFormImportSource, UFormImportSources, 13 UFormAbout, UFormImportFormat, UFormImportFormats, UFormImportPattern, UCore 12 UFormCategories, UFormAcronyms, UFormImportSource, UFormImportSources, 13 UFormAbout, UFormImportFormat, UFormImportFormats, UFormImportPattern, UCore, 14 UFormExport 14 15 { you can add units after this }; 15 16 … … 46 47 Application.CreateForm(TFormImportFormats, FormImportFormats); 47 48 Application.CreateForm(TFormImportPattern, FormImportPattern); 49 Application.CreateForm(TFormExport, FormExport); 48 50 Application.Run; 49 51 end. -
trunk/Forms/UFormImport.lfm
r55 r90 9 9 Position = poScreenCenter 10 10 LCLVersion = '1.6.0.4' 11 object Button Import: TButton11 object ButtonProcess: TButton 12 12 Left = 16 13 13 Height = 25 … … 15 15 Width = 107 16 16 Caption = 'Process' 17 OnClick = Button ImportClick17 OnClick = ButtonProcessClick 18 18 TabOrder = 0 19 19 end … … 29 29 object ComboBoxDataFormat: TComboBox 30 30 Left = 264 31 Height = 2831 Height = 34 32 32 Top = 5 33 33 Width = 140 34 ItemHeight = 2034 ItemHeight = 0 35 35 ItemIndex = 0 36 36 Items.Strings = ( … … 44 44 object Label1: TLabel 45 45 Left = 153 46 Height = 2 046 Height = 24 47 47 Top = 9 48 Width = 8448 Width = 108 49 49 Caption = 'Data format:' 50 50 ParentColor = False -
trunk/Forms/UFormImport.lrt
r16 r90 1 1 TFORMIMPORT.CAPTION=Import 2 TFORMIMPORT.BUTTON IMPORT.CAPTION=Process2 TFORMIMPORT.BUTTONPROCESS.CAPTION=Process 3 3 TFORMIMPORT.COMBOBOXDATAFORMAT.TEXT=CSV 4 4 TFORMIMPORT.LABEL1.CAPTION=Data format: -
trunk/Forms/UFormImport.pas
r86 r90 15 15 TFormImport = class(TForm) 16 16 ButtonLoadFromFile: TButton; 17 Button Import: TButton;17 ButtonProcess: TButton; 18 18 ComboBoxDataFormat: TComboBox; 19 19 Label1: TLabel; 20 20 Memo1: TMemo; 21 21 OpenDialog1: TOpenDialog; 22 procedure Button ImportClick(Sender: TObject);22 procedure ButtonProcessClick(Sender: TObject); 23 23 procedure ButtonLoadFromFileClick(Sender: TObject); 24 24 private … … 45 45 { TFormImport } 46 46 47 procedure TFormImport.Button ImportClick(Sender: TObject);47 procedure TFormImport.ButtonProcessClick(Sender: TObject); 48 48 begin 49 49 if ComboBoxDataFormat.ItemIndex = 0 then ImportCSV; … … 53 53 procedure TFormImport.ButtonLoadFromFileClick(Sender: TObject); 54 54 begin 55 if ComboBoxDataFormat.ItemIndex = 0 then OpenDialog1.DefaultExt := '.csv'; 56 if ComboBoxDataFormat.ItemIndex = 1 then OpenDialog1.DefaultExt := '.txt'; 55 57 if OpenDialog1.Execute then 56 58 Memo1.Lines.LoadFromFile(OpenDialog1.FileName); -
trunk/Forms/UFormMain.lfm
r87 r90 3 3 Height = 446 4 4 Top = 342 5 Width = 6315 Width = 782 6 6 Caption = 'Acronym Decoder' 7 ClientHeight = 4 218 ClientWidth = 6317 ClientHeight = 414 8 ClientWidth = 782 9 9 Menu = MainMenu1 10 10 OnClose = FormClose … … 17 17 object Panel1: TPanel 18 18 Left = 0 19 Height = 3 9519 Height = 388 20 20 Top = 26 21 Width = 63121 Width = 782 22 22 Align = alClient 23 23 BevelOuter = bvNone 24 ClientHeight = 3 9525 ClientWidth = 63124 ClientHeight = 388 25 ClientWidth = 782 26 26 TabOrder = 1 27 27 object CheckBoxExactMath: TCheckBox 28 28 Left = 8 29 Height = 2 429 Height = 28 30 30 Top = 3 31 Width = 1 0431 Width = 129 32 32 Caption = 'Exact match' 33 33 OnChange = CheckBoxExactMathChange … … 38 38 Height = 30 39 39 Top = 32 40 Width = 61640 Width = 767 41 41 OnChange = ListViewFilter1Change 42 42 Anchors = [akTop, akLeft, akRight] … … 44 44 object ListViewAcronyms: TListView 45 45 Left = 8 46 Height = 3 2346 Height = 316 47 47 Top = 64 48 Width = 61648 Width = 767 49 49 Anchors = [akTop, akLeft, akRight, akBottom] 50 50 Columns = < … … 54 54 end 55 55 item 56 Caption = ' Description'56 Caption = 'Meaning' 57 57 Width = 300 58 58 end 59 59 item 60 60 Caption = 'Categories' 61 Width = 3 0061 Width = 347 62 62 end> 63 63 OwnerData = True … … 75 75 Height = 26 76 76 Top = 0 77 Width = 63177 Width = 782 78 78 Caption = 'ToolBar1' 79 79 Images = ImageList1 … … 699 699 end 700 700 object MenuItem3: TMenuItem 701 Action = A ManualImport701 Action = AImport 702 702 end 703 703 object MenuItem19: TMenuItem … … 793 793 OnExecute = AShowExecute 794 794 end 795 object A ManualImport: TAction796 Caption = ' Manual import'797 OnExecute = A ManualImportExecute795 object AImport: TAction 796 Caption = 'Import' 797 OnExecute = AImportExecute 798 798 end 799 799 object AFileOpen: TAction … … 866 866 OnExecute = AProcessImportsExecute 867 867 ShortCut = 119 868 end 869 object AExport: TAction 870 Caption = 'Export' 871 OnExecute = AExportExecute 868 872 end 869 873 end … … 1290 1294 Caption = 'Tools' 1291 1295 object MenuItem17: TMenuItem 1292 Action = AManualImport 1296 Action = AImport 1297 end 1298 object MenuItem25: TMenuItem 1299 Action = AExport 1293 1300 end 1294 1301 object MenuItem23: TMenuItem … … 2002 2009 end 2003 2010 object PopupMenuOpenRecent: TPopupMenu 2004 left = 3792005 top = 1 362011 left = 672 2012 top = 144 2006 2013 end 2007 2014 end -
trunk/Forms/UFormMain.lrt
r51 r90 2 2 TFORMMAIN.CHECKBOXEXACTMATH.CAPTION=Exact match 3 3 TFORMMAIN.LISTVIEWACRONYMS.COLUMNS[0].CAPTION=Name 4 TFORMMAIN.LISTVIEWACRONYMS.COLUMNS[1].CAPTION= Description4 TFORMMAIN.LISTVIEWACRONYMS.COLUMNS[1].CAPTION=Meaning 5 5 TFORMMAIN.LISTVIEWACRONYMS.COLUMNS[2].CAPTION=Categories 6 6 TFORMMAIN.TOOLBAR1.CAPTION=ToolBar1 … … 9 9 TFORMMAIN.AEXIT.CAPTION=Exit 10 10 TFORMMAIN.ASHOW.CAPTION=Show 11 TFORMMAIN.A MANUALIMPORT.CAPTION=Manual import11 TFORMMAIN.AIMPORT.CAPTION=Import 12 12 TFORMMAIN.AFILEOPEN.CAPTION=Open 13 13 TFORMMAIN.AFILENEW.CAPTION=New … … 22 22 TFORMMAIN.ASHOWIMPORTFORMATS.CAPTION=Import formats 23 23 TFORMMAIN.APROCESSIMPORTS.CAPTION=Process imports 24 TFORMMAIN.AEXPORT.CAPTION=Export 24 25 TFORMMAIN.MENUITEM8.CAPTION=File 25 26 TFORMMAIN.MENUITEMOPENRECENT.CAPTION=Open recent -
trunk/Forms/UFormMain.pas
r87 r90 16 16 17 17 TFormMain = class(TForm) 18 AExport: TAction; 18 19 AProcessImports: TAction; 19 20 AShowImportFormats: TAction; … … 28 29 AFileNew: TAction; 29 30 AFileOpen: TAction; 30 A ManualImport: TAction;31 AImport: TAction; 31 32 AShow: TAction; 32 33 AExit: TAction; … … 57 58 MenuItem23: TMenuItem; 58 59 MenuItem24: TMenuItem; 60 MenuItem25: TMenuItem; 59 61 MenuItemToolbar: TMenuItem; 60 62 MenuItem4: TMenuItem; … … 88 90 TrayIcon1: TTrayIcon; 89 91 procedure AExitExecute(Sender: TObject); 92 procedure AExportExecute(Sender: TObject); 90 93 procedure AFileCloseExecute(Sender: TObject); 91 94 procedure AFileNewExecute(Sender: TObject); … … 93 96 procedure AFileSaveAsExecute(Sender: TObject); 94 97 procedure AFileSaveExecute(Sender: TObject); 95 procedure A ManualImportExecute(Sender: TObject);98 procedure AImportExecute(Sender: TObject); 96 99 procedure AProcessImportsExecute(Sender: TObject); 97 100 procedure ASettingsExecute(Sender: TObject); … … 150 153 151 154 uses 152 UFormImport, UFormSettings, UFormCategories, UFormAcronyms, 155 UFormImport, UFormSettings, UFormCategories, UFormAcronyms, UFormExport, 153 156 UFormImportSources, UFormAbout, UFormImportFormats, UCore; 154 157 … … 199 202 begin 200 203 Close; 204 end; 205 206 procedure TFormMain.AExportExecute(Sender: TObject); 207 begin 208 FormExport.ShowModal; 201 209 end; 202 210 … … 270 278 end; 271 279 272 procedure TFormMain.A ManualImportExecute(Sender: TObject);280 procedure TFormMain.AImportExecute(Sender: TObject); 273 281 begin 274 282 FormImport.ShowModal; … … 421 429 case Column of 422 430 0: Result := CompareString(TAcronymMeaning(Item1).Acronym.Name, TAcronymMeaning(Item2).Acronym.Name); 423 1: Result := CompareString(TAcronymMeaning(Item1). Description, TAcronymMeaning(Item2).Description);431 1: Result := CompareString(TAcronymMeaning(Item1).Name, TAcronymMeaning(Item2).Name); 424 432 2: Result := CompareString(TAcronymMeaning(Item1).Categories.GetString, TAcronymMeaning(Item2).Categories.GetString); 425 433 end; … … 543 551 AFileSave.Enabled := Assigned(Core.AcronymDb) and Core.AcronymDb.Modified; 544 552 AFileSaveAs.Enabled := Assigned(Core.AcronymDb); 545 AManualImport.Enabled := Assigned(Core.AcronymDb); 553 AImport.Enabled := Assigned(Core.AcronymDb); 554 AExport.Enabled := Assigned(Core.AcronymDb); 546 555 AProcessImports.Enabled := Assigned(Core.AcronymDb); 547 556 AShowCategories.Enabled := Assigned(Core.AcronymDb); -
trunk/Languages/AcronymDecoder.cs.po
r89 r90 179 179 msgstr "Vybrat kategories" 180 180 181 #: tformimport.buttonimport.caption 182 msgctxt "tformimport.buttonimport.caption" 181 #: tformexport.buttonprocess.caption 182 #, fuzzy 183 msgctxt "tformexport.buttonprocess.caption" 183 184 msgid "Process" 184 185 msgstr "Zpracovat" 186 187 #: tformexport.buttonsavetofile.caption 188 msgid "Save to file" 189 msgstr "" 190 191 #: tformexport.caption 192 msgctxt "tformexport.caption" 193 msgid "Export" 194 msgstr "" 195 196 #: tformexport.comboboxdataformat.text 197 #, fuzzy 198 msgctxt "tformexport.comboboxdataformat.text" 199 msgid "CSV" 200 msgstr "CSV" 185 201 186 202 #: tformimport.buttonloadfromfile.caption 187 203 msgid "Load from file" 188 204 msgstr "Načíst ze souboru" 205 206 #: tformimport.buttonprocess.caption 207 #, fuzzy 208 msgctxt "tformimport.buttonprocess.caption" 209 msgid "Process" 210 msgstr "Zpracovat" 189 211 190 212 #: tformimport.caption … … 194 216 195 217 #: tformimport.comboboxdataformat.text 218 msgctxt "tformimport.comboboxdataformat.text" 196 219 msgid "CSV" 197 220 msgstr "CSV" … … 475 498 msgstr "Ukončit" 476 499 500 #: tformmain.aexport.caption 501 msgctxt "tformmain.aexport.caption" 502 msgid "Export" 503 msgstr "" 504 477 505 #: tformmain.afileclose.caption 478 506 msgctxt "tformmain.afileclose.caption" … … 496 524 msgstr "Uložit jako..." 497 525 498 #: tformmain.amanualimport.caption 499 msgid "Manual import" 500 msgstr "Ruční import" 526 #: tformmain.aimport.caption 527 #, fuzzy 528 msgctxt "tformmain.aimport.caption" 529 msgid "Import" 530 msgstr "Importovat" 501 531 502 532 #: tformmain.aprocessimports.caption … … 553 583 554 584 #: tformmain.listviewacronyms.columns[1].caption 585 #, fuzzy 586 #| msgid "Description" 555 587 msgctxt "tformmain.listviewacronyms.columns[1].caption" 556 msgid " Description"588 msgid "Meaning" 557 589 msgstr "Popis" 558 590 … … 770 802 msgstr "Opravdu chcete odebrat vybrané kategorie?" 771 803 804 #: uformexport.sexpotedacronyms 805 msgid "Exported %d acronyms" 806 msgstr "" 807 772 808 #: uformimport.simportednewacronyms 773 809 msgid "Imported %d new acronyms." -
trunk/Languages/AcronymDecoder.po
r89 r90 169 169 msgstr "" 170 170 171 #: tform import.buttonimport.caption172 msgctxt " tformimport.buttonimport.caption"171 #: tformexport.buttonprocess.caption 172 msgctxt "TFORMEXPORT.BUTTONPROCESS.CAPTION" 173 173 msgid "Process" 174 msgstr "" 175 176 #: tformexport.buttonsavetofile.caption 177 msgid "Save to file" 178 msgstr "" 179 180 #: tformexport.caption 181 msgctxt "tformexport.caption" 182 msgid "Export" 183 msgstr "" 184 185 #: tformexport.comboboxdataformat.text 186 msgctxt "TFORMEXPORT.COMBOBOXDATAFORMAT.TEXT" 187 msgid "CSV" 174 188 msgstr "" 175 189 176 190 #: tformimport.buttonloadfromfile.caption 177 191 msgid "Load from file" 192 msgstr "" 193 194 #: tformimport.buttonprocess.caption 195 msgctxt "TFORMIMPORT.BUTTONPROCESS.CAPTION" 196 msgid "Process" 178 197 msgstr "" 179 198 … … 184 203 185 204 #: tformimport.comboboxdataformat.text 205 msgctxt "tformimport.comboboxdataformat.text" 186 206 msgid "CSV" 187 207 msgstr "" … … 465 485 msgstr "" 466 486 487 #: tformmain.aexport.caption 488 msgctxt "TFORMMAIN.AEXPORT.CAPTION" 489 msgid "Export" 490 msgstr "" 491 467 492 #: tformmain.afileclose.caption 468 493 msgctxt "tformmain.afileclose.caption" … … 486 511 msgstr "" 487 512 488 #: tformmain.amanualimport.caption 489 msgid "Manual import" 513 #: tformmain.aimport.caption 514 msgctxt "TFORMMAIN.AIMPORT.CAPTION" 515 msgid "Import" 490 516 msgstr "" 491 517 … … 544 570 #: tformmain.listviewacronyms.columns[1].caption 545 571 msgctxt "tformmain.listviewacronyms.columns[1].caption" 546 msgid " Description"572 msgid "Meaning" 547 573 msgstr "" 548 574 … … 760 786 msgstr "" 761 787 788 #: uformexport.sexpotedacronyms 789 msgid "Exported %d acronyms" 790 msgstr "" 791 762 792 #: uformimport.simportednewacronyms 763 793 msgid "Imported %d new acronyms."
Note:
See TracChangeset
for help on using the changeset viewer.