-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved the log window to the first tab in the script window #8191
Moved the log window to the first tab in the script window #8191
Conversation
Ongoing, nothing to test yet |
…ly enabled/disabled
@rdstern I implemented the log tab in the script window. I now need to test it thoroughly. Before I test, there's one thing I'd still like to clarify. There are currently four ways of opening the log/script window: two view menu buttons and two toolbar buttons. You originally requested that we keep all four options, and each option would open the log/script window. The only difference would be that the log buttons would open the log tab, and the script buttons would open one of the script tabs. I started to implement this but it fast becomes confusing for the user, and also adds extra compexity/risk to the code. For example, when should the buttons be ticked? If the log tab is selected then should only the log button be ticked? What if the user previously selected a script tab and later clicked a log button? should the script button then be unticked? The code would also need to separately store which script tab was last selected, independent from the log tab. I think it would be simpler and more intuitive for the user to have one view menu button ('Script/Log Window') and one toolbar button (i.e. remove the log button dropdown menu and update the tooltip). Each button would have the save functionality: toggle if the script/log window is visible. The first time the script/log is made visible, it would highlight the first script tab. If the script/log window is then toggled off and later on, then it would just reappear in the same state as when it was last closed (e.g. with the same tab highlighted). What are your thoughts? |
@lloyddewit, my suggestions are as follows: Here is the drop-down for the last 10 dialogues: Note, no ticks and rhe names are sort of the names of the dialogues. Now one (big?) use of the scripts correesponds to the idea that there is a
|
@rdstern Thank you for the analysis and all the great comments.
Yes, all agreed
I assume that you mean it should list the last ten tabs opened. For me, this is inconsistent with how other tabbed applications work (e.g. browsers, spreadsheets etc). A browser just opens with all the tabs visible and the last used tab selected. I have never heard a user complaining that they would like to open their browser with a pull down menu that lists the tabs they last viewed. This would be more clicks for the user and the list of tab titles would be less visible and intuitive than just seeing the tabs in the application. In addition, tabs may have been renamed or removed since they were visited. So we would either need to add complexity managing the list, or present the user with an unreliable list.
If the user clicks the 'To Script' button, then the current behaviour in this PR is to write to the currently open script tab. There are some special cases (e.g. log/script window never opened or not visible; log tab selected and just one script tab, log tab selected and multiple script tabs etc.). I tried to handle all these cases in the code in a way that is simple and intuitive for the user. It is not efficient to describe the special cases here. I suggest that you try the code in this PR and see if is acceptable to merge. If more complexity is needed, then we could add it in a separate PR (could potentially be done by a different developer). |
@lloyddewit I am ok with your simpler solution - at least for now. So ignore my comment c) above. I think this means there is no drop down for this item on the toolbar. Nice and simple. |
@rdstern Please could you test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lloyddewit this is looking very nice - and I couldn't break it! I did try!
It would be great to merge, so I am approving.
The one thing I couldn't do was rename any of the script tabs? Would that be possible? {perhaps there could be a rename button, and then the current name becomes editable? Or you could double-click on the name and then edit. Or right-click on the name and choose Rename?
Or I have missed the way to rename now?
The help is working, and a message to myself is that we need now to change the help file so it applies to both, i.e. Log/Script Window - and then write the contents.
@rdstern Thank you for approving! @ChrisMarsh82 Please could you do a code review? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good. There is a possible slight tweak that the 'help' button could go to Log Window in the help button if that tab is selected. However, this is definitely not essential
@rdstern Should we add this to issue #7989 ? Or do you think it's OK to have a combined help page for the whole script window? |
@lloyddewit I am happy you merged. I was assuming I would change the help to correspond the the new log/script option. But that's interesting too. Let me ponder more - and perhaps check with @rachelkg |
Fixes #8190