Audacity 3.2.0
|
#include <ToolDock.h>
Classes | |
class | Iterator |
struct | Legacy |
struct | Place |
struct | Position |
struct | Tree |
Public Member Functions | |
void | Swap (ToolBarConfiguration &that) |
void | Clear () |
Iterator | begin () |
Iterator | end () const |
Position | Find (const ToolBar *bar) const |
ToolBar * | FindToolBar (Identifier id) const |
bool | Contains (const ToolBar *bar) const |
void | Insert (ToolBar *bar, Position position=UnspecifiedPosition) |
void | InsertAtPath (ToolBar *bar, const std::vector< int > &path) |
void | Remove (const ToolBar *bar) |
bool | Shows (const ToolBar *bar) const |
void | Show (ToolBar *bar) |
void | Hide (ToolBar *bar) |
bool | IsRightmost (const ToolBar *bar) const |
void | PostRead (Legacy &legacy) |
Static Public Member Functions | |
static bool | Read (ToolBarConfiguration *pConfiguration, Legacy *pLegacy, ToolBar *bar, bool &visible, bool defaultVisible) |
static void | Write (const ToolBarConfiguration *pConfiguration, const ToolBar *bar) |
Static Public Attributes | |
static const Position | UnspecifiedPosition { false } |
Private Types | |
using | Forest = std::vector< Tree > |
Private Member Functions | |
void | Remove (Forest &forest, Forest::iterator iter) |
void | RemoveNulls (Forest &forest) |
Iterator | FindPlace (const ToolBar *bar) const |
std::pair< Forest *, Forest::iterator > | FindPeers (const ToolBar *bar) |
Private Attributes | |
Forest | mForest |
Definition at line 50 of file ToolDock.h.
|
private |
Definition at line 53 of file ToolDock.h.
|
inline |
Definition at line 229 of file ToolDock.h.
Referenced by Insert().
|
inline |
Definition at line 62 of file ToolDock.h.
References mForest.
Referenced by ToolManager::Destroy(), ToolManager::DoneDragging(), ToolDock::RestoreConfiguration(), ToolDock::VisitLayout(), and ToolDock::WrapConfiguration().
|
inline |
Definition at line 235 of file ToolDock.h.
References Find(), and UnspecifiedPosition.
Referenced by ToolDock::Dock(), Show(), Shows(), ToolDock::Undock(), and ToolManager::WriteConfig().
|
inline |
Definition at line 230 of file ToolDock.h.
Referenced by FindToolBar(), Insert(), IsRightmost(), and Write().
auto ToolBarConfiguration::Find | ( | const ToolBar * | bar | ) | const |
Definition at line 87 of file ToolDock.cpp.
References details::end().
Referenced by Contains(), and ToolManager::OnGrabber().
|
private |
Definition at line 62 of file ToolDock.cpp.
References details::begin(), ToolBarConfiguration::Tree::children, details::end(), and ToolBarConfiguration::Place::pTree.
Referenced by Remove().
|
private |
Definition at line 52 of file ToolDock.cpp.
Referenced by Insert(), IsRightmost(), and Write().
ToolBar * ToolBarConfiguration::FindToolBar | ( | Identifier | id | ) | const |
Definition at line 96 of file ToolDock.cpp.
References Identifier::empty(), end(), ToolBarConfiguration::Tree::pBar, and ToolBarConfiguration::Place::pTree.
Referenced by Show().
void ToolBarConfiguration::Hide | ( | ToolBar * | bar | ) |
Definition at line 257 of file ToolDock.cpp.
References Remove().
Referenced by ToolDock::Expose().
void ToolBarConfiguration::Insert | ( | ToolBar * | bar, |
Position | position = UnspecifiedPosition |
||
) |
Definition at line 110 of file ToolDock.cpp.
References ToolBarConfiguration::Position::adopt, begin(), ToolBarConfiguration::Position::below, ToolBarConfiguration::Tree::children, end(), FindPlace(), mForest, ToolBarConfiguration::Tree::pBar, ToolBarConfiguration::Position::rightOf, toolbarGap, and UnspecifiedPosition.
Referenced by ToolDock::Dock(), PostRead(), Show(), and ToolDock::VisitLayout().
void ToolBarConfiguration::InsertAtPath | ( | ToolBar * | bar, |
const std::vector< int > & | path | ||
) |
Definition at line 188 of file ToolDock.cpp.
References mForest.
Referenced by Read().
bool ToolBarConfiguration::IsRightmost | ( | const ToolBar * | bar | ) | const |
Definition at line 263 of file ToolDock.cpp.
References end(), and FindPlace().
void ToolBarConfiguration::PostRead | ( | Legacy & | legacy | ) |
Definition at line 334 of file ToolDock.cpp.
References ToolBarConfiguration::Legacy::bars, Insert(), mForest, and RemoveNulls().
Referenced by ToolManager::ReadConfig().
|
static |
Definition at line 280 of file ToolDock.cpp.
References ToolBarConfiguration::Legacy::bars, gPrefs, InsertAtPath(), audacity::BasicSettings::Read(), and wxT().
Referenced by ToolManager::ReadConfig().
void ToolBarConfiguration::Remove | ( | const ToolBar * | bar | ) |
Definition at line 224 of file ToolDock.cpp.
References FindPeers(), and Remove().
Referenced by Hide(), ToolManager::OnMouse(), Remove(), RemoveNulls(), and ToolDock::Undock().
|
private |
Definition at line 209 of file ToolDock.cpp.
References ToolBarConfiguration::Tree::children, and ToolBarConfiguration::Tree::swap().
|
private |
Definition at line 322 of file ToolDock.cpp.
References Remove(), and RemoveNulls().
Referenced by PostRead(), and RemoveNulls().
void ToolBarConfiguration::Show | ( | ToolBar * | bar | ) |
Definition at line 236 of file ToolDock.cpp.
References Contains(), FindToolBar(), Insert(), ToolBar::PreferredNeighbors(), and UnspecifiedPosition.
Referenced by ToolDock::Expose().
|
inline |
Definition at line 248 of file ToolDock.h.
References Contains().
Referenced by ToolDock::Expose().
|
inline |
Definition at line 57 of file ToolDock.h.
References mForest.
Referenced by ToolDock::RestoreConfiguration(), and ToolDock::WrapConfiguration().
|
static |
Definition at line 354 of file ToolDock.cpp.
References audacity::BasicSettings::DeleteEntry(), end(), FindPlace(), ToolBarConfiguration::Iterator::GetPath(), gPrefs, ToolBar::IsVisible(), audacity::BasicSettings::Write(), and wxT().
Referenced by ToolManager::WriteConfig().
|
private |
Definition at line 288 of file ToolDock.h.
Referenced by Clear(), Insert(), InsertAtPath(), ToolBarConfiguration::Iterator::Iterator(), PostRead(), and Swap().
|
static |
Definition at line 106 of file ToolDock.h.
Referenced by Contains(), ToolManager::DoneDragging(), Insert(), ToolDock::PositionBar(), and Show().