Audacity  2.2.2
Enumerations | Functions | Variables
LabelTrack.cpp File Reference
#include "Audacity.h"
#include "LabelTrack.h"
#include "Experimental.h"
#include "TrackPanel.h"
#include <stdio.h>
#include <algorithm>
#include <limits.h>
#include <float.h>
#include <wx/bitmap.h>
#include <wx/brush.h>
#include <wx/clipbrd.h>
#include <wx/dataobj.h>
#include <wx/dc.h>
#include <wx/dcclient.h>
#include <wx/event.h>
#include <wx/intl.h>
#include <wx/log.h>
#include <wx/pen.h>
#include <wx/string.h>
#include <wx/textfile.h>
#include <wx/tokenzr.h>
#include <wx/utils.h>
#include "AudioIO.h"
#include "DirManager.h"
#include "Internat.h"
#include "Prefs.h"
#include "RefreshCode.h"
#include "Theme.h"
#include "AllThemeResources.h"
#include "AColor.h"
#include "Project.h"
#include "TrackArtist.h"
#include "UndoManager.h"
#include "commands/CommandManager.h"
#include "effects/TimeWarper.h"
#include "widgets/ErrorDialog.h"
#include "tracks/labeltrack/ui/LabelGlyphHandle.h"
#include "TrackPanelDrawingContext.h"
#include "tracks/labeltrack/ui/LabelTextHandle.h"

Go to the source code of this file.

Enumerations

enum  {
  OnCutSelectedTextID = 1, OnCopySelectedTextID, OnPasteSelectedTextID, OnDeleteSelectedLabelID,
  OnEditSelectedLabelID
}
 

Functions

static int Constrain (int value, int min, int max)
 

Variables

static const char *const GlyphXpmRegionSpec []
 

Enumeration Type Documentation

anonymous enum
Enumerator
OnCutSelectedTextID 
OnCopySelectedTextID 
OnPasteSelectedTextID 
OnDeleteSelectedLabelID 
OnEditSelectedLabelID 

Definition at line 73 of file LabelTrack.cpp.

Function Documentation

static int Constrain ( int  value,
int  min,
int  max 
)
static

Definition at line 1462 of file LabelTrack.cpp.

References min().

Referenced by LabelTrack::HandleGlyphDragRelease().

1463 {
1464  wxASSERT( min <= max );
1465  int result=value;
1466  if( result < min )
1467  result=min;
1468  if( result > max )
1469  result=max;
1470  return result;
1471 }
int min(int a, int b)

Variable Documentation

const char* const GlyphXpmRegionSpec[]
static

Definition at line 2798 of file LabelTrack.cpp.

Referenced by LabelTrack::CreateCustomGlyphs().