Dialog modernization

  • All ModalPanel dialogs were converted to cRDCModalPanel.pkg. The new class automatically adds a status-panel row at the bottom of each dialog, makes all dialogs resizable, supports Status_Help consistently across all panels, and fixes a DataFlex bug in setting the Icon property. All anchors were adjusted to support resizing.


Status panel and tooltips

  • The status-panel "No: xx of xx" message now reads "File: xx of xx" to clarify that files (not lines) are being counted.
  • Status_Help is now derived automatically from psToolTip when no explicit Status_Help is provided.
  • cRDCHeaderGroup.pkg was updated to display a small info bitmap at the end of the control to indicate that a tooltip is available. New icons and bitmap were added to support this.


Refactor view layout

  • A new Standard Functions header group was added and RefactorView.vw was re-balanced.
  • The Tab Size control was moved to the upper right, since it is used by all indentation logic — not just for If/Else/Begin constructs.
  • Compound rows were changed to use explicit Begin/End blocks.


Other UI updates

  • New Report.ico for the Report Functions group.
  • New combo-form workspace selector with larger checkbox-slider icons.
  • The "Run Now!" button's default state is now True.


Product title and registry

  • The product title was changed from "Automated Code Refactoring for DataFlex" to "Automated Source Code Refactoring for DataFlex". Note that this changes the registry key under which workspaces are saved; existing history can be preserved by renaming the old registry key with Regedt32.


Open file selector

  • An All Files option was added to the file selector.
  • The path of the most recently opened file is now remembered, so re-opening a file from outside the AppSrc folder reopens at the same path.


Unused Variables logic (cRemoveUnusedLocals)

A series of issues was fixed, reported by Peter Bragg and others:

  • Two-dimensional arrays are now checked for all basic DataFlex types.
  • CS_ValidLeftCharacters was missing the = character; added.
  • CS_ValidLeftCharacters extended to include the EOL character.
  • A copy-paste error in the RetrieveFirstWord method (acting on sLine instead of sFirstWord) was corrected.
  • End-of-method detection moved to a dedicated IsMethodEnd helper, improving robustness.
  • Multi-line method declarations now strip parameters correctly (UnusedVarsTestMethodDeclareBrokenLine.pkg).
  • Array declarations with a space between type and [] (String [] a) are now handled (UnusedVars-SpaceArrays.pkg).
  • Variables with overlapping name prefixes (iSpace vs iSpaces) are now distinguished correctly (UnusedVars-PartialVariableNames.pkg).
  • Variables whose names partly match a type keyword (e.g. sH was incorrectly absorbed into the type Short) are now removed correctly.


Tokenizer and editor

  • New SciLexer.dll adds code-fold support for Type / End_Type blocks. This is used by the re-indent logic, which now indents Type blocks correctly instead of leaving them left-aligned.


Engine behavior

  • Replaced the post-run Info_Box with the log-file dialog.
  • Removed Sleep calls in favor of a WaitForFileToGetWritten message that waits for Windows to release a newly written file. Added the file's line count to the status panel so users can gauge progress on large files.


Bug fixes

  • Fixed DfAbout.pkg: a commented-out line had broken the compile-date logic on DataFlex versions below 19.1.
  • Fixed case-sensitivity bugs in ReplaceCalcToMoveStatement and IsKeywordInLine, reported by Michael Mullan.
  • Fixed bug #131 — "CM images, do not remove blank lines".
  • Fixed an issue with ChangeUClassToRefClass that emerged after running DFRefactor on its own source. Added safeguards for the "run on itself" scenario.
  • Fixed cRDCSlideButton.pkg width clipping the right-hand text.


Library and licensing

  • Library submodules are now pegged to fixed revisions so that upstream changes can no longer destabilize this code-base.
  • The license was updated to note the artwork attribution.


Merges

  • Merged Marco Kuipers's DfUnit tests.
  • Merged Marco's regex-based implementation of ChangeInToContains. The regex path is currently disabled until a dedicated configuration dialog is implemented.