<div dir="ltr">Hi Eric,<div><br></div><div>Are these tied to the equipment profile? or does the user have to go to each module and load the settings every time?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--</div><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 3, 2020 at 12:03 PM Eric Dejouhanet <<a href="mailto:eric.dejouhanet@gmail.com">eric.dejouhanet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="FR"><div class="gmail-m_8066699733779466876WordSection1"><p class="MsoNormal"><span lang="EN-GB">Hello,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">Sorry for taking so long to get the mailing list account back.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">I’d like to step in to tell what I pondered to implement for the Focus module.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">I believe each Ekos module should be able to save and load its settings to files. This comes in addition to the regular Options mechanism, which are the “current” settings. We already have this for the Capture module as Ekos Sequence .esq files, and for the Scheduler module as Ekos Schedule .esl files.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">My proposal is therefore to have Ekos Focus, Align, Guide and Observatory settings serialized like Capture and Schedule. Because that would make that much file extensions, I propose to embed the type of settings inside the serialized file. Additionally, I propose to disconnect the format of the file from the actual content, so that a « settings list » suitable for a particular module could be stored as XML, or JSON, or whatever serialization plug-in we may add to Ekos.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">On the settings themselves, Qt has a generic Model/View Framework using QAbstractTableModel. I propose to implement a ModuleSettings class above the table specialization of this framework. This will offer a low-cost generic view of Module settings that can be included as a summary in each module, read-only but eventually with modification features.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">Then each Module can declare its settings, connect them to UI elements, and gain automatic serialization. This will help separating the view and the data in our architecture (it really needs that).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">My original idea was to store all Module settings in Scheduler settings (tree+table model), and forward them when initiating observation steps. In the preliminaries I worked out, I could also redesign the Scheduler UI into a (relatively ugly) tree view that I showed last year in the forum (or was it even before?).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">-Eric<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">- <a href="mailto:eric.dejouhanet@gmail.com" target="_blank">eric.dejouhanet@gmail.com</a> – <a href="https://astronomy.dejouha.net" target="_blank">https://astronomy.dejouha.net</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p></div></div>
</blockquote></div>