You've already forked lazarus-ccr
Type Library Editor : Options Editor for customization.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4189 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -33,7 +33,7 @@
|
|||||||
<PackageName Value="SynEdit"/>
|
<PackageName Value="SynEdit"/>
|
||||||
</Item2>
|
</Item2>
|
||||||
</RequiredPackages>
|
</RequiredPackages>
|
||||||
<Units Count="24">
|
<Units Count="25">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="typ_lib_edtr.lpr"/>
|
<Filename Value="typ_lib_edtr.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -44,7 +44,6 @@
|
|||||||
<ComponentName Value="fWstTypeLibraryEdit"/>
|
<ComponentName Value="fWstTypeLibraryEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uwsttypelibraryedit"/>
|
|
||||||
</Unit1>
|
</Unit1>
|
||||||
<Unit2>
|
<Unit2>
|
||||||
<Filename Value="uabout.pas"/>
|
<Filename Value="uabout.pas"/>
|
||||||
@ -52,7 +51,6 @@
|
|||||||
<ComponentName Value="fAbout"/>
|
<ComponentName Value="fAbout"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uabout"/>
|
|
||||||
</Unit2>
|
</Unit2>
|
||||||
<Unit3>
|
<Unit3>
|
||||||
<Filename Value="ufenumedit.pas"/>
|
<Filename Value="ufenumedit.pas"/>
|
||||||
@ -65,17 +63,14 @@
|
|||||||
<Unit4>
|
<Unit4>
|
||||||
<Filename Value="view_helper.pas"/>
|
<Filename Value="view_helper.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="view_helper"/>
|
|
||||||
</Unit4>
|
</Unit4>
|
||||||
<Unit5>
|
<Unit5>
|
||||||
<Filename Value="..\ws_helper\source_utils.pas"/>
|
<Filename Value="..\ws_helper\source_utils.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="source_utils"/>
|
|
||||||
</Unit5>
|
</Unit5>
|
||||||
<Unit6>
|
<Unit6>
|
||||||
<Filename Value="edit_helper.pas"/>
|
<Filename Value="edit_helper.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="edit_helper"/>
|
|
||||||
</Unit6>
|
</Unit6>
|
||||||
<Unit7>
|
<Unit7>
|
||||||
<Filename Value="ufclassedit.pas"/>
|
<Filename Value="ufclassedit.pas"/>
|
||||||
@ -83,7 +78,6 @@
|
|||||||
<ComponentName Value="fClassEdit"/>
|
<ComponentName Value="fClassEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="ufclassedit"/>
|
|
||||||
</Unit7>
|
</Unit7>
|
||||||
<Unit8>
|
<Unit8>
|
||||||
<Filename Value="ufpropedit.pas"/>
|
<Filename Value="ufpropedit.pas"/>
|
||||||
@ -91,7 +85,6 @@
|
|||||||
<ComponentName Value="fPropEdit"/>
|
<ComponentName Value="fPropEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="ufpropedit"/>
|
|
||||||
</Unit8>
|
</Unit8>
|
||||||
<Unit9>
|
<Unit9>
|
||||||
<Filename Value="uinterfaceedit.pas"/>
|
<Filename Value="uinterfaceedit.pas"/>
|
||||||
@ -99,7 +92,6 @@
|
|||||||
<ComponentName Value="fInterfaceEdit"/>
|
<ComponentName Value="fInterfaceEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uinterfaceedit"/>
|
|
||||||
</Unit9>
|
</Unit9>
|
||||||
<Unit10>
|
<Unit10>
|
||||||
<Filename Value="udm.pas"/>
|
<Filename Value="udm.pas"/>
|
||||||
@ -107,17 +99,14 @@
|
|||||||
<ComponentName Value="DM"/>
|
<ComponentName Value="DM"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="DataModule"/>
|
<ResourceBaseClass Value="DataModule"/>
|
||||||
<UnitName Value="udm"/>
|
|
||||||
</Unit10>
|
</Unit10>
|
||||||
<Unit11>
|
<Unit11>
|
||||||
<Filename Value="..\ws_helper\pascal_parser_intf.pas"/>
|
<Filename Value="..\ws_helper\pascal_parser_intf.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="pascal_parser_intf"/>
|
|
||||||
</Unit11>
|
</Unit11>
|
||||||
<Unit12>
|
<Unit12>
|
||||||
<Filename Value="..\ws_helper\generator.pas"/>
|
<Filename Value="..\ws_helper\generator.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="generator"/>
|
|
||||||
</Unit12>
|
</Unit12>
|
||||||
<Unit13>
|
<Unit13>
|
||||||
<Filename Value="uprocedit.pas"/>
|
<Filename Value="uprocedit.pas"/>
|
||||||
@ -125,12 +114,10 @@
|
|||||||
<ComponentName Value="fProcEdit"/>
|
<ComponentName Value="fProcEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uprocedit"/>
|
|
||||||
</Unit13>
|
</Unit13>
|
||||||
<Unit14>
|
<Unit14>
|
||||||
<Filename Value="common_gui_utils.pas"/>
|
<Filename Value="common_gui_utils.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="common_gui_utils"/>
|
|
||||||
</Unit14>
|
</Unit14>
|
||||||
<Unit15>
|
<Unit15>
|
||||||
<Filename Value="uargedit.pas"/>
|
<Filename Value="uargedit.pas"/>
|
||||||
@ -138,21 +125,19 @@
|
|||||||
<ComponentName Value="fArgEdit"/>
|
<ComponentName Value="fArgEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uargedit"/>
|
|
||||||
</Unit15>
|
</Unit15>
|
||||||
<Unit16>
|
<Unit16>
|
||||||
<Filename Value="umoduleedit.pas"/>
|
<Filename Value="umoduleedit.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ComponentName Value="fModuleEdit"/>
|
<ComponentName Value="fModuleEdit"/>
|
||||||
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="umoduleedit"/>
|
|
||||||
</Unit16>
|
</Unit16>
|
||||||
<Unit17>
|
<Unit17>
|
||||||
<Filename Value="ubindingedit.pas"/>
|
<Filename Value="ubindingedit.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ComponentName Value="fBindingEdit"/>
|
<ComponentName Value="fBindingEdit"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="ubindingedit"/>
|
|
||||||
</Unit17>
|
</Unit17>
|
||||||
<Unit18>
|
<Unit18>
|
||||||
<Filename Value="ufrmsaveoption.pas"/>
|
<Filename Value="ufrmsaveoption.pas"/>
|
||||||
@ -160,7 +145,6 @@
|
|||||||
<ComponentName Value="frmSaveOptions"/>
|
<ComponentName Value="frmSaveOptions"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="ufrmsaveoption"/>
|
|
||||||
</Unit18>
|
</Unit18>
|
||||||
<Unit19>
|
<Unit19>
|
||||||
<Filename Value="ufarrayedit.pas"/>
|
<Filename Value="ufarrayedit.pas"/>
|
||||||
@ -168,7 +152,6 @@
|
|||||||
<ComponentName Value="fArrayEdit"/>
|
<ComponentName Value="fArrayEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="ufarrayedit"/>
|
|
||||||
</Unit19>
|
</Unit19>
|
||||||
<Unit20>
|
<Unit20>
|
||||||
<Filename Value="uftypealiasedit.pas"/>
|
<Filename Value="uftypealiasedit.pas"/>
|
||||||
@ -176,7 +159,6 @@
|
|||||||
<ComponentName Value="fTypeAliasEdit"/>
|
<ComponentName Value="fTypeAliasEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uftypealiasedit"/>
|
|
||||||
</Unit20>
|
</Unit20>
|
||||||
<Unit21>
|
<Unit21>
|
||||||
<Filename Value="ufrecordedit.pas"/>
|
<Filename Value="ufrecordedit.pas"/>
|
||||||
@ -184,18 +166,21 @@
|
|||||||
<ComponentName Value="fRecordEdit"/>
|
<ComponentName Value="fRecordEdit"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="ufrecordedit"/>
|
|
||||||
</Unit21>
|
</Unit21>
|
||||||
<Unit22>
|
<Unit22>
|
||||||
<Filename Value="..\ws_helper\wsdl_generator.pas"/>
|
<Filename Value="..\ws_helper\wsdl_generator.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="wsdl_generator"/>
|
|
||||||
</Unit22>
|
</Unit22>
|
||||||
<Unit23>
|
<Unit23>
|
||||||
<Filename Value="..\ws_helper\xsd_parser.pas"/>
|
<Filename Value="..\ws_helper\xsd_parser.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="xsd_parser"/>
|
|
||||||
</Unit23>
|
</Unit23>
|
||||||
|
<Unit24>
|
||||||
|
<Filename Value="ueditoptions.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<ComponentName Value="fEditOptions"/>
|
||||||
|
<ResourceBaseClass Value="Form"/>
|
||||||
|
</Unit24>
|
||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
@ -225,11 +210,7 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CompilerMessages>
|
|
||||||
<UseMsgFile Value="True"/>
|
|
||||||
</CompilerMessages>
|
|
||||||
<CustomOptions Value="-dWST_HANDLE_DOC"/>
|
<CustomOptions Value="-dWST_HANDLE_DOC"/>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
|
||||||
</Other>
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
</CONFIG>
|
</CONFIG>
|
||||||
|
@ -12,7 +12,7 @@ uses
|
|||||||
edit_helper, ufclassedit, ufpropedit, uinterfaceedit, udm,
|
edit_helper, ufclassedit, ufpropedit, uinterfaceedit, udm,
|
||||||
pascal_parser_intf, uprocedit, common_gui_utils, uargedit,
|
pascal_parser_intf, uprocedit, common_gui_utils, uargedit,
|
||||||
umoduleedit, ubindingedit, ufrmsaveoption, ufarrayedit, generator,
|
umoduleedit, ubindingedit, ufrmsaveoption, ufarrayedit, generator,
|
||||||
uftypealiasedit, ufrecordedit, wsdl_generator, xsd_parser;
|
uftypealiasedit, ufrecordedit, wsdl_generator, xsd_parser, ueditoptions;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
|
@ -5,10 +5,14 @@ unit udm;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LResources, Forms, Controls, Dialogs, IniFiles;
|
Classes, SysUtils, LResources, Forms, Controls, Dialogs, IniFiles,
|
||||||
|
pascal_parser_intf;
|
||||||
|
|
||||||
{$IFNDEF WST_IDE}
|
|
||||||
const
|
const
|
||||||
|
SECTION_OPTIONS = 'Options';
|
||||||
|
CASE_SENSITIVE = 'CaseSensitive';
|
||||||
|
STRING_MAPPING = 'StringMapping';
|
||||||
|
{$IFNDEF WST_IDE}
|
||||||
sLAST_PATH = 'LastPath';
|
sLAST_PATH = 'LastPath';
|
||||||
{$ENDIF WST_IDE}
|
{$ENDIF WST_IDE}
|
||||||
|
|
||||||
@ -23,12 +27,20 @@ type
|
|||||||
FOptions : TMemIniFile;
|
FOptions : TMemIniFile;
|
||||||
function GetOtions: TCustomIniFile;
|
function GetOtions: TCustomIniFile;
|
||||||
{$ENDIF WST_IDE}
|
{$ENDIF WST_IDE}
|
||||||
|
private
|
||||||
|
FXsdStringMaping : TXSDStringMaping;
|
||||||
|
FCaseSensitive : Boolean;
|
||||||
|
private
|
||||||
|
procedure LoadOptions(AStore : TCustomIniFile);
|
||||||
|
procedure SaveOptions(AStore : TCustomIniFile);
|
||||||
public
|
public
|
||||||
constructor Create(AOwner : TComponent);override;
|
constructor Create(AOwner : TComponent);override;
|
||||||
destructor Destroy();override;
|
destructor Destroy();override;
|
||||||
{$IFNDEF WST_IDE}
|
{$IFNDEF WST_IDE}
|
||||||
property Options : TCustomIniFile read GetOtions;
|
property Options : TCustomIniFile read GetOtions;
|
||||||
{$ENDIF WST_IDE}
|
{$ENDIF WST_IDE}
|
||||||
|
property XsdStringMaping : TXSDStringMaping read FXsdStringMaping write FXsdStringMaping default xsmUnicodeString;
|
||||||
|
property CaseSensitive : Boolean read FCaseSensitive write FCaseSensitive default CASE_SENSITIVE_DEFAULT;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -47,11 +59,30 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$ENDIF WST_IDE}
|
{$ENDIF WST_IDE}
|
||||||
|
|
||||||
|
procedure TDM.LoadOptions(AStore: TCustomIniFile);
|
||||||
|
var
|
||||||
|
i : Integer;
|
||||||
|
begin
|
||||||
|
i := AStore.ReadInteger(SECTION_OPTIONS,STRING_MAPPING,Ord(XsdStringMaping));
|
||||||
|
if (i >= Ord(Low(TXSDStringMaping))) and (i <= Ord(High(TXSDStringMaping))) then
|
||||||
|
XsdStringMaping := TXSDStringMaping(i);
|
||||||
|
CaseSensitive := AStore.ReadBool(SECTION_OPTIONS,CASE_SENSITIVE,CaseSensitive);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TDM.SaveOptions(AStore: TCustomIniFile);
|
||||||
|
begin
|
||||||
|
AStore.WriteInteger(SECTION_OPTIONS,STRING_MAPPING,Ord(XsdStringMaping));
|
||||||
|
AStore.WriteBool(SECTION_OPTIONS,CASE_SENSITIVE,CaseSensitive);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TDM.Create(AOwner: TComponent);
|
constructor TDM.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited Create(AOwner);
|
inherited Create(AOwner);
|
||||||
|
FXsdStringMaping := xsmUnicodeString;
|
||||||
|
FCaseSensitive := CASE_SENSITIVE_DEFAULT;
|
||||||
{$IFNDEF WST_IDE}
|
{$IFNDEF WST_IDE}
|
||||||
FOptions := TMemIniFile.Create(ChangeFileExt(GetAppConfigFile(False),'.ini'));
|
FOptions := TMemIniFile.Create(ChangeFileExt(GetAppConfigFile(False),'.ini'));
|
||||||
|
LoadOptions(FOptions);
|
||||||
{$ENDIF WST_IDE}
|
{$ENDIF WST_IDE}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -59,6 +90,7 @@ destructor TDM.Destroy();
|
|||||||
begin
|
begin
|
||||||
{$IFNDEF WST_IDE}
|
{$IFNDEF WST_IDE}
|
||||||
if ( FOptions <> nil ) then begin
|
if ( FOptions <> nil ) then begin
|
||||||
|
SaveOptions(FOptions);
|
||||||
if not DirectoryExists(FOptions.FileName) then
|
if not DirectoryExists(FOptions.FileName) then
|
||||||
ForceDirectories(ExtractFileDir(FOptions.FileName));
|
ForceDirectories(ExtractFileDir(FOptions.FileName));
|
||||||
FOptions.UpdateFile();
|
FOptions.UpdateFile();
|
||||||
|
99
wst/trunk/type_lib_edtr/ueditoptions.lfm
Normal file
99
wst/trunk/type_lib_edtr/ueditoptions.lfm
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
object fEditOptions: TfEditOptions
|
||||||
|
Left = 755
|
||||||
|
Height = 233
|
||||||
|
Top = 221
|
||||||
|
Width = 448
|
||||||
|
BorderStyle = bsSizeToolWin
|
||||||
|
Caption = 'Options'
|
||||||
|
ClientHeight = 233
|
||||||
|
ClientWidth = 448
|
||||||
|
OnCreate = FormCreate
|
||||||
|
Position = poDesktopCenter
|
||||||
|
LCLVersion = '1.4.1.0'
|
||||||
|
object Panel1: TPanel
|
||||||
|
Left = 0
|
||||||
|
Height = 50
|
||||||
|
Top = 183
|
||||||
|
Width = 448
|
||||||
|
Align = alBottom
|
||||||
|
ClientHeight = 50
|
||||||
|
ClientWidth = 448
|
||||||
|
TabOrder = 0
|
||||||
|
object Button1: TButton
|
||||||
|
Left = 358
|
||||||
|
Height = 25
|
||||||
|
Top = 14
|
||||||
|
Width = 75
|
||||||
|
Anchors = [akTop, akRight]
|
||||||
|
BorderSpacing.InnerBorder = 4
|
||||||
|
Cancel = True
|
||||||
|
Caption = 'Cancel'
|
||||||
|
ModalResult = 2
|
||||||
|
TabOrder = 0
|
||||||
|
end
|
||||||
|
object Button2: TButton
|
||||||
|
Left = 270
|
||||||
|
Height = 25
|
||||||
|
Top = 14
|
||||||
|
Width = 75
|
||||||
|
Action = actOK
|
||||||
|
Anchors = [akTop, akRight]
|
||||||
|
BorderSpacing.InnerBorder = 4
|
||||||
|
Default = True
|
||||||
|
TabOrder = 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
object Panel2: TPanel
|
||||||
|
Left = 0
|
||||||
|
Height = 183
|
||||||
|
Top = 0
|
||||||
|
Width = 448
|
||||||
|
Align = alClient
|
||||||
|
ClientHeight = 183
|
||||||
|
ClientWidth = 448
|
||||||
|
TabOrder = 1
|
||||||
|
object edtStringType: TRadioGroup
|
||||||
|
Left = 16
|
||||||
|
Height = 105
|
||||||
|
Top = 16
|
||||||
|
Width = 416
|
||||||
|
Anchors = [akTop, akLeft, akRight]
|
||||||
|
AutoFill = True
|
||||||
|
Caption = ' String Type '
|
||||||
|
ChildSizing.LeftRightSpacing = 6
|
||||||
|
ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
|
||||||
|
ChildSizing.EnlargeVertical = crsHomogenousChildResize
|
||||||
|
ChildSizing.ShrinkHorizontal = crsScaleChilds
|
||||||
|
ChildSizing.ShrinkVertical = crsScaleChilds
|
||||||
|
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
||||||
|
ChildSizing.ControlsPerLine = 1
|
||||||
|
ClientHeight = 87
|
||||||
|
ClientWidth = 412
|
||||||
|
ItemIndex = 0
|
||||||
|
Items.Strings = (
|
||||||
|
'UnicodeString'
|
||||||
|
'String'
|
||||||
|
)
|
||||||
|
TabOrder = 0
|
||||||
|
end
|
||||||
|
object edtCaseSensitive: TCheckBox
|
||||||
|
Left = 16
|
||||||
|
Height = 17
|
||||||
|
Top = 147
|
||||||
|
Width = 90
|
||||||
|
Caption = 'Case Sensitive'
|
||||||
|
Checked = True
|
||||||
|
State = cbChecked
|
||||||
|
TabOrder = 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
object AL: TActionList
|
||||||
|
left = 248
|
||||||
|
top = 80
|
||||||
|
object actOK: TAction
|
||||||
|
Caption = 'OK'
|
||||||
|
OnExecute = actOKExecute
|
||||||
|
OnUpdate = actOKUpdate
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
71
wst/trunk/type_lib_edtr/ueditoptions.pas
Normal file
71
wst/trunk/type_lib_edtr/ueditoptions.pas
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
unit ueditoptions;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ActnList,
|
||||||
|
ExtCtrls, StdCtrls;
|
||||||
|
|
||||||
|
type
|
||||||
|
|
||||||
|
{ TfEditOptions }
|
||||||
|
|
||||||
|
TfEditOptions = class(TForm)
|
||||||
|
actOK: TAction;
|
||||||
|
AL: TActionList;
|
||||||
|
Button1: TButton;
|
||||||
|
Button2: TButton;
|
||||||
|
edtCaseSensitive: TCheckBox;
|
||||||
|
Panel1: TPanel;
|
||||||
|
Panel2: TPanel;
|
||||||
|
edtStringType: TRadioGroup;
|
||||||
|
procedure actOKExecute(Sender: TObject);
|
||||||
|
procedure actOKUpdate(Sender: TObject);
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ private declarations }
|
||||||
|
public
|
||||||
|
{ public declarations }
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
fEditOptions: TfEditOptions;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
uses
|
||||||
|
pascal_parser_intf, udm;
|
||||||
|
|
||||||
|
{$R *.lfm}
|
||||||
|
|
||||||
|
{ TfEditOptions }
|
||||||
|
|
||||||
|
procedure TfEditOptions.actOKExecute(Sender: TObject);
|
||||||
|
var
|
||||||
|
i : Integer;
|
||||||
|
begin
|
||||||
|
DM.CaseSensitive := edtCaseSensitive.Checked;
|
||||||
|
i := edtStringType.ItemIndex;
|
||||||
|
if (i >= Ord(Low(TXSDStringMaping))) and (i <= Ord(High(TXSDStringMaping))) then
|
||||||
|
DM.XsdStringMaping := TXSDStringMaping(i);
|
||||||
|
ModalResult := mrOk;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfEditOptions.actOKUpdate(Sender: TObject);
|
||||||
|
var
|
||||||
|
i : Integer;
|
||||||
|
begin
|
||||||
|
i := edtStringType.ItemIndex;
|
||||||
|
TCustomAction(Sender).Enabled :=
|
||||||
|
(i >= Ord(Low(TXSDStringMaping))) and (i <= Ord(High(TXSDStringMaping)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfEditOptions.FormCreate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtCaseSensitive.Checked := DM.CaseSensitive;
|
||||||
|
edtStringType.ItemIndex := Ord(DM.XsdStringMaping);
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
||||||
Left = 287
|
Left = 311
|
||||||
Height = 644
|
Height = 644
|
||||||
Top = 196
|
Top = 82
|
||||||
Width = 833
|
Width = 833
|
||||||
AllowDropFiles = True
|
AllowDropFiles = True
|
||||||
Caption = '[Web Services Toolkit ] Type Library Editor'
|
Caption = '[Web Services Toolkit ] Type Library Editor'
|
||||||
@ -12,7 +12,7 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
OnDropFiles = FormDropFiles
|
OnDropFiles = FormDropFiles
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poDesktopCenter
|
Position = poDesktopCenter
|
||||||
LCLVersion = '1.2.5.0'
|
LCLVersion = '1.4.1.0'
|
||||||
object SB: TStatusBar
|
object SB: TStatusBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 20
|
Height = 20
|
||||||
@ -503,7 +503,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
SelectedColor.FrameEdges = sfeAround
|
|
||||||
SelectedColor.BackPriority = 50
|
SelectedColor.BackPriority = 50
|
||||||
SelectedColor.ForePriority = 50
|
SelectedColor.ForePriority = 50
|
||||||
SelectedColor.FramePriority = 50
|
SelectedColor.FramePriority = 50
|
||||||
@ -511,23 +510,17 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
SelectedColor.ItalicPriority = 50
|
SelectedColor.ItalicPriority = 50
|
||||||
SelectedColor.UnderlinePriority = 50
|
SelectedColor.UnderlinePriority = 50
|
||||||
SelectedColor.StrikeOutPriority = 50
|
SelectedColor.StrikeOutPriority = 50
|
||||||
IncrementColor.FrameEdges = sfeAround
|
|
||||||
HighlightAllColor.FrameEdges = sfeAround
|
|
||||||
BracketHighlightStyle = sbhsBoth
|
BracketHighlightStyle = sbhsBoth
|
||||||
BracketMatchColor.Background = clNone
|
BracketMatchColor.Background = clNone
|
||||||
BracketMatchColor.Foreground = clNone
|
BracketMatchColor.Foreground = clNone
|
||||||
BracketMatchColor.FrameEdges = sfeAround
|
|
||||||
BracketMatchColor.Style = [fsBold]
|
BracketMatchColor.Style = [fsBold]
|
||||||
FoldedCodeColor.Background = clNone
|
FoldedCodeColor.Background = clNone
|
||||||
FoldedCodeColor.Foreground = clGray
|
FoldedCodeColor.Foreground = clGray
|
||||||
FoldedCodeColor.FrameColor = clGray
|
FoldedCodeColor.FrameColor = clGray
|
||||||
FoldedCodeColor.FrameEdges = sfeAround
|
|
||||||
MouseLinkColor.Background = clNone
|
MouseLinkColor.Background = clNone
|
||||||
MouseLinkColor.Foreground = clBlue
|
MouseLinkColor.Foreground = clBlue
|
||||||
MouseLinkColor.FrameEdges = sfeAround
|
|
||||||
LineHighlightColor.Background = clNone
|
LineHighlightColor.Background = clNone
|
||||||
LineHighlightColor.Foreground = clNone
|
LineHighlightColor.Foreground = clNone
|
||||||
LineHighlightColor.FrameEdges = sfeAround
|
|
||||||
inline TSynGutterPartList
|
inline TSynGutterPartList
|
||||||
object TSynGutterMarks
|
object TSynGutterMarks
|
||||||
Width = 24
|
Width = 24
|
||||||
@ -538,7 +531,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clBtnFace
|
MarkupInfo.Background = clBtnFace
|
||||||
MarkupInfo.Foreground = clNone
|
MarkupInfo.Foreground = clNone
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
DigitCount = 2
|
DigitCount = 2
|
||||||
ShowOnlyLineNumbersMultiplesOf = 1
|
ShowOnlyLineNumbersMultiplesOf = 1
|
||||||
ZeroStart = False
|
ZeroStart = False
|
||||||
@ -555,7 +547,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clWhite
|
MarkupInfo.Background = clWhite
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
end
|
end
|
||||||
object TSynGutterCodeFolding
|
object TSynGutterCodeFolding
|
||||||
MouseActions = <
|
MouseActions = <
|
||||||
@ -586,7 +577,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
MarkupInfo.Background = clNone
|
MarkupInfo.Background = clNone
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
MouseActionsExpanded = <
|
MouseActionsExpanded = <
|
||||||
item
|
item
|
||||||
ClickCount = ccAny
|
ClickCount = ccAny
|
||||||
@ -1048,7 +1038,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
SelectedColor.FrameEdges = sfeAround
|
|
||||||
SelectedColor.BackPriority = 50
|
SelectedColor.BackPriority = 50
|
||||||
SelectedColor.ForePriority = 50
|
SelectedColor.ForePriority = 50
|
||||||
SelectedColor.FramePriority = 50
|
SelectedColor.FramePriority = 50
|
||||||
@ -1056,23 +1045,17 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
SelectedColor.ItalicPriority = 50
|
SelectedColor.ItalicPriority = 50
|
||||||
SelectedColor.UnderlinePriority = 50
|
SelectedColor.UnderlinePriority = 50
|
||||||
SelectedColor.StrikeOutPriority = 50
|
SelectedColor.StrikeOutPriority = 50
|
||||||
IncrementColor.FrameEdges = sfeAround
|
|
||||||
HighlightAllColor.FrameEdges = sfeAround
|
|
||||||
BracketHighlightStyle = sbhsBoth
|
BracketHighlightStyle = sbhsBoth
|
||||||
BracketMatchColor.Background = clNone
|
BracketMatchColor.Background = clNone
|
||||||
BracketMatchColor.Foreground = clNone
|
BracketMatchColor.Foreground = clNone
|
||||||
BracketMatchColor.FrameEdges = sfeAround
|
|
||||||
BracketMatchColor.Style = [fsBold]
|
BracketMatchColor.Style = [fsBold]
|
||||||
FoldedCodeColor.Background = clNone
|
FoldedCodeColor.Background = clNone
|
||||||
FoldedCodeColor.Foreground = clGray
|
FoldedCodeColor.Foreground = clGray
|
||||||
FoldedCodeColor.FrameColor = clGray
|
FoldedCodeColor.FrameColor = clGray
|
||||||
FoldedCodeColor.FrameEdges = sfeAround
|
|
||||||
MouseLinkColor.Background = clNone
|
MouseLinkColor.Background = clNone
|
||||||
MouseLinkColor.Foreground = clBlue
|
MouseLinkColor.Foreground = clBlue
|
||||||
MouseLinkColor.FrameEdges = sfeAround
|
|
||||||
LineHighlightColor.Background = clNone
|
LineHighlightColor.Background = clNone
|
||||||
LineHighlightColor.Foreground = clNone
|
LineHighlightColor.Foreground = clNone
|
||||||
LineHighlightColor.FrameEdges = sfeAround
|
|
||||||
inline TSynGutterPartList
|
inline TSynGutterPartList
|
||||||
object TSynGutterMarks
|
object TSynGutterMarks
|
||||||
Width = 24
|
Width = 24
|
||||||
@ -1083,7 +1066,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clBtnFace
|
MarkupInfo.Background = clBtnFace
|
||||||
MarkupInfo.Foreground = clNone
|
MarkupInfo.Foreground = clNone
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
DigitCount = 2
|
DigitCount = 2
|
||||||
ShowOnlyLineNumbersMultiplesOf = 1
|
ShowOnlyLineNumbersMultiplesOf = 1
|
||||||
ZeroStart = False
|
ZeroStart = False
|
||||||
@ -1100,7 +1082,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clWhite
|
MarkupInfo.Background = clWhite
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
end
|
end
|
||||||
object TSynGutterCodeFolding
|
object TSynGutterCodeFolding
|
||||||
MouseActions = <
|
MouseActions = <
|
||||||
@ -1131,7 +1112,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
MarkupInfo.Background = clNone
|
MarkupInfo.Background = clNone
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
MouseActionsExpanded = <
|
MouseActionsExpanded = <
|
||||||
item
|
item
|
||||||
ClickCount = ccAny
|
ClickCount = ccAny
|
||||||
@ -1593,7 +1573,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
SelectedColor.FrameEdges = sfeAround
|
|
||||||
SelectedColor.BackPriority = 50
|
SelectedColor.BackPriority = 50
|
||||||
SelectedColor.ForePriority = 50
|
SelectedColor.ForePriority = 50
|
||||||
SelectedColor.FramePriority = 50
|
SelectedColor.FramePriority = 50
|
||||||
@ -1601,23 +1580,17 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
SelectedColor.ItalicPriority = 50
|
SelectedColor.ItalicPriority = 50
|
||||||
SelectedColor.UnderlinePriority = 50
|
SelectedColor.UnderlinePriority = 50
|
||||||
SelectedColor.StrikeOutPriority = 50
|
SelectedColor.StrikeOutPriority = 50
|
||||||
IncrementColor.FrameEdges = sfeAround
|
|
||||||
HighlightAllColor.FrameEdges = sfeAround
|
|
||||||
BracketHighlightStyle = sbhsBoth
|
BracketHighlightStyle = sbhsBoth
|
||||||
BracketMatchColor.Background = clNone
|
BracketMatchColor.Background = clNone
|
||||||
BracketMatchColor.Foreground = clNone
|
BracketMatchColor.Foreground = clNone
|
||||||
BracketMatchColor.FrameEdges = sfeAround
|
|
||||||
BracketMatchColor.Style = [fsBold]
|
BracketMatchColor.Style = [fsBold]
|
||||||
FoldedCodeColor.Background = clNone
|
FoldedCodeColor.Background = clNone
|
||||||
FoldedCodeColor.Foreground = clGray
|
FoldedCodeColor.Foreground = clGray
|
||||||
FoldedCodeColor.FrameColor = clGray
|
FoldedCodeColor.FrameColor = clGray
|
||||||
FoldedCodeColor.FrameEdges = sfeAround
|
|
||||||
MouseLinkColor.Background = clNone
|
MouseLinkColor.Background = clNone
|
||||||
MouseLinkColor.Foreground = clBlue
|
MouseLinkColor.Foreground = clBlue
|
||||||
MouseLinkColor.FrameEdges = sfeAround
|
|
||||||
LineHighlightColor.Background = clNone
|
LineHighlightColor.Background = clNone
|
||||||
LineHighlightColor.Foreground = clNone
|
LineHighlightColor.Foreground = clNone
|
||||||
LineHighlightColor.FrameEdges = sfeAround
|
|
||||||
inline TSynGutterPartList
|
inline TSynGutterPartList
|
||||||
object TSynGutterMarks
|
object TSynGutterMarks
|
||||||
Width = 24
|
Width = 24
|
||||||
@ -1628,7 +1601,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clBtnFace
|
MarkupInfo.Background = clBtnFace
|
||||||
MarkupInfo.Foreground = clNone
|
MarkupInfo.Foreground = clNone
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
DigitCount = 2
|
DigitCount = 2
|
||||||
ShowOnlyLineNumbersMultiplesOf = 1
|
ShowOnlyLineNumbersMultiplesOf = 1
|
||||||
ZeroStart = False
|
ZeroStart = False
|
||||||
@ -1645,7 +1617,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clWhite
|
MarkupInfo.Background = clWhite
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
end
|
end
|
||||||
object TSynGutterCodeFolding
|
object TSynGutterCodeFolding
|
||||||
MouseActions = <
|
MouseActions = <
|
||||||
@ -1676,7 +1647,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
MarkupInfo.Background = clNone
|
MarkupInfo.Background = clNone
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
MouseActionsExpanded = <
|
MouseActionsExpanded = <
|
||||||
item
|
item
|
||||||
ClickCount = ccAny
|
ClickCount = ccAny
|
||||||
@ -2138,7 +2108,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
SelectedColor.FrameEdges = sfeAround
|
|
||||||
SelectedColor.BackPriority = 50
|
SelectedColor.BackPriority = 50
|
||||||
SelectedColor.ForePriority = 50
|
SelectedColor.ForePriority = 50
|
||||||
SelectedColor.FramePriority = 50
|
SelectedColor.FramePriority = 50
|
||||||
@ -2146,23 +2115,17 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
SelectedColor.ItalicPriority = 50
|
SelectedColor.ItalicPriority = 50
|
||||||
SelectedColor.UnderlinePriority = 50
|
SelectedColor.UnderlinePriority = 50
|
||||||
SelectedColor.StrikeOutPriority = 50
|
SelectedColor.StrikeOutPriority = 50
|
||||||
IncrementColor.FrameEdges = sfeAround
|
|
||||||
HighlightAllColor.FrameEdges = sfeAround
|
|
||||||
BracketHighlightStyle = sbhsBoth
|
BracketHighlightStyle = sbhsBoth
|
||||||
BracketMatchColor.Background = clNone
|
BracketMatchColor.Background = clNone
|
||||||
BracketMatchColor.Foreground = clNone
|
BracketMatchColor.Foreground = clNone
|
||||||
BracketMatchColor.FrameEdges = sfeAround
|
|
||||||
BracketMatchColor.Style = [fsBold]
|
BracketMatchColor.Style = [fsBold]
|
||||||
FoldedCodeColor.Background = clNone
|
FoldedCodeColor.Background = clNone
|
||||||
FoldedCodeColor.Foreground = clGray
|
FoldedCodeColor.Foreground = clGray
|
||||||
FoldedCodeColor.FrameColor = clGray
|
FoldedCodeColor.FrameColor = clGray
|
||||||
FoldedCodeColor.FrameEdges = sfeAround
|
|
||||||
MouseLinkColor.Background = clNone
|
MouseLinkColor.Background = clNone
|
||||||
MouseLinkColor.Foreground = clBlue
|
MouseLinkColor.Foreground = clBlue
|
||||||
MouseLinkColor.FrameEdges = sfeAround
|
|
||||||
LineHighlightColor.Background = clNone
|
LineHighlightColor.Background = clNone
|
||||||
LineHighlightColor.Foreground = clNone
|
LineHighlightColor.Foreground = clNone
|
||||||
LineHighlightColor.FrameEdges = sfeAround
|
|
||||||
inline TSynGutterPartList
|
inline TSynGutterPartList
|
||||||
object TSynGutterMarks
|
object TSynGutterMarks
|
||||||
Width = 24
|
Width = 24
|
||||||
@ -2173,7 +2136,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clBtnFace
|
MarkupInfo.Background = clBtnFace
|
||||||
MarkupInfo.Foreground = clNone
|
MarkupInfo.Foreground = clNone
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
DigitCount = 2
|
DigitCount = 2
|
||||||
ShowOnlyLineNumbersMultiplesOf = 1
|
ShowOnlyLineNumbersMultiplesOf = 1
|
||||||
ZeroStart = False
|
ZeroStart = False
|
||||||
@ -2190,7 +2152,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clWhite
|
MarkupInfo.Background = clWhite
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
end
|
end
|
||||||
object TSynGutterCodeFolding
|
object TSynGutterCodeFolding
|
||||||
MouseActions = <
|
MouseActions = <
|
||||||
@ -2221,7 +2182,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
MarkupInfo.Background = clNone
|
MarkupInfo.Background = clNone
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
MouseActionsExpanded = <
|
MouseActionsExpanded = <
|
||||||
item
|
item
|
||||||
ClickCount = ccAny
|
ClickCount = ccAny
|
||||||
@ -2683,7 +2643,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
SelectedColor.FrameEdges = sfeAround
|
|
||||||
SelectedColor.BackPriority = 50
|
SelectedColor.BackPriority = 50
|
||||||
SelectedColor.ForePriority = 50
|
SelectedColor.ForePriority = 50
|
||||||
SelectedColor.FramePriority = 50
|
SelectedColor.FramePriority = 50
|
||||||
@ -2691,23 +2650,17 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
SelectedColor.ItalicPriority = 50
|
SelectedColor.ItalicPriority = 50
|
||||||
SelectedColor.UnderlinePriority = 50
|
SelectedColor.UnderlinePriority = 50
|
||||||
SelectedColor.StrikeOutPriority = 50
|
SelectedColor.StrikeOutPriority = 50
|
||||||
IncrementColor.FrameEdges = sfeAround
|
|
||||||
HighlightAllColor.FrameEdges = sfeAround
|
|
||||||
BracketHighlightStyle = sbhsBoth
|
BracketHighlightStyle = sbhsBoth
|
||||||
BracketMatchColor.Background = clNone
|
BracketMatchColor.Background = clNone
|
||||||
BracketMatchColor.Foreground = clNone
|
BracketMatchColor.Foreground = clNone
|
||||||
BracketMatchColor.FrameEdges = sfeAround
|
|
||||||
BracketMatchColor.Style = [fsBold]
|
BracketMatchColor.Style = [fsBold]
|
||||||
FoldedCodeColor.Background = clNone
|
FoldedCodeColor.Background = clNone
|
||||||
FoldedCodeColor.Foreground = clGray
|
FoldedCodeColor.Foreground = clGray
|
||||||
FoldedCodeColor.FrameColor = clGray
|
FoldedCodeColor.FrameColor = clGray
|
||||||
FoldedCodeColor.FrameEdges = sfeAround
|
|
||||||
MouseLinkColor.Background = clNone
|
MouseLinkColor.Background = clNone
|
||||||
MouseLinkColor.Foreground = clBlue
|
MouseLinkColor.Foreground = clBlue
|
||||||
MouseLinkColor.FrameEdges = sfeAround
|
|
||||||
LineHighlightColor.Background = clNone
|
LineHighlightColor.Background = clNone
|
||||||
LineHighlightColor.Foreground = clNone
|
LineHighlightColor.Foreground = clNone
|
||||||
LineHighlightColor.FrameEdges = sfeAround
|
|
||||||
inline TSynGutterPartList
|
inline TSynGutterPartList
|
||||||
object TSynGutterMarks
|
object TSynGutterMarks
|
||||||
Width = 24
|
Width = 24
|
||||||
@ -2718,7 +2671,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clBtnFace
|
MarkupInfo.Background = clBtnFace
|
||||||
MarkupInfo.Foreground = clNone
|
MarkupInfo.Foreground = clNone
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
DigitCount = 2
|
DigitCount = 2
|
||||||
ShowOnlyLineNumbersMultiplesOf = 1
|
ShowOnlyLineNumbersMultiplesOf = 1
|
||||||
ZeroStart = False
|
ZeroStart = False
|
||||||
@ -2735,7 +2687,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clWhite
|
MarkupInfo.Background = clWhite
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
end
|
end
|
||||||
object TSynGutterCodeFolding
|
object TSynGutterCodeFolding
|
||||||
MouseActions = <
|
MouseActions = <
|
||||||
@ -2766,7 +2717,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
MarkupInfo.Background = clNone
|
MarkupInfo.Background = clNone
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
MouseActionsExpanded = <
|
MouseActionsExpanded = <
|
||||||
item
|
item
|
||||||
ClickCount = ccAny
|
ClickCount = ccAny
|
||||||
@ -3271,7 +3221,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
VisibleSpecialChars = [vscSpace, vscTabAtLast]
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
SelectedColor.FrameEdges = sfeAround
|
|
||||||
SelectedColor.BackPriority = 50
|
SelectedColor.BackPriority = 50
|
||||||
SelectedColor.ForePriority = 50
|
SelectedColor.ForePriority = 50
|
||||||
SelectedColor.FramePriority = 50
|
SelectedColor.FramePriority = 50
|
||||||
@ -3279,23 +3228,17 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
SelectedColor.ItalicPriority = 50
|
SelectedColor.ItalicPriority = 50
|
||||||
SelectedColor.UnderlinePriority = 50
|
SelectedColor.UnderlinePriority = 50
|
||||||
SelectedColor.StrikeOutPriority = 50
|
SelectedColor.StrikeOutPriority = 50
|
||||||
IncrementColor.FrameEdges = sfeAround
|
|
||||||
HighlightAllColor.FrameEdges = sfeAround
|
|
||||||
BracketHighlightStyle = sbhsBoth
|
BracketHighlightStyle = sbhsBoth
|
||||||
BracketMatchColor.Background = clNone
|
BracketMatchColor.Background = clNone
|
||||||
BracketMatchColor.Foreground = clNone
|
BracketMatchColor.Foreground = clNone
|
||||||
BracketMatchColor.FrameEdges = sfeAround
|
|
||||||
BracketMatchColor.Style = [fsBold]
|
BracketMatchColor.Style = [fsBold]
|
||||||
FoldedCodeColor.Background = clNone
|
FoldedCodeColor.Background = clNone
|
||||||
FoldedCodeColor.Foreground = clGray
|
FoldedCodeColor.Foreground = clGray
|
||||||
FoldedCodeColor.FrameColor = clGray
|
FoldedCodeColor.FrameColor = clGray
|
||||||
FoldedCodeColor.FrameEdges = sfeAround
|
|
||||||
MouseLinkColor.Background = clNone
|
MouseLinkColor.Background = clNone
|
||||||
MouseLinkColor.Foreground = clBlue
|
MouseLinkColor.Foreground = clBlue
|
||||||
MouseLinkColor.FrameEdges = sfeAround
|
|
||||||
LineHighlightColor.Background = clNone
|
LineHighlightColor.Background = clNone
|
||||||
LineHighlightColor.Foreground = clNone
|
LineHighlightColor.Foreground = clNone
|
||||||
LineHighlightColor.FrameEdges = sfeAround
|
|
||||||
inline TSynGutterPartList
|
inline TSynGutterPartList
|
||||||
object TSynGutterMarks
|
object TSynGutterMarks
|
||||||
Width = 24
|
Width = 24
|
||||||
@ -3306,7 +3249,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clBtnFace
|
MarkupInfo.Background = clBtnFace
|
||||||
MarkupInfo.Foreground = clNone
|
MarkupInfo.Foreground = clNone
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
DigitCount = 2
|
DigitCount = 2
|
||||||
ShowOnlyLineNumbersMultiplesOf = 1
|
ShowOnlyLineNumbersMultiplesOf = 1
|
||||||
ZeroStart = False
|
ZeroStart = False
|
||||||
@ -3323,7 +3265,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
MouseActions = <>
|
MouseActions = <>
|
||||||
MarkupInfo.Background = clWhite
|
MarkupInfo.Background = clWhite
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
end
|
end
|
||||||
object TSynGutterCodeFolding
|
object TSynGutterCodeFolding
|
||||||
MouseActions = <
|
MouseActions = <
|
||||||
@ -3354,7 +3295,6 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end>
|
end>
|
||||||
MarkupInfo.Background = clNone
|
MarkupInfo.Background = clNone
|
||||||
MarkupInfo.Foreground = clGray
|
MarkupInfo.Foreground = clGray
|
||||||
MarkupInfo.FrameEdges = sfeAround
|
|
||||||
MouseActionsExpanded = <
|
MouseActionsExpanded = <
|
||||||
item
|
item
|
||||||
ClickCount = ccAny
|
ClickCount = ccAny
|
||||||
@ -3441,6 +3381,7 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end
|
end
|
||||||
object ToolButton3: TToolButton
|
object ToolButton3: TToolButton
|
||||||
Left = 93
|
Left = 93
|
||||||
|
Height = 22
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 5
|
Width = 5
|
||||||
Caption = 'ToolButton3'
|
Caption = 'ToolButton3'
|
||||||
@ -3478,6 +3419,7 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end
|
end
|
||||||
object ToolButton11: TToolButton
|
object ToolButton11: TToolButton
|
||||||
Left = 241
|
Left = 241
|
||||||
|
Height = 22
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 5
|
Width = 5
|
||||||
Caption = 'ToolButton11'
|
Caption = 'ToolButton11'
|
||||||
@ -3495,6 +3437,7 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end
|
end
|
||||||
object ToolButton13: TToolButton
|
object ToolButton13: TToolButton
|
||||||
Left = 338
|
Left = 338
|
||||||
|
Height = 22
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 5
|
Width = 5
|
||||||
Caption = 'ToolButton13'
|
Caption = 'ToolButton13'
|
||||||
@ -3527,6 +3470,7 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end
|
end
|
||||||
object ToolButton19: TToolButton
|
object ToolButton19: TToolButton
|
||||||
Left = 121
|
Left = 121
|
||||||
|
Height = 22
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 5
|
Width = 5
|
||||||
Caption = 'ToolButton19'
|
Caption = 'ToolButton19'
|
||||||
@ -3641,6 +3585,12 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
Action = actDelete
|
Action = actDelete
|
||||||
OnClick = actDeleteExecute
|
OnClick = actDeleteExecute
|
||||||
end
|
end
|
||||||
|
object MenuItem57: TMenuItem
|
||||||
|
Caption = '-'
|
||||||
|
end
|
||||||
|
object MenuItem58: TMenuItem
|
||||||
|
Action = actShowOptions
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object MenuItem6: TMenuItem
|
object MenuItem6: TMenuItem
|
||||||
Action = actAbout
|
Action = actAbout
|
||||||
@ -3789,6 +3739,11 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
OnExecute = actAddXsdImportExecute
|
OnExecute = actAddXsdImportExecute
|
||||||
OnUpdate = actAddXsdImportUpdate
|
OnUpdate = actAddXsdImportUpdate
|
||||||
end
|
end
|
||||||
|
object actShowOptions: TAction
|
||||||
|
Caption = 'Options ...'
|
||||||
|
ImageIndex = 9
|
||||||
|
OnExecute = actShowOptionsExecute
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object OD: TOpenDialog
|
object OD: TOpenDialog
|
||||||
Filter = 'wsdl files(*.wsdl)|*.wsdl|Pascal file (*.pas)|*.pas|XSD files ( *.xsd )|*.xsd|WDSL files(*.WSDL)|*.WSDL'
|
Filter = 'wsdl files(*.wsdl)|*.wsdl|Pascal file (*.pas)|*.pas|XSD files ( *.xsd )|*.xsd|WDSL files(*.WSDL)|*.WSDL'
|
||||||
@ -3799,22 +3754,11 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
end
|
end
|
||||||
object SynPasSyn1: TSynPasSyn
|
object SynPasSyn1: TSynPasSyn
|
||||||
Enabled = False
|
Enabled = False
|
||||||
AsmAttri.FrameEdges = sfeAround
|
|
||||||
CommentAttri.Foreground = clBlue
|
CommentAttri.Foreground = clBlue
|
||||||
CommentAttri.FrameEdges = sfeAround
|
|
||||||
CommentAttri.Style = [fsBold]
|
CommentAttri.Style = [fsBold]
|
||||||
IDEDirectiveAttri.FrameEdges = sfeAround
|
|
||||||
IdentifierAttri.FrameEdges = sfeAround
|
|
||||||
KeyAttri.FrameEdges = sfeAround
|
|
||||||
NumberAttri.FrameEdges = sfeAround
|
|
||||||
SpaceAttri.FrameEdges = sfeAround
|
|
||||||
StringAttri.Foreground = clMaroon
|
StringAttri.Foreground = clMaroon
|
||||||
StringAttri.FrameEdges = sfeAround
|
|
||||||
SymbolAttri.FrameEdges = sfeAround
|
|
||||||
SymbolAttri.Style = [fsBold]
|
SymbolAttri.Style = [fsBold]
|
||||||
CaseLabelAttri.FrameEdges = sfeAround
|
|
||||||
DirectiveAttri.Foreground = clGreen
|
DirectiveAttri.Foreground = clGreen
|
||||||
DirectiveAttri.FrameEdges = sfeAround
|
|
||||||
DirectiveAttri.Style = [fsBold]
|
DirectiveAttri.Style = [fsBold]
|
||||||
CompilerMode = pcmDelphi
|
CompilerMode = pcmDelphi
|
||||||
NestedComments = True
|
NestedComments = True
|
||||||
@ -4738,20 +4682,7 @@ object fWstTypeLibraryEdit: TfWstTypeLibraryEdit
|
|||||||
DefaultFilter = 'Documents WSDL (*.wsdl)|*.wsdl'
|
DefaultFilter = 'Documents WSDL (*.wsdl)|*.wsdl'
|
||||||
Enabled = False
|
Enabled = False
|
||||||
ElementAttri.Foreground = clNavy
|
ElementAttri.Foreground = clNavy
|
||||||
ElementAttri.FrameEdges = sfeAround
|
|
||||||
AttributeAttri.FrameEdges = sfeAround
|
|
||||||
NamespaceAttributeAttri.FrameEdges = sfeAround
|
|
||||||
AttributeValueAttri.Foreground = clPurple
|
AttributeValueAttri.Foreground = clPurple
|
||||||
AttributeValueAttri.FrameEdges = sfeAround
|
|
||||||
NamespaceAttributeValueAttri.FrameEdges = sfeAround
|
|
||||||
TextAttri.FrameEdges = sfeAround
|
|
||||||
CDATAAttri.FrameEdges = sfeAround
|
|
||||||
EntityRefAttri.FrameEdges = sfeAround
|
|
||||||
ProcessingInstructionAttri.FrameEdges = sfeAround
|
|
||||||
CommentAttri.FrameEdges = sfeAround
|
|
||||||
DocTypeAttri.FrameEdges = sfeAround
|
|
||||||
SpaceAttri.FrameEdges = sfeAround
|
|
||||||
SymbolAttri.FrameEdges = sfeAround
|
|
||||||
WantBracesParsed = False
|
WantBracesParsed = False
|
||||||
left = 466
|
left = 466
|
||||||
top = 252
|
top = 252
|
||||||
|
@ -43,6 +43,7 @@ type
|
|||||||
actEditSearch : TAction;
|
actEditSearch : TAction;
|
||||||
actClone : TAction;
|
actClone : TAction;
|
||||||
actAddXsdImport : TAction;
|
actAddXsdImport : TAction;
|
||||||
|
actShowOptions: TAction;
|
||||||
actSaveXSD : TAction;
|
actSaveXSD : TAction;
|
||||||
actTreeSearch : TAction;
|
actTreeSearch : TAction;
|
||||||
actRecordCreate : TAction;
|
actRecordCreate : TAction;
|
||||||
@ -105,6 +106,8 @@ type
|
|||||||
MenuItem54 : TMenuItem;
|
MenuItem54 : TMenuItem;
|
||||||
MenuItem55 : TMenuItem;
|
MenuItem55 : TMenuItem;
|
||||||
MenuItem56 : TMenuItem;
|
MenuItem56 : TMenuItem;
|
||||||
|
MenuItem57: TMenuItem;
|
||||||
|
MenuItem58: TMenuItem;
|
||||||
MenuItem6: TMenuItem;
|
MenuItem6: TMenuItem;
|
||||||
MenuItem7 : TMenuItem;
|
MenuItem7 : TMenuItem;
|
||||||
MenuItem8: TMenuItem;
|
MenuItem8: TMenuItem;
|
||||||
@ -191,6 +194,7 @@ type
|
|||||||
procedure actEditSearchExecute(Sender : TObject);
|
procedure actEditSearchExecute(Sender : TObject);
|
||||||
procedure actEditSearchUpdate(Sender : TObject);
|
procedure actEditSearchUpdate(Sender : TObject);
|
||||||
procedure actSaveXSDExecute(Sender : TObject);
|
procedure actSaveXSDExecute(Sender : TObject);
|
||||||
|
procedure actShowOptionsExecute(Sender: TObject);
|
||||||
procedure actTreeSearchExecute(Sender : TObject);
|
procedure actTreeSearchExecute(Sender : TObject);
|
||||||
procedure actTreeSearchUpdate(Sender : TObject);
|
procedure actTreeSearchUpdate(Sender : TObject);
|
||||||
procedure actTypeALiasCreateExecute(Sender : TObject);
|
procedure actTypeALiasCreateExecute(Sender : TObject);
|
||||||
@ -249,7 +253,7 @@ uses
|
|||||||
view_helper, DOM, wst_fpc_xml, XMLWrite,
|
view_helper, DOM, wst_fpc_xml, XMLWrite,
|
||||||
xsd_parser, wsdl_parser, source_utils, command_line_parser, generator, metadata_generator,
|
xsd_parser, wsdl_parser, source_utils, command_line_parser, generator, metadata_generator,
|
||||||
binary_streamer, wst_resources_utils, xsd_generator, wsdl_generator,
|
binary_streamer, wst_resources_utils, xsd_generator, wsdl_generator,
|
||||||
uabout, edit_helper, udm, ufrmsaveoption, pparser, SynEditTypes
|
uabout, edit_helper, udm, ufrmsaveoption, ueditoptions, pparser, SynEditTypes
|
||||||
{$IFDEF WST_IDE},LazIDEIntf,IDEMsgIntf, IDEExternToolIntf{$ENDIF}
|
{$IFDEF WST_IDE},LazIDEIntf,IDEMsgIntf, IDEExternToolIntf{$ENDIF}
|
||||||
, xsd_consts, parserutils, locators;
|
, xsd_consts, parserutils, locators;
|
||||||
|
|
||||||
@ -343,6 +347,8 @@ begin
|
|||||||
try
|
try
|
||||||
Result := TwstPasTreeContainer.Create();
|
Result := TwstPasTreeContainer.Create();
|
||||||
try
|
try
|
||||||
|
Result.CaseSensitive := DM.CaseSensitive;
|
||||||
|
Result.XsdStringMaping := DM.XsdStringMaping;
|
||||||
prsr := TWsdlParser.Create(locDoc,Result,ANotifier);
|
prsr := TWsdlParser.Create(locDoc,Result,ANotifier);
|
||||||
locContext := prsr as IParserContext;
|
locContext := prsr as IParserContext;
|
||||||
if (locContext <> nil) then begin
|
if (locContext <> nil) then begin
|
||||||
@ -400,10 +406,13 @@ begin
|
|||||||
prsr := nil;
|
prsr := nil;
|
||||||
locDoc := ReadXMLFile(AContent);
|
locDoc := ReadXMLFile(AContent);
|
||||||
try
|
try
|
||||||
if (ASymbols = nil) then
|
if (ASymbols = nil) then begin
|
||||||
Result := TwstPasTreeContainer.Create()
|
Result := TwstPasTreeContainer.Create();
|
||||||
else
|
Result.CaseSensitive := DM.CaseSensitive;
|
||||||
|
Result.XsdStringMaping := DM.XsdStringMaping;
|
||||||
|
end else begin
|
||||||
Result := ASymbols;
|
Result := ASymbols;
|
||||||
|
end;
|
||||||
try
|
try
|
||||||
prsr := TXsdParser.Create(locDoc,Result,'',ANotifier);
|
prsr := TXsdParser.Create(locDoc,Result,'',ANotifier);
|
||||||
locContext := prsr as IParserContext;
|
locContext := prsr as IParserContext;
|
||||||
@ -671,6 +680,18 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfWstTypeLibraryEdit.actShowOptionsExecute(Sender: TObject);
|
||||||
|
var
|
||||||
|
f : TfEditOptions;
|
||||||
|
begin
|
||||||
|
f := TfEditOptions.Create(nil);
|
||||||
|
try
|
||||||
|
f.ShowModal();
|
||||||
|
finally
|
||||||
|
f.Release();
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfWstTypeLibraryEdit.actTreeSearchExecute(Sender : TObject);
|
procedure TfWstTypeLibraryEdit.actTreeSearchExecute(Sender : TObject);
|
||||||
begin
|
begin
|
||||||
FSearchArea := saTree;
|
FSearchArea := saTree;
|
||||||
|
Reference in New Issue
Block a user