Changeset 26 for trunk/Forms
- Timestamp:
- Dec 22, 2016, 5:07:02 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r13 r26 5 5 Width = 920 6 6 Caption = 'LibrePaint' 7 ClientHeight = 61 47 ClientHeight = 615 8 8 ClientWidth = 920 9 9 Menu = MainMenu1 … … 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = '1. 3'14 LCLVersion = '1.6.2.0' 15 15 object PaintBox1: TPaintBox 16 16 Left = 0 17 Height = 58 817 Height = 587 18 18 Top = 0 19 19 Width = 920 20 20 Align = alClient 21 21 OnMouseDown = PaintBox1MouseDown 22 OnMouseLeave = PaintBox1MouseLeave 22 23 OnMouseMove = PaintBox1MouseMove 23 24 OnMouseUp = PaintBox1MouseUp 24 OnMouseLeave = PaintBox1MouseLeave25 25 OnMouseWheelDown = PaintBox1MouseWheelDown 26 26 OnMouseWheelUp = PaintBox1MouseWheelUp … … 30 30 object StatusBar1: TStatusBar 31 31 Left = 0 32 Height = 2 633 Top = 58 832 Height = 28 33 Top = 587 34 34 Width = 920 35 35 Panels = < -
trunk/Forms/UFormNew.lfm
r2 r26 8 8 ClientWidth = 497 9 9 OnShow = FormShow 10 LCLVersion = '1. 3'10 LCLVersion = '1.6.2.0' 11 11 object SpinEditWidth: TSpinEdit 12 12 Left = 168 13 Height = 3513 Height = 28 14 14 Top = 24 15 15 Width = 122 … … 20 20 object Label1: TLabel 21 21 Left = 15 22 Height = 2 522 Height = 20 23 23 Top = 26 24 Width = 6024 Width = 43 25 25 Caption = 'Width:' 26 26 ParentColor = False … … 28 28 object Label2: TLabel 29 29 Left = 15 30 Height = 2 530 Height = 20 31 31 Top = 64 32 Width = 6732 Width = 48 33 33 Caption = 'Height:' 34 34 ParentColor = False … … 36 36 object SpinEditHeight: TSpinEdit 37 37 Left = 168 38 Height = 3538 Height = 28 39 39 Top = 64 40 40 Width = 122 … … 45 45 object Label3: TLabel 46 46 Left = 15 47 Height = 2 547 Height = 20 48 48 Top = 104 49 Width = 10349 Width = 73 50 50 Caption = 'Resolution:' 51 51 ParentColor = False … … 53 53 object SpinEditDPI: TSpinEdit 54 54 Left = 168 55 Height = 3555 Height = 28 56 56 Top = 104 57 57 Width = 122 … … 62 62 object Label4: TLabel 63 63 Left = 15 64 Height = 2 564 Height = 20 65 65 Top = 167 66 Width = 11566 Width = 82 67 67 Caption = 'Color depth:' 68 68 ParentColor = False … … 70 70 object ComboBoxColorFormat: TComboBox 71 71 Left = 167 72 Height = 3572 Height = 28 73 73 Top = 157 74 74 Width = 209 75 ItemHeight = 075 ItemHeight = 20 76 76 OnChange = SpinEditWidthChange 77 77 Style = csDropDownList … … 99 99 object Label5: TLabel 100 100 Left = 16 101 Height = 2 5101 Height = 20 102 102 Top = 224 103 Width = 1 68103 Width = 118 104 104 Caption = 'Memory required:' 105 105 ParentColor = False … … 107 107 object LabelMemRequire: TLabel 108 108 Left = 192 109 Height = 2 5109 Height = 20 110 110 Top = 224 111 Width = 1 5111 Width = 12 112 112 Caption = ' ' 113 113 ParentColor = False -
trunk/Forms/UFormNew.pas
r14 r26 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Spin, 9 StdCtrls, ActnList, U Graphic;9 StdCtrls, ActnList, UFGraphics; 10 10 11 11 type … … 45 45 procedure TFormNew.SpinEditWidthChange(Sender: TObject); 46 46 var 47 ColorFormat: T GColorFormat;47 ColorFormat: TColorFormat; 48 48 begin 49 ColorFormat := Color Manager.Formats[ComboBoxColorFormat.ItemIndex];49 ColorFormat := ColorFormatManager.Formats[ComboBoxColorFormat.ItemIndex]; 50 50 LabelMemRequire.Caption := IntToStr(SpinEditWidth.Value * SpinEditHeight.Value * 51 51 ColorFormat.BitDepth div 8) + ' bytes'; … … 54 54 procedure TFormNew.FormShow(Sender: TObject); 55 55 var 56 ColorFormat: T GColorFormat;56 ColorFormat: TColorFormat; 57 57 I: Integer; 58 58 begin 59 59 ComboBoxColorFormat.Clear; 60 for I := 0 to Color Manager.FormatCount - 1 do begin61 ColorFormat := Color Manager.Formats[I];60 for I := 0 to ColorFormatManager.FormatCount - 1 do begin 61 ColorFormat := ColorFormatManager.Formats[I]; 62 62 ComboBoxColorFormat.AddItem(ColorFormat.Name, nil); 63 63 end;
Note:
See TracChangeset
for help on using the changeset viewer.