TreeStorage: rename some identifiers. No functional changes.

This commit is contained in:
Bart 2025-04-01 18:12:35 +02:00
parent 59fa55b803
commit db6fe2baa9

View File

@ -26,18 +26,18 @@ uses
LazLoggerBase; LazLoggerBase;
type type
TTreeStorageOption = (tsoExpanded, tsoSelected, tsoFocused, tsoVisible, tsoEnabled, TTreeItemStorageOption = (tsoExpanded, tsoSelected, tsoFocused, tsoVisible, tsoEnabled,
tsoImageIndex, tsoSelectedIndex, tsoStateIndex, tsoOverlayIndex); tsoImageIndex, tsoSelectedIndex, tsoStateIndex, tsoOverlayIndex);
TTreeStorageOptions = set of TTreeStorageOption; TTreeItemStorageOptions = set of TTreeItemStorageOption;
const const
tsoAllOptions = [tsoExpanded, tsoSelected, tsoFocused, tsoVisible, tsoEnabled, TreeItemStorageDefaultOptions = [tsoExpanded, tsoSelected, tsoFocused, tsoVisible, tsoEnabled,
tsoImageIndex, tsoSelectedIndex, tsoStateIndex, tsoOverlayIndex]; tsoImageIndex, tsoSelectedIndex, tsoStateIndex, tsoOverlayIndex];
procedure TreeSaveToXML(Tree: TCustomTreeView; Fn: String; Options: TTreeStorageOptions = tsoAllOptions); procedure TreeSaveToXML(Tree: TCustomTreeView; Fn: String; Options: TTreeItemStorageOptions = TreeItemStorageDefaultOptions);
procedure TreeSaveToXML(Tree: TCustomTreeView; St: TStream; Options: TTreeStorageOptions = tsoAllOptions); procedure TreeSaveToXML(Tree: TCustomTreeView; St: TStream; Options: TTreeItemStorageOptions = TreeItemStorageDefaultOptions);
procedure TreeLoadFromXML(Tree: TCustomTreeView; const Fn: String; Options: TTreeStorageOptions = tsoAllOptions); procedure TreeLoadFromXML(Tree: TCustomTreeView; const Fn: String; Options: TTreeItemStorageOptions = TreeItemStorageDefaultOptions);
procedure TreeLoadFromXML(Tree: TCustomTreeView; St: TStream; Options: TTreeStorageOptions = tsoAllOptions); procedure TreeLoadFromXML(Tree: TCustomTreeView; St: TStream; Options: TTreeItemStorageOptions = TreeItemStorageDefaultOptions);
implementation implementation
@ -71,7 +71,7 @@ begin
end; end;
end; end;
procedure TreeSaveToXML(Tree: TCustomTreeView; Fn: String; Options: TTreeStorageOptions); procedure TreeSaveToXML(Tree: TCustomTreeView; Fn: String; Options: TTreeItemStorageOptions);
var var
FS: TFileStream; FS: TFileStream;
begin begin
@ -83,7 +83,7 @@ begin
end; end;
end; end;
procedure TreeSaveToXML(Tree: TCustomTreeView; St: TStream; Options: TTreeStorageOptions); procedure TreeSaveToXML(Tree: TCustomTreeView; St: TStream; Options: TTreeItemStorageOptions);
var var
Doc: TXMLDocument; Doc: TXMLDocument;
RootNode: TDOMElement; RootNode: TDOMElement;
@ -152,7 +152,7 @@ begin
end; end;
end; end;
procedure TreeLoadFromXML(Tree: TCustomTreeView; const Fn: String; Options: TTreeStorageOptions); procedure TreeLoadFromXML(Tree: TCustomTreeView; const Fn: String; Options: TTreeItemStorageOptions);
var var
FS: TFileStream; FS: TFileStream;
begin begin
@ -166,7 +166,7 @@ end;
procedure TreeLoadFromXML(Tree: TCustomTreeView; St: TStream; Options: TTreeStorageOptions = tsoAllOptions); procedure TreeLoadFromXML(Tree: TCustomTreeView; St: TStream; Options: TTreeItemStorageOptions = TreeItemStorageDefaultOptions);
var var
Doc: TXMLDocument; Doc: TXMLDocument;
DomNode: TDOMNode; DomNode: TDOMNode;