missing feature to move tabs with opened files
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
missing feature to move tabs with opened files
- open several different files in FC 0.18
- for a better workflow in different designing stages you might for example move the file you opened the last (which is therefore the rightmost tab) to the leftmost tab position.
-> The problem is that you cannot move tabs in general. Qt however, allows this.
I stumbled over this several times now because I use this feature a lot in different programs (LibreOffice to move table tabs, Firefox to move website tabs etc.).
Thus I think it would be a nice and most probably easy to implement feature. Do you agree?
I searched for this feature but since I could not find it yet, I would open a feature request in the tracker.
- for a better workflow in different designing stages you might for example move the file you opened the last (which is therefore the rightmost tab) to the leftmost tab position.
-> The problem is that you cannot move tabs in general. Qt however, allows this.
I stumbled over this several times now because I use this feature a lot in different programs (LibreOffice to move table tabs, Firefox to move website tabs etc.).
Thus I think it would be a nice and most probably easy to implement feature. Do you agree?
I searched for this feature but since I could not find it yet, I would open a feature request in the tracker.
Re: missing feature to move tabs with opened files
This was requested before. See issue #3648.
Essentially, you need to hack the code of src/Gui/MainWindow.cpp, and see how to fix this by playing with QMainWindow, or QTabWidget, or whatever. It doesn't seem to be particularly difficult to do, but somebody needs to sit down and do it, and make sure nothing major breaks. Since this isn't a critical problem, nobody has dedicated the time to change the way the Main Window works.
See this thread post for a quick example implementation.
Also, yes, you could organize the tabs however you want, but I would prefer to limit the re-organization to the tabs that belong only to one particular file. This would be a bit more complicated, I think.
Example
Code: Select all
boundary boundary
| |
----------------------------------------------------v--------------------------------v--------------
|Tab1: File1 | Tab2: File1_view | Tab3: File1_view2 | Tab4: File2 | Tab5: File2_view | Tab6: File3 |
----------------------------------------------------------------------------------------------------
For example, moving Tab2 between Tab4 and Tab5 would make it seem that File1_view belongs to File2, when in reality it belongs to File1.
Another thing that would make sense would be to use nested tabbed windows; the first one would hold the main files, and a nested window would hold the tabs for objects, views, spreadsheets, etc.
Code: Select all
boundary boundary
| |
--------------------------------------v------------------v--------------
|Tab2: File1_view | Tab3: File1_view2 | Tab5: File2_view |
|Tab1: File1 | Tab4: File2 | Tab6: File3 |
-------------------------------------------------------------------------
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: missing feature to move tabs with opened files
Thanks vocx. I could bet that someone must have requested this too but did not find this.
I see the challenges of the implementation and cannot help right now. I planned to get more familiar with the FC code but due to lack of time I could not have a deeper look.
Re: missing feature to move tabs with opened files
Many thanks triplus. That was the simple solution I had in mind. But vocx's note is important as well.
I think the file name in the tabs should make clear to which file e.g. a spreadsheet tab belongs to.
Re: missing feature to move tabs with opened files
You're welcome.
The basic idea behind this thread and issue #3648 makes sense to me. People are confronted with all sort of (document) tabs during the FreeCAD session. In general, people being able to move tabs, that does make sense to me. And therefore possible now.But vocx's note is important as well.
I think the file name in the tabs should make clear to which file e.g. a spreadsheet tab belongs to.
As for some more complex tab management done automatically by FreeCAD. I don't plan to work on that and don't have a strong opinion on it. That is if somebody else would like to implement something like that. Taking a quick look i guess the suggested PartName_Spreadsheet formatting suggestion is not all that human readable approach. In addition with more tab text the tab itself gets bigger. People that do want to use such formatting can do that manually. By for example renaming the spreadsheet item in the tree view. New name should be reflected in the tab text.
Re: missing feature to move tabs with opened files
I agree.
I think rather than using a special name a solution would be to bundle the spreadsheet tab to its model tab. So if you have e.g. 2 models open and you move the tab of model 1 to the rightmost position, its spreadsheet tab will keep its position right of the model tab and therefore it will also be moved to the rightmost position. So
Model 1 | Spreadsheet 1 | Model 2 | Spreadsheet 2
becomes after the movement
Model 2 | Spreadsheet 2 | Model 1 | Spreadsheet 1
This should work in every case. it only fixes the position of a spreadsheet tab right to its connected model tab.
Re: missing feature to move tabs with opened files
As the tabs can be rearranged by the user why not just leaving the order to them?
This sure is most sensible in many cases, but it may not always be the best. I can well imagine situations where I want to have all documents in one block, pages in the next and spreadsheets in another. So I would like to see the tabs either left without any predefined order or at least to have a parameter to switch between different strategies, one of them being "freee order".
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: missing feature to move tabs with opened files
Hmm, I cannot imagine a real-life use case where this would be helpful as long as the spreadsheet tabs have nothing in their name to be able to know to what model tab they belong to.
Re: missing feature to move tabs with opened files
A distinction would indeed be very helpful.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.