![]() |
Audacity 3.2.0
|
Implements TrackPanel. More...
#include "TrackPanel.h"#include "TrackPanelConstants.h"#include <wx/setup.h>#include "AdornedRulerPanel.h"#include "tracks/ui/CommonTrackPanelCell.h"#include "KeyboardCapture.h"#include "PendingTracks.h"#include "Project.h"#include "ProjectAudioIO.h"#include "ProjectAudioManager.h"#include "ProjectHistory.h"#include "ProjectWindows.h"#include "ProjectSettings.h"#include "ProjectStatus.h"#include "ProjectTimeRuler.h"#include "ProjectWindow.h"#include "SyncLock.h"#include "Theme.h"#include "TrackArt.h"#include "TrackPanelMouseEvent.h"#include "UndoManager.h"#include "UIHandle.h"#include "AColor.h"#include "AllThemeResources.h"#include "AudioIO.h"#include "float_cast.h"#include "Prefs.h"#include "RefreshCode.h"#include "TrackArtist.h"#include "TrackPanelAx.h"#include "TrackPanelResizerCell.h"#include "Viewport.h"#include "WaveTrack.h"#include "FrameStatistics.h"#include "tracks/ui/TrackControls.h"#include "tracks/ui/ChannelView.h"#include "tracks/ui/ChannelVRulerControls.h"#include "../images/Cursors.h"#include <algorithm>#include <wx/dc.h>#include <wx/dcclient.h>#include <wx/graphics.h>#include "RealtimeEffectManager.h"#include "TrackPanelDrawingContext.h"Go to the source code of this file.
Namespaces | |
| namespace | anonymous_namespace{TrackPanel.cpp} |
Macros | |
| #define | CURSORS_SIZE32 |
Enumerations | |
| enum | : int { anonymous_namespace{TrackPanel.cpp}::DisplaceX = 7 , anonymous_namespace{TrackPanel.cpp}::DisplaceY = 1 , anonymous_namespace{TrackPanel.cpp}::MarginX = 8 , anonymous_namespace{TrackPanel.cpp}::MarginY = 2 , anonymous_namespace{TrackPanel.cpp}::MarginsX = 2 * MarginX , anonymous_namespace{TrackPanel.cpp}::MarginsY = 2 * MarginY } |
Functions | |
| template<class A , class B , class DIST > | |
| bool | within (A a, B b, DIST d) |
| std::unique_ptr< wxCursor > | MakeCursor (int WXUNUSED(CursorId), const char *const pXpm[36], int HotX, int HotY) |
| std::shared_ptr< Track > | anonymous_namespace{TrackPanel.cpp}::FindTrack (TrackPanelCell *pCell) |
| std::vector< int > | anonymous_namespace{TrackPanel.cpp}::FindAdjustedChannelHeights (Track &t) |
| Track & | anonymous_namespace{TrackPanel.cpp}::GetTrack (Channel &channel) |
| const Track & | anonymous_namespace{TrackPanel.cpp}::GetTrack (const Channel &channel) |
| void | anonymous_namespace{TrackPanel.cpp}::GetTrackNameExtent (wxDC &dc, const Channel &channel, wxCoord *pW, wxCoord *pH) |
| wxRect | anonymous_namespace{TrackPanel.cpp}::GetTrackNameRect (int leftOffset, const wxRect &trackRect, wxCoord textWidth, wxCoord textHeight) |
Variables | |
| AttachedWindows::RegisteredFactory | anonymous_namespace{TrackPanel.cpp}::sKey |
Implements TrackPanel.
Definition in file TrackPanel.cpp.
| #define CURSORS_SIZE32 |
| std::unique_ptr< wxCursor > MakeCursor | ( | int | WXUNUSEDCursorId, |
| const char *const | pXpm[36], | ||
| int | HotX, | ||
| int | HotY | ||
| ) |
Makes a cursor from an XPM, uses CursorId as a fallback. TODO: Move this function to some other source file for reuse elsewhere.
Definition at line 189 of file TrackPanel.cpp.
References wxImage().
Referenced by anonymous_namespace{BrushHandle.cpp}::CrosshairCursor(), anonymous_namespace{SelectHandle.cpp}::EnvelopeCursor(), LabelTextHandle::HitPreview(), CutlineHandle::HitPreview(), AffordanceHandle::HitPreview(), TimeShiftHandle::HitPreview(), NoteTrackVZoomHandle::HitPreview(), ZoomHandle::HitPreview(), SampleHandle::HitPreview(), StretchHandle::HitPreview(), WaveClipAdjustBorderHandle::HitPreviewStretch(), WaveClipAdjustBorderHandle::HitPreviewTrim(), AdornedRulerPanel::MovePlayRegionHandle::MovePlayRegionHandle(), SubViewAdjustHandle::Preview(), SubViewRearrangeHandle::Preview(), LabelGlyphHandle::Preview(), WaveClipTitleEditHandle::Preview(), EnvelopeHandle::Preview(), TrackSelectHandle::Preview(), anonymous_namespace{SelectHandle.cpp}::SelectCursor(), and anonymous_namespace{SelectHandle.cpp}::SetTipAndCursorForBoundary().
Definition at line 170 of file TrackPanel.cpp.
Referenced by TrackArt::DrawBackgroundWithSelection(), StretchHandle::HitTest(), and NoteTrack::MakeExportableSeq().