mirror of
https://github.com/moparisthebest/Simba
synced 2025-01-11 05:38:00 -05:00
Few fixes when it comes to detection is there was a change to the xml file.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@301 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
a33f1e3f18
commit
483d0b71c5
@ -174,6 +174,7 @@ begin
|
|||||||
CHImages.Delete(i);
|
CHImages.Delete(i);
|
||||||
|
|
||||||
ColourTree.Selected.Delete;
|
ColourTree.Selected.Delete;
|
||||||
|
TreeChanged:=True;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -312,9 +313,11 @@ begin
|
|||||||
if not assigned(Node) then
|
if not assigned(Node) then
|
||||||
begin
|
begin
|
||||||
ColourTree.Selected.MoveTo(nil, naAdd);
|
ColourTree.Selected.MoveTo(nil, naAdd);
|
||||||
|
TreeChanged:=True;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
ColourTree.Selected.MoveTo(Node, naAddChild);
|
ColourTree.Selected.MoveTo(Node, naAddChild);
|
||||||
|
TreeChanged:=True;
|
||||||
writeln('Dragging from: ' + ColourTree.Selected.Text);
|
writeln('Dragging from: ' + ColourTree.Selected.Text);
|
||||||
writeln('Dragging to: ' + Node.Text);
|
writeln('Dragging to: ' + Node.Text);
|
||||||
end;
|
end;
|
||||||
@ -423,7 +426,7 @@ var
|
|||||||
begin
|
begin
|
||||||
if TreeChanged then
|
if TreeChanged then
|
||||||
begin
|
begin
|
||||||
case MessageBox(0,pchar('Do you want to save the colors?'), Pchar('Colours have been modified.'),
|
case MessageBox(0,pchar('Do you want to save the colours?'), Pchar('Colours have been modified.'),
|
||||||
MB_YESNOCANCEL or MB_ICONQUESTION) of
|
MB_YESNOCANCEL or MB_ICONQUESTION) of
|
||||||
IDCANCEL :
|
IDCANCEL :
|
||||||
Exit;
|
Exit;
|
||||||
@ -440,7 +443,6 @@ begin
|
|||||||
if CHOpenDialog.Execute then
|
if CHOpenDialog.Execute then
|
||||||
if FileExists(CHOpenDialog.FileName) then
|
if FileExists(CHOpenDialog.FileName) then
|
||||||
begin
|
begin
|
||||||
writeln('Loading from file: ' + CHOpenDialog.FileName);
|
|
||||||
ReadXMLFile(XMLDoc, CHOpenDialog.FileName);
|
ReadXMLFile(XMLDoc, CHOpenDialog.FileName);
|
||||||
|
|
||||||
// Clear Tree and Images
|
// Clear Tree and Images
|
||||||
@ -449,7 +451,7 @@ begin
|
|||||||
CHImages.Clear;
|
CHImages.Clear;
|
||||||
XML2Tree(XMLDoc);
|
XML2Tree(XMLDoc);
|
||||||
ColourTree.EndUpdate;
|
ColourTree.EndUpdate;
|
||||||
|
TreeChanged:=False;
|
||||||
XMLDoc.Free;
|
XMLDoc.Free;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -1451,8 +1451,8 @@
|
|||||||
<ComponentName Value="ColourHistoryForm"/>
|
<ComponentName Value="ColourHistoryForm"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="colourhistory"/>
|
<UnitName Value="colourhistory"/>
|
||||||
<CursorPos X="52" Y="242"/>
|
<CursorPos X="76" Y="324"/>
|
||||||
<TopLine Value="218"/>
|
<TopLine Value="295"/>
|
||||||
<EditorIndex Value="6"/>
|
<EditorIndex Value="6"/>
|
||||||
<UsageCount Value="134"/>
|
<UsageCount Value="134"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
@ -1883,123 +1883,123 @@
|
|||||||
<JumpHistory Count="30" HistoryIndex="29">
|
<JumpHistory Count="30" HistoryIndex="29">
|
||||||
<Position1>
|
<Position1>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="216" Column="39" TopLine="186"/>
|
<Caret Line="212" Column="23" TopLine="189"/>
|
||||||
</Position1>
|
</Position1>
|
||||||
<Position2>
|
<Position2>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="212" Column="23" TopLine="189"/>
|
<Caret Line="217" Column="32" TopLine="193"/>
|
||||||
</Position2>
|
</Position2>
|
||||||
<Position3>
|
<Position3>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="217" Column="32" TopLine="193"/>
|
<Caret Line="199" Column="21" TopLine="193"/>
|
||||||
</Position3>
|
</Position3>
|
||||||
<Position4>
|
<Position4>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="199" Column="21" TopLine="193"/>
|
<Caret Line="192" Column="28" TopLine="157"/>
|
||||||
</Position4>
|
</Position4>
|
||||||
<Position5>
|
<Position5>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="192" Column="28" TopLine="157"/>
|
<Caret Line="155" Column="4" TopLine="139"/>
|
||||||
</Position5>
|
</Position5>
|
||||||
<Position6>
|
<Position6>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="155" Column="4" TopLine="139"/>
|
<Caret Line="150" Column="25" TopLine="148"/>
|
||||||
</Position6>
|
</Position6>
|
||||||
<Position7>
|
<Position7>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="150" Column="25" TopLine="148"/>
|
<Caret Line="196" Column="34" TopLine="176"/>
|
||||||
</Position7>
|
</Position7>
|
||||||
<Position8>
|
<Position8>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="196" Column="34" TopLine="176"/>
|
<Caret Line="334" Column="23" TopLine="297"/>
|
||||||
</Position8>
|
</Position8>
|
||||||
<Position9>
|
<Position9>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="334" Column="23" TopLine="297"/>
|
<Caret Line="362" Column="15" TopLine="325"/>
|
||||||
</Position9>
|
</Position9>
|
||||||
<Position10>
|
<Position10>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="362" Column="15" TopLine="325"/>
|
<Caret Line="381" Column="5" TopLine="356"/>
|
||||||
</Position10>
|
</Position10>
|
||||||
<Position11>
|
<Position11>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="381" Column="5" TopLine="356"/>
|
<Caret Line="376" Column="64" TopLine="356"/>
|
||||||
</Position11>
|
</Position11>
|
||||||
<Position12>
|
<Position12>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="376" Column="64" TopLine="356"/>
|
<Caret Line="410" Column="48" TopLine="387"/>
|
||||||
</Position12>
|
</Position12>
|
||||||
<Position13>
|
<Position13>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="410" Column="48" TopLine="387"/>
|
<Caret Line="87" Column="26" TopLine="58"/>
|
||||||
</Position13>
|
</Position13>
|
||||||
<Position14>
|
<Position14>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="87" Column="26" TopLine="58"/>
|
<Caret Line="366" Column="8" TopLine="350"/>
|
||||||
</Position14>
|
</Position14>
|
||||||
<Position15>
|
<Position15>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="366" Column="8" TopLine="350"/>
|
<Caret Line="365" Column="79" TopLine="344"/>
|
||||||
</Position15>
|
</Position15>
|
||||||
<Position16>
|
<Position16>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="365" Column="79" TopLine="344"/>
|
<Caret Line="371" Column="21" TopLine="355"/>
|
||||||
</Position16>
|
</Position16>
|
||||||
<Position17>
|
<Position17>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="371" Column="21" TopLine="355"/>
|
<Caret Line="376" Column="64" TopLine="356"/>
|
||||||
</Position17>
|
</Position17>
|
||||||
<Position18>
|
<Position18>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="376" Column="64" TopLine="356"/>
|
<Caret Line="393" Column="36" TopLine="356"/>
|
||||||
</Position18>
|
</Position18>
|
||||||
<Position19>
|
<Position19>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="393" Column="36" TopLine="356"/>
|
<Caret Line="389" Column="29" TopLine="361"/>
|
||||||
</Position19>
|
</Position19>
|
||||||
<Position20>
|
<Position20>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="389" Column="29" TopLine="361"/>
|
<Caret Line="399" Column="39" TopLine="371"/>
|
||||||
</Position20>
|
</Position20>
|
||||||
<Position21>
|
<Position21>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="399" Column="39" TopLine="371"/>
|
<Caret Line="395" Column="31" TopLine="375"/>
|
||||||
</Position21>
|
</Position21>
|
||||||
<Position22>
|
<Position22>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="395" Column="31" TopLine="375"/>
|
<Caret Line="342" Column="79" TopLine="330"/>
|
||||||
</Position22>
|
</Position22>
|
||||||
<Position23>
|
<Position23>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="342" Column="79" TopLine="330"/>
|
<Caret Line="391" Column="29" TopLine="361"/>
|
||||||
</Position23>
|
</Position23>
|
||||||
<Position24>
|
<Position24>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="391" Column="29" TopLine="361"/>
|
<Caret Line="91" Column="15" TopLine="56"/>
|
||||||
</Position24>
|
</Position24>
|
||||||
<Position25>
|
<Position25>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="91" Column="15" TopLine="56"/>
|
<Caret Line="31" Column="65" TopLine="23"/>
|
||||||
</Position25>
|
</Position25>
|
||||||
<Position26>
|
<Position26>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="31" Column="65" TopLine="23"/>
|
<Caret Line="393" Column="72" TopLine="383"/>
|
||||||
</Position26>
|
</Position26>
|
||||||
<Position27>
|
<Position27>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="393" Column="72" TopLine="383"/>
|
<Caret Line="364" Column="17" TopLine="332"/>
|
||||||
</Position27>
|
</Position27>
|
||||||
<Position28>
|
<Position28>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="364" Column="17" TopLine="332"/>
|
<Caret Line="227" Column="1" TopLine="200"/>
|
||||||
</Position28>
|
</Position28>
|
||||||
<Position29>
|
<Position29>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="227" Column="1" TopLine="200"/>
|
<Caret Line="79" Column="26" TopLine="52"/>
|
||||||
</Position29>
|
</Position29>
|
||||||
<Position30>
|
<Position30>
|
||||||
<Filename Value="colourhistory.pas"/>
|
<Filename Value="colourhistory.pas"/>
|
||||||
<Caret Line="79" Column="26" TopLine="52"/>
|
<Caret Line="177" Column="1" TopLine="134"/>
|
||||||
</Position30>
|
</Position30>
|
||||||
</JumpHistory>
|
</JumpHistory>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
|
Loading…
Reference in New Issue
Block a user