MCPcopy Create free account
hub / github.com/audacity/audacity / SetDocked

Method SetDocked

src/toolbars/ToolBar.cpp:661–679  ·  view source on GitHub ↗

Toggle the docked/floating state

Source from the content-addressed store, hash-verified

659// Toggle the docked/floating state
660//
661void ToolBar::SetDocked( ToolDock *dock, bool pushed )
662{
663 // Remember it
664// mDock = dock;
665
666 // Change the tooltip of the grabber
667#if wxUSE_TOOLTIPS
668 mGrabber->SetToolTip( GetTitle() );
669#endif
670
671 // Set the grabber button state
672 mGrabber->PushButton( pushed );
673
674 if (mResizer)
675 {
676 mResizer->Show(dock != NULL);
677 Layout();
678 }
679}
680
681//
682// Notify parent of changes

Callers 8

ToolFrameMethod · 0.45
ResetMethod · 0.45
ReadConfigMethod · 0.45
OnMouseMethod · 0.45
UndockBarMethod · 0.45
HandleEscapeKeyMethod · 0.45
DoneDraggingMethod · 0.45
DockMethod · 0.45

Calls 3

PushButtonMethod · 0.80
SetToolTipMethod · 0.45
ShowMethod · 0.45

Tested by

no test coverage detected