Audacity 3.2.0
|
An alternative to ToolBarFrame which can contain an ExpandingToolBar. ToolBarArea is used for a 'docked' ToolBar, ToolBarFrame for a floating one. More...
#include <ExpandingToolBar.h>
Public Member Functions | |
ToolBarArea (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
~ToolBarArea () | |
bool | Layout () override |
void | Fit () override |
void | OnSize (wxSizeEvent &evt) |
void | OnMouse (wxMouseEvent &evt) |
void | CollapseAll (bool now=false) |
void | AddChild (ExpandingToolBar *child) |
void | RemoveChild (ExpandingToolBar *child) |
std::unique_ptr< ToolBarArrangement > | SaveArrangement () |
void | RestoreArrangement (std::unique_ptr< ToolBarArrangement > &&arrangement) |
std::vector< wxRect > | GetDropTargets () |
void | MoveChild (ExpandingToolBar *child, wxRect dropTarget) |
void | SetCapturedChild (ExpandingToolBar *child) |
Public Member Functions inherited from wxPanelWrapper | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Protected Member Functions | |
void | ContractRow (int rowIndex) |
bool | ExpandRow (int rowIndex) |
void | LayoutOne (int childIndex) |
void | AdjustLayout () |
void | Fit (bool horizontal, bool vertical) |
Protected Attributes | |
std::vector< ExpandingToolBar * > | mChildArray |
std::vector< int > | mRowArray |
wxSize | mLastLayoutSize |
bool | mInOnSize |
ExpandingToolBar * | mCapturedChild |
wxSize | mMinSize |
wxSize | mMaxSize |
wxSize | mActualSize |
std::vector< wxRect > | mDropTargets |
std::vector< int > | mDropTargetIndices |
std::vector< int > | mDropTargetRows |
An alternative to ToolBarFrame which can contain an ExpandingToolBar. ToolBarArea is used for a 'docked' ToolBar, ToolBarFrame for a floating one.
Definition at line 196 of file ExpandingToolBar.h.
ToolBarArea::ToolBarArea | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize |
||
) |
Definition at line 843 of file ExpandingToolBar.cpp.
ToolBarArea::~ToolBarArea | ( | ) |
Definition at line 854 of file ExpandingToolBar.cpp.
void ToolBarArea::AddChild | ( | ExpandingToolBar * | child | ) |
Definition at line 1154 of file ExpandingToolBar.cpp.
References Fit(), LayoutOne(), mChildArray, and mRowArray.
Referenced by ExpandingToolBar::OnSize().
|
protected |
Definition at line 1030 of file ExpandingToolBar.cpp.
References ExpandRow(), LayoutOne(), mChildArray, and mRowArray.
Referenced by OnSize().
void ToolBarArea::CollapseAll | ( | bool | now = false | ) |
Definition at line 1146 of file ExpandingToolBar.cpp.
References mChildArray.
Referenced by ExpandingToolBar::FinishMoving(), and ExpandingToolBar::StartMoving().
|
protected |
Definition at line 858 of file ExpandingToolBar.cpp.
References mChildArray, and mRowArray.
Referenced by LayoutOne(), and MoveChild().
|
protected |
Definition at line 877 of file ExpandingToolBar.cpp.
References mChildArray, and mRowArray.
Referenced by AdjustLayout(), and LayoutOne().
|
override |
Definition at line 1052 of file ExpandingToolBar.cpp.
References Fit().
Referenced by AddChild(), Fit(), MoveChild(), OnSize(), RemoveChild(), and RestoreArrangement().
|
protected |
Definition at line 1057 of file ExpandingToolBar.cpp.
References mActualSize, mChildArray, mMaxSize, and mMinSize.
std::vector< wxRect > ToolBarArea::GetDropTargets | ( | ) |
Definition at line 1215 of file ExpandingToolBar.cpp.
References mChildArray, mDropTargetIndices, mDropTargetRows, mDropTargets, and mRowArray.
Referenced by ExpandingToolBar::StartMoving().
|
override |
Definition at line 1012 of file ExpandingToolBar.cpp.
References LayoutOne(), mChildArray, and mRowArray.
Referenced by OnSize().
|
protected |
Definition at line 939 of file ExpandingToolBar.cpp.
References ContractRow(), ExpandRow(), mChildArray, mLastLayoutSize, and mRowArray.
Referenced by AddChild(), AdjustLayout(), Layout(), MoveChild(), and RemoveChild().
void ToolBarArea::MoveChild | ( | ExpandingToolBar * | child, |
wxRect | dropTarget | ||
) |
Definition at line 1251 of file ExpandingToolBar.cpp.
References ContractRow(), Fit(), LayoutOne(), mChildArray, mDropTargetIndices, mDropTargetRows, mDropTargets, and mRowArray.
Referenced by ExpandingToolBar::FinishMoving().
void ToolBarArea::OnMouse | ( | wxMouseEvent & | evt | ) |
Definition at line 1133 of file ExpandingToolBar.cpp.
References ExpandingToolBar::FinishMoving(), mCapturedChild, and ExpandingToolBar::UpdateMoving().
void ToolBarArea::OnSize | ( | wxSizeEvent & | evt | ) |
Definition at line 1106 of file ExpandingToolBar.cpp.
References AdjustLayout(), Fit(), Layout(), mInOnSize, and mLastLayoutSize.
void ToolBarArea::RemoveChild | ( | ExpandingToolBar * | child | ) |
Definition at line 1162 of file ExpandingToolBar.cpp.
References Fit(), LayoutOne(), mChildArray, and mRowArray.
Referenced by ExpandingToolBar::StartMoving().
void ToolBarArea::RestoreArrangement | ( | std::unique_ptr< ToolBarArrangement > && | arrangement | ) |
Definition at line 1198 of file ExpandingToolBar.cpp.
References Fit(), mChildArray, and mRowArray.
Referenced by ExpandingToolBar::FinishMoving().
std::unique_ptr< ToolBarArrangement > ToolBarArea::SaveArrangement | ( | ) |
Definition at line 1184 of file ExpandingToolBar.cpp.
References mChildArray, and mRowArray.
Referenced by ExpandingToolBar::StartMoving().
void ToolBarArea::SetCapturedChild | ( | ExpandingToolBar * | child | ) |
Definition at line 1280 of file ExpandingToolBar.cpp.
References mCapturedChild.
Referenced by ExpandingToolBar::FinishMoving(), and ExpandingToolBar::StartMoving().
|
protected |
Definition at line 243 of file ExpandingToolBar.h.
Referenced by Fit().
|
protected |
Definition at line 239 of file ExpandingToolBar.h.
Referenced by OnMouse(), and SetCapturedChild().
|
protected |
Definition at line 234 of file ExpandingToolBar.h.
Referenced by AddChild(), AdjustLayout(), CollapseAll(), ContractRow(), ExpandRow(), Fit(), GetDropTargets(), Layout(), LayoutOne(), MoveChild(), RemoveChild(), RestoreArrangement(), and SaveArrangement().
|
protected |
Definition at line 246 of file ExpandingToolBar.h.
Referenced by GetDropTargets(), and MoveChild().
|
protected |
Definition at line 247 of file ExpandingToolBar.h.
Referenced by GetDropTargets(), and MoveChild().
|
protected |
Definition at line 245 of file ExpandingToolBar.h.
Referenced by GetDropTargets(), and MoveChild().
|
protected |
Definition at line 237 of file ExpandingToolBar.h.
Referenced by OnSize().
|
protected |
Definition at line 236 of file ExpandingToolBar.h.
Referenced by LayoutOne(), and OnSize().
|
protected |
Definition at line 242 of file ExpandingToolBar.h.
Referenced by Fit().
|
protected |
Definition at line 241 of file ExpandingToolBar.h.
Referenced by Fit().
|
protected |
Definition at line 235 of file ExpandingToolBar.h.
Referenced by AddChild(), AdjustLayout(), ContractRow(), ExpandRow(), GetDropTargets(), Layout(), LayoutOne(), MoveChild(), RemoveChild(), RestoreArrangement(), and SaveArrangement().