Jump to content

Mike Torrettinni

Members
  • Content Count

    1509
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Mike Torrettinni

  1. Mike Torrettinni

    User settings - split logic and UI

    Thank you for the detailed explanation. I will take into account 'push' setting into the logic rather then constant 'pull', but this require change that was not expected. Even thought a constant pull should not be a problem, since there will be no shared settings. Also, this is a first step into more refactored, organized structure. Not perfect, but a good step from current stage. And of course separation of logic and UI, which is a much needed goal, right now. Thanks a lot!
  2. Mike Torrettinni

    User settings - split logic and UI

    Timelord, these are some very expert questions... I just have simple single .exe application, with forms. In Project.dpr source I control if forms are created, based on parameters. - So, single source, single binary. I guess hybrid since I control if forms get created depending on input. - Simple application with Settings screen where checkboxes are read/saved directly from Registry. My application processes log files and creates reports, one fo them is Action Summary report. When run without parameters - 'normal mode ' - users can load and view different log files, and based on settings, that user can control, logs are parsed differently and different information displayed. User can create reports, like Action Summary report. When run as cmd (CLI?) parameters specify input log files, which report to run (Action Summary report) and output folder. In this case parsing and export is defined by user settings read from registry - (that user defined in 'normal mode'). Right now, cmd mode wants to read UI checkboxes, and since some or all forms are not created (when in cmd mode), accessing checkboxes it not working. So, I want to split logic and UI access, to avoid UI access in cmd mode. When run in cmd mode, all user settings are read only. Never run concurrently, cmd and normal mode. Yes, for cmd mode only part of user settings are relevant, the rest are for normal mode. So it's a big parsing and reporting application and I would like to automate some of the reports, than can be automated. I think this answers all your questions. I hope this gives more details on my situation. Thank you for your time!
×