Spawn new Tab instances from a TabManager
Hello, I am extending the editor and created a ToolbarExtender for the LovelEditorModule, basically a new button. The button should spawn a new Tab instance every time is clicked.
The tab is created through a tab manager and then register a tab spawner, hoping this would suffice to have a tab "factory", but my button is only able to spawn one instance of this tab.
Here I show you how I create a new Tab Manager and register a tab Spawner
In my command list I include the action that opens the tab, this is what actually bind the button action to the creation of the tab.
And implementing OpenTab
What do I need to to change to create a new instance of the "MainTab" every time I click the button?
For the tests I have done, I know I can use
for the global tab manager, but haven't found using another TabManager.
In any case, if it would be possible to use the GlobalTabmanager to spawn new Tab instances, how would that work? Appreciate any corrections. Thank you.
asked Sep 21 '15 at 04:26 PM in C++ Programming
I find the solution in the SlateViewer, sorry but when learning and trying for the first time with slate, things get messier very quickly. To actually generate the tabs use the following method
I don't understand yet what does it mean the ESearchPreference enum (PreferLiveTab & RequireClosedTab), if someone can explain the difference on using one or the other.
Another problem I encounter restoring the tabs when re-opening the Editor, how do I make sure MyTabManager is properly restored?
Follow this question
Once you sign in you will be able to subscribe for any updates here