Audacity 3.2.0
Classes | Namespaces | Macros | Functions | Variables
ViewMenus.cpp File Reference
#include "../CommonCommandFlags.h"
#include "../Menus.h"
#include "Prefs.h"
#include "Project.h"
#include "ProjectHistory.h"
#include "../ProjectSettings.h"
#include "../ProjectWindow.h"
#include "Track.h"
#include "../TrackInfo.h"
#include "../TrackPanel.h"
#include "UndoManager.h"
#include "ViewInfo.h"
#include "../commands/CommandContext.h"
#include "../commands/CommandManager.h"
#include "../prefs/GUIPrefs.h"
#include "../prefs/TracksPrefs.h"
#include "../tracks/ui/TrackView.h"
#include <wx/app.h>
#include <wx/scrolbar.h>
Include dependency graph for ViewMenus.cpp:

Go to the source code of this file.


struct  ViewActions::Handler


namespace  anonymous_namespace{ViewMenus.cpp}
namespace  ViewActions


#define FN(X)   (& ViewActions::Handler :: X)


double anonymous_namespace{ViewMenus.cpp}::GetZoomOfSelection (const AudacityProject &project)
double anonymous_namespace{ViewMenus.cpp}::GetZoomOfPreset (const AudacityProject &project, int preset)
void anonymous_namespace{ViewMenus.cpp}::DoZoomFitV (AudacityProject &project)
static CommandHandlerObjectfindCommandHandler (AudacityProject &project)
BaseItemSharedPtr anonymous_namespace{ViewMenus.cpp}::ViewMenu ()


static const AudacityProject::AttachedObjects::RegisteredFactory key
AttachedItem anonymous_namespace{ViewMenus.cpp}::sAttachment1

Macro Definition Documentation

◆ FN

#define FN (   X)    (& ViewActions::Handler :: X)

Definition at line 391 of file ViewMenus.cpp.

Function Documentation

◆ findCommandHandler()

static CommandHandlerObject & findCommandHandler ( AudacityProject project)

Definition at line 385 of file ViewMenus.cpp.

385 {
386 return project.AttachedObjects::Get< ViewActions::Handler >( key );
static const AudacityProject::AttachedObjects::RegisteredFactory key
Definition: ViewMenus.cpp:381

References key.

Referenced by anonymous_namespace{ViewMenus.cpp}::ViewMenu().

Here is the caller graph for this function:

Variable Documentation

◆ key

Initial value:
[]( AudacityProject &project ) {
return std::make_unique< ViewActions::Handler >( project ); } }
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90

Definition at line 381 of file ViewMenus.cpp.

Referenced by findCommandHandler().