MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / floatCurrentWidget

Method floatCurrentWidget

Gui/TabWidget.cpp:810–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810void
811TabWidget::floatCurrentWidget()
812{
813 if ( _imp->tabs.empty() ) {
814 return;
815 }
816 if ( !_imp->closeButton->isEnabled() ) {
817 ///Make a new tab widget and float it instead
818 TabWidget* newPane = new TabWidget(_imp->gui, _imp->gui);
819 _imp->gui->registerPane(newPane);
820 newPane->setObjectName_mt_safe( _imp->gui->getAvailablePaneName() );
821
822 PanelWidget* w;
823 ScriptObject* o;
824 currentWidget(&w, &o);
825 if (w && o) {
826 moveTab(w, o, newPane);
827 }
828 newPane->floatPane();
829 } else {
830 ///Float this tab
831 floatPane();
832 }
833}
834
835void
836TabWidget::closeCurrentWidget()

Callers 1

floatCurrentTabMethod · 0.80

Calls 6

emptyMethod · 0.80
registerPaneMethod · 0.80
getAvailablePaneNameMethod · 0.80
isEnabledMethod · 0.45
setObjectName_mt_safeMethod · 0.45
floatPaneMethod · 0.45

Tested by

no test coverage detected