index 99be37674802e7264d71763af56ebcaee5ec2093..1f297ec217b0a6f7ba490f50f63a858f876d053b 100644 (file)
--- a/src/editor/f_options.pas
+++ b/src/editor/f_options.pas
unit f_options;
-{$MODE Delphi}
+{$INCLUDE ../shared/a_modes.inc}
interface
uses
- LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes,
+ LCLIntf, LCLType, SysUtils, Variants, Classes,
Graphics, Controls, Forms, Dialogs, StdCtrls,
ExtCtrls, ComCtrls, Registry;
TOptionsForm = class (TForm)
bOK: TButton;
bCancel: TButton;
+ cbCheckerboard: TCheckBox;
ColorDialog: TColorDialog;
GroupBox1: TGroupBox;
// Общие настройки:
eDotStepTwo.Text := IntToStr(DotStepTwo);
sBackColor.Brush.Color := BackColor;
sPreviewColor.Brush.Color := PreviewColor;
+ cbCheckerboard.Checked := UseCheckerboard;
if Scale = 2 then
cbScale.ItemIndex := 1
else
DrawPanelSize := cbShowSize.Checked;
BackColor := sBackColor.Brush.Color;
PreviewColor := sPreviewColor.Brush.Color;
+ UseCheckerboard := cbCheckerboard.Checked;
if cbScale.ItemIndex = 1 then
Scale := 2
else
DotSize := 1;
- config := TConfig.CreateFile(EditorDir+'/Editor.cfg');
+ config := TConfig.CreateFile(EditorDir+'Editor.cfg');
config.WriteInt('Editor', 'DotColor', DotColor);
config.WriteBool('Editor', 'DotEnable', DotEnable);
config.WriteBool('Editor', 'DrawPanelSize', DrawPanelSize);
config.WriteInt('Editor', 'BackColor', BackColor);
config.WriteInt('Editor', 'PreviewColor', PreviewColor);
+ config.WriteBool('Editor', 'UseCheckerboard', UseCheckerboard);
config.WriteInt('Editor', 'Scale', cbScale.ItemIndex);
config.WriteInt('Editor', 'RecentCount', re);
config.WriteStr('Editor', 'Language', gLanguage);
MainForm.RefreshRecentMenu();
end;
- config.SaveFile(EditorDir+'/Editor.cfg');
+ config.SaveFile(EditorDir+'Editor.cfg');
config.Free();
Close();
end;