Changeset 90 for trunk/Forms
- Timestamp:
- Aug 10, 2016, 11:24:45 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.