JVCL components removed, XP look turned off (hmm)

This commit is contained in:
zueuk 2007-10-28 13:16:27 +00:00
parent c6f11999b0
commit 9c2b72b4b9
4 changed files with 2106 additions and 992 deletions

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@ uses
ExtDlgs, AppEvnts, ShellAPI, Registry, ExtDlgs, AppEvnts, ShellAPI, Registry,
Global, Xform, XFormMan, ControlPoint, CMap, Global, Xform, XFormMan, ControlPoint, CMap,
RenderThread, RenderTypes, RenderThread, RenderTypes,
LibXmlParser, LibXmlComps, PngImage, XPMan; LibXmlParser, LibXmlComps, PngImage;
const const
PixelCountMax = 32768; PixelCountMax = 32768;
@ -42,7 +42,7 @@ const
RS_XO = 2; RS_XO = 2;
RS_VO = 3; RS_VO = 3;
AppVersionString = 'Apophysis 2.06d beta'; AppVersionString = 'Apophysis 2.07 beta';
type type
TMouseMoveState = (msUsual, msZoomWindow, msZoomOutWindow, msZoomWindowMove, TMouseMoveState = (msUsual, msZoomWindow, msZoomOutWindow, msZoomWindowMove,
@ -184,7 +184,6 @@ type
tbShowTrace: TToolButton; tbShowTrace: TToolButton;
ToolButton2: TToolButton; ToolButton2: TToolButton;
mnuRenderAll: TMenuItem; mnuRenderAll: TMenuItem;
XPManifest1: TXPManifest;
procedure tbzoomoutwindowClick(Sender: TObject); procedure tbzoomoutwindowClick(Sender: TObject);
procedure mnuimageClick(Sender: TObject); procedure mnuimageClick(Sender: TObject);
procedure mnuExitClick(Sender: TObject); procedure mnuExitClick(Sender: TObject);
@ -2483,6 +2482,7 @@ begin
Screen.Cursors[crEditRotate] := LoadCursor(HInstance, 'ROTATE_WB'); Screen.Cursors[crEditRotate] := LoadCursor(HInstance, 'ROTATE_WB');
Screen.Cursors[crEditScale] := LoadCursor(HInstance, 'SCALE_WB'); Screen.Cursors[crEditScale] := LoadCursor(HInstance, 'SCALE_WB');
(*
{$IFDEF DEBUG} {$IFDEF DEBUG}
// Enable raw mode (default mode uses stack frames which aren't always generated by the compiler) // Enable raw mode (default mode uses stack frames which aren't always generated by the compiler)
Include(JclStackTrackingOptions, stRawMode); Include(JclStackTrackingOptions, stRawMode);
@ -2493,12 +2493,12 @@ begin
JclStartExceptionTracking; JclStartExceptionTracking;
Application.OnException := AppException; Application.OnException := AppException;
{$ENDIF} {$ENDIF}
*)
FMouseMoveState := msDrag; // --Z-- was: msZoomWindow; FMouseMoveState := msDrag;
LimitVibrancy := True; LimitVibrancy := True;
Favorites := TStringList.Create; Favorites := TStringList.Create;
GetScripts; GetScripts;
// Compatibility := 1; // for Drave's compatibility
Randomize; Randomize;
MainSeed := Random(1234567890); MainSeed := Random(1234567890);
maincp := TControlPoint.Create; maincp := TControlPoint.Create;

View File

@ -44,7 +44,7 @@ object OptionsForm: TOptionsForm
Top = 8 Top = 8
Width = 451 Width = 451
Height = 265 Height = 265
ActivePage = EditorPage ActivePage = GeneralPage
TabOrder = 0 TabOrder = 0
TabStop = False TabStop = False
object GeneralPage: TTabSheet object GeneralPage: TTabSheet
@ -306,13 +306,24 @@ object OptionsForm: TOptionsForm
Height = 13 Height = 13
Caption = 'Helpers' Caption = 'Helpers'
end end
object pnlBackColor: TPanel
Left = 8
Top = 104
Width = 62
Height = 17
Cursor = crHandPoint
BevelOuter = bvLowered
Color = clBlack
TabOrder = 0
OnClick = pnlBackColorClick
end
object chkUseXFormColor: TCheckBox object chkUseXFormColor: TCheckBox
Left = 8 Left = 8
Top = 16 Top = 16
Width = 129 Width = 129
Height = 17 Height = 17
Caption = 'Use transform color' Caption = 'Use transform color'
TabOrder = 0 TabOrder = 4
end end
object chkHelpers: TCheckBox object chkHelpers: TCheckBox
Left = 8 Left = 8
@ -322,7 +333,51 @@ object OptionsForm: TOptionsForm
Caption = 'Helper lines' Caption = 'Helper lines'
Checked = True Checked = True
State = cbChecked State = cbChecked
TabOrder = 6
end
object pnlReference: TPanel
Left = 8
Top = 144
Width = 62
Height = 17
Cursor = crHandPoint
BevelOuter = bvLowered
Color = clGray
TabOrder = 1 TabOrder = 1
OnClick = pnlReferenceClick
end
object pnlGridColor1: TPanel
Left = 75
Top = 104
Width = 29
Height = 17
Cursor = crHandPoint
BevelOuter = bvLowered
Color = clBlack
TabOrder = 2
OnClick = pnlGridColor1Click
end
object pnlGridColor2: TPanel
Left = 108
Top = 104
Width = 29
Height = 17
Cursor = crHandPoint
BevelOuter = bvLowered
Color = clBlack
TabOrder = 3
OnClick = pnlGridColor2Click
end
object pnlHelpersColor: TPanel
Left = 75
Top = 144
Width = 62
Height = 17
Cursor = crHandPoint
BevelOuter = bvLowered
Color = clGray
TabOrder = 5
OnClick = pnlHelpersColorClick
end end
object chkShowAllXforms: TCheckBox object chkShowAllXforms: TCheckBox
Left = 8 Left = 8
@ -332,49 +387,9 @@ object OptionsForm: TOptionsForm
Caption = 'Always show both type of transforms' Caption = 'Always show both type of transforms'
Checked = True Checked = True
State = cbChecked State = cbChecked
TabOrder = 2 TabOrder = 7
WordWrap = True WordWrap = True
end end
object cbtnReference: TJvColorButton
Left = 8
Top = 141
Width = 63
OtherCaption = '&Other...'
Options = [cdFullOpen]
OnChange = cbtnReferenceChange
TabOrder = 3
TabStop = False
end
object cbtnGrid1: TJvColorButton
Left = 73
Top = 102
Width = 34
OtherCaption = '&Other...'
Options = [cdFullOpen]
OnChange = cbtnGrid1Change
TabOrder = 4
TabStop = False
end
object cbtnGrid2: TJvColorButton
Left = 108
Top = 102
Width = 34
OtherCaption = '&Other...'
Options = [cdFullOpen]
OnChange = cbtnGrid2Change
TabOrder = 5
TabStop = False
end
object cbtnHelpers: TJvColorButton
Left = 73
Top = 142
Width = 69
OtherCaption = '&Other...'
Options = [cdFullOpen]
OnChange = cbtnHelpersChange
TabOrder = 6
TabStop = False
end
end end
object rgReferenceMode: TRadioGroup object rgReferenceMode: TRadioGroup
Left = 160 Left = 160
@ -428,16 +443,6 @@ object OptionsForm: TOptionsForm
'Reset value to zero, if zero set to "1"') 'Reset value to zero, if zero set to "1"')
TabOrder = 3 TabOrder = 3
end end
object cbtnBackColor: TJvColorButton
Left = 16
Top = 106
Width = 63
OtherCaption = '&Other...'
Options = [cdFullOpen]
OnChange = cbtnBackColorChange
TabOrder = 4
TabStop = False
end
end end
object DisplayPage: TTabSheet object DisplayPage: TTabSheet
Caption = 'Display' Caption = 'Display'

View File

@ -24,7 +24,7 @@ interface
uses uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls, ExtCtrls, Buttons, Registry, Mask, CheckLst, StdCtrls, ComCtrls, ExtCtrls, Buttons, Registry, Mask, CheckLst,
MMSystem, JvExControls, JvColorBox, JvColorButton; MMSystem;
type type
TOptionsForm = class(TForm) TOptionsForm = class(TForm)
@ -189,8 +189,13 @@ type
Label41: TLabel; Label41: TLabel;
Label42: TLabel; Label42: TLabel;
Label43: TLabel; Label43: TLabel;
pnlBackColor: TPanel;
chkUseXFormColor: TCheckBox; chkUseXFormColor: TCheckBox;
chkHelpers: TCheckBox; chkHelpers: TCheckBox;
pnlReference: TPanel;
pnlGridColor1: TPanel;
pnlGridColor2: TPanel;
pnlHelpersColor: TPanel;
rgReferenceMode: TRadioGroup; rgReferenceMode: TRadioGroup;
chkPlaysound: TCheckBox; chkPlaysound: TCheckBox;
btnPlay: TSpeedButton; btnPlay: TSpeedButton;
@ -216,11 +221,6 @@ type
btnGradientsFile: TSpeedButton; btnGradientsFile: TSpeedButton;
chkConfirmExit: TCheckBox; chkConfirmExit: TCheckBox;
chkConfirmStopRender: TCheckBox; chkConfirmStopRender: TCheckBox;
cbtnBackColor: TJvColorButton;
cbtnReference: TJvColorButton;
cbtnGrid1: TJvColorButton;
cbtnGrid2: TJvColorButton;
cbtnHelpers: TJvColorButton;
procedure btnCancelClick(Sender: TObject); procedure btnCancelClick(Sender: TObject);
procedure FormShow(Sender: TObject); procedure FormShow(Sender: TObject);
procedure btnOKClick(Sender: TObject); procedure btnOKClick(Sender: TObject);
@ -245,14 +245,14 @@ type
procedure btnRendererClick(Sender: TObject); procedure btnRendererClick(Sender: TObject);
procedure SpeedButton2Click(Sender: TObject); procedure SpeedButton2Click(Sender: TObject);
procedure FormCreate(Sender: TObject); procedure FormCreate(Sender: TObject);
procedure pnlBackColorClick(Sender: TObject);
procedure pnlReferenceClick(Sender: TObject);
procedure pnlGridColor1Click(Sender: TObject);
procedure pnlGridColor2Click(Sender: TObject);
procedure pnlHelpersColorClick(Sender: TObject);
procedure btnBrowseSoundClick(Sender: TObject); procedure btnBrowseSoundClick(Sender: TObject);
procedure btnPlayClick(Sender: TObject); procedure btnPlayClick(Sender: TObject);
procedure btnGradientsFileClick(Sender: TObject); procedure btnGradientsFileClick(Sender: TObject);
procedure cbtnBackColorChange(Sender: TObject);
procedure cbtnReferenceChange(Sender: TObject);
procedure cbtnGrid1Change(Sender: TObject);
procedure cbtnGrid2Change(Sender: TObject);
procedure cbtnHelpersChange(Sender: TObject);
private private
{ Private declarations } { Private declarations }
@ -347,10 +347,10 @@ begin
txtMediumQuality.Text := FloatToStr(prevMediumQuality); txtMediumQuality.Text := FloatToStr(prevMediumQuality);
txtHighQuality.Text := FloatToStr(prevHighQuality); txtHighQuality.Text := FloatToStr(prevHighQuality);
cbtnBackColor.Color := TColor(EditorBkgColor); pnlBackColor.Color := TColor(EditorBkgColor);
cbtnGrid1.Color := GridColor1; pnlGridColor1.Color := GridColor1;
cbtnGrid2.Color := GridColor2; pnlGridColor2.Color := GridColor2;
cbtnReference.Color := TColor(ReferenceTriangleColor); pnlReference.color := TColor(ReferenceTriangleColor);
rgTransparency.ItemIndex := PNGTransparency; rgTransparency.ItemIndex := PNGTransparency;
chkShowTransparency.Checked := ShowTransparency; chkShowTransparency.Checked := ShowTransparency;
@ -730,29 +730,54 @@ begin
end; end;
end; end;
procedure TOptionsForm.cbtnBackColorChange(Sender: TObject); procedure TOptionsForm.pnlBackColorClick(Sender: TObject);
begin begin
EditorBkgColor := Integer(cbtnBackColor.Color); AdjustForm.ColorDialog.Color := pnlBackColor.Color;
if AdjustForm.ColorDialog.Execute then
begin
pnlBackColor.Color := AdjustForm.ColorDialog.Color;
EditorBkgColor := Integer(pnlBackColor.color);
end;
end; end;
procedure TOptionsForm.cbtnReferenceChange(Sender: TObject); procedure TOptionsForm.pnlReferenceClick(Sender: TObject);
begin begin
ReferenceTriangleColor := Integer(cbtnReference.Color); AdjustForm.ColorDialog.Color := pnlReference.Color;
if AdjustForm.ColorDialog.Execute then
begin
pnlReference.Color := AdjustForm.ColorDialog.Color;
ReferenceTriangleColor := Integer(pnlReference.color);
end;
end; end;
procedure TOptionsForm.cbtnGrid1Change(Sender: TObject); procedure TOptionsForm.pnlGridColor1Click(Sender: TObject);
begin begin
GridColor1 := Integer(cbtnGrid1.Color); AdjustForm.ColorDialog.Color := pnlGridColor1.Color;
if AdjustForm.ColorDialog.Execute then
begin
pnlGridColor1.Color := AdjustForm.ColorDialog.Color;
GridColor1 := Integer(pnlGridColor1.color);
end;
end; end;
procedure TOptionsForm.cbtnGrid2Change(Sender: TObject); procedure TOptionsForm.pnlGridColor2Click(Sender: TObject);
begin begin
GridColor2 := Integer(cbtnGrid2.Color); AdjustForm.ColorDialog.Color := pnlGridColor2.Color;
if AdjustForm.ColorDialog.Execute then
begin
pnlGridColor2.Color := AdjustForm.ColorDialog.Color;
GridColor2 := Integer(pnlGridColor2.color);
end;
end; end;
procedure TOptionsForm.cbtnHelpersChange(Sender: TObject); procedure TOptionsForm.pnlHelpersColorClick(Sender: TObject);
begin begin
HelpersColor := Integer(cbtnHelpers.Color); AdjustForm.ColorDialog.Color := pnlHelpersColor.Color;
if AdjustForm.ColorDialog.Execute then
begin
pnlHelpersColor.Color := AdjustForm.ColorDialog.Color;
HelpersColor := Integer(pnlHelpersColor.color);
end;
end; end;
procedure TOptionsForm.btnBrowseSoundClick(Sender: TObject); procedure TOptionsForm.btnBrowseSoundClick(Sender: TObject);