Audacity  2.2.2
Typedefs | Enumerations | Functions
CommandFlag.h File Reference

Go to the source code of this file.

Typedefs

using CommandMask = CommandFlag
 

Enumerations

enum  CommandFlag : unsigned long long {
  AlwaysEnabledFlag = 0x00000000, AudioIONotBusyFlag = 0x00000001, TimeSelectedFlag = 0x00000002, TracksSelectedFlag = 0x00000004,
  TracksExistFlag = 0x00000008, LabelTracksExistFlag = 0x00000010, WaveTracksSelectedFlag = 0x00000020, ClipboardFlag = 0x00000040,
  TextClipFlag = 0x00000040, UnsavedChangesFlag = 0x00000080, HasLastEffectFlag = 0x00000100, UndoAvailableFlag = 0x00000200,
  RedoAvailableFlag = 0x00000400, ZoomInAvailableFlag = 0x00000800, ZoomOutAvailableFlag = 0x00001000, StereoRequiredFlag = 0x00002000,
  TopDockHasFocus = 0x00004000, TrackPanelHasFocus = 0x00008000, BotDockHasFocus = 0x00010000, LabelsSelectedFlag = 0x00020000,
  AudioIOBusyFlag = 0x00040000, PlayRegionLockedFlag = 0x00080000, PlayRegionNotLockedFlag = 0x00100000, CutCopyAvailableFlag = 0x00200000,
  WaveTracksExistFlag = 0x00400000, NoteTracksExistFlag = 0x00800000, NoteTracksSelectedFlag = 0x01000000, HaveRecentFiles = 0x02000000,
  IsNotSyncLockedFlag = 0x04000000, IsSyncLockedFlag = 0x08000000, IsRealtimeNotActiveFlag = 0x10000000, CaptureNotBusyFlag = 0x20000000,
  CanStopAudioStreamFlag = 0x40000000, RulerHasFocus = 0x80000000ULL, NotMinimizedFlag = 0x100000000ULL, PausedFlag = 0x200000000ULL,
  NotPausedFlag = 0x400000000ULL, HasWaveDataFlag = 0x800000000ULL, PlayableTracksExistFlag = 0x1000000000ULL, AudioTracksSelectedFlag = 0x2000000000ULL,
  NoAutoSelect = 0x4000000000ULL, NoFlagsSpecifed = ~0ULL
}
 

Functions

bool operator== (CommandFlag, unsigned long) PROHIBITED
 
bool operator== (CommandFlag, long) PROHIBITED
 
bool operator== (unsigned long, CommandFlag) PROHIBITED
 
bool operator== (long, CommandFlag) PROHIBITED
 
bool operator!= (CommandFlag, unsigned long) PROHIBITED
 
bool operator!= (CommandFlag, long) PROHIBITED
 
bool operator!= (unsigned long, CommandFlag) PROHIBITED
 
bool operator!= (long, CommandFlag) PROHIBITED
 
CommandFlag operator& (CommandFlag, unsigned long) PROHIBITED
 
CommandFlag operator& (CommandFlag, long) PROHIBITED
 
CommandFlag operator& (unsigned long, CommandFlag) PROHIBITED
 
CommandFlag operator& (long, CommandFlag) PROHIBITED
 
CommandFlag operator| (CommandFlag, unsigned long) PROHIBITED
 
CommandFlag operator| (CommandFlag, long) PROHIBITED
 
CommandFlag operator| (unsigned long, CommandFlag) PROHIBITED
 
CommandFlag operator| (long, CommandFlag) PROHIBITED
 
CommandFlag operator^ (CommandFlag, unsigned long) PROHIBITED
 
CommandFlag operator^ (CommandFlag, long) PROHIBITED
 
CommandFlag operator^ (unsigned long, CommandFlag) PROHIBITED
 
CommandFlag operator^ (long, CommandFlag) PROHIBITED
 
bool operator== (CommandFlag, int) PROHIBITED
 
bool operator== (int, CommandFlag) PROHIBITED
 
bool operator!= (CommandFlag, int) PROHIBITED
 
bool operator!= (int, CommandFlag) PROHIBITED
 
CommandFlag operator& (CommandFlag, int) PROHIBITED
 
CommandFlag operator& (int, CommandFlag) PROHIBITED
 
CommandFlag operator| (CommandFlag, int) PROHIBITED
 
CommandFlag operator| (int, CommandFlag) PROHIBITED
 
CommandFlag operator^ (CommandFlag, int) PROHIBITED
 
CommandFlag operator^ (int, CommandFlag) PROHIBITED
 
CommandFlag operator~ (CommandFlag flag)
 
CommandFlag operator& (CommandFlag lhs, CommandFlag rhs)
 
CommandFlag operator| (CommandFlag lhs, CommandFlag rhs)
 
CommandFlagoperator|= (CommandFlag &lhs, CommandFlag rhs)
 

Typedef Documentation

Definition at line 142 of file CommandFlag.h.

Enumeration Type Documentation

enum CommandFlag : unsigned long long
Enumerator
AlwaysEnabledFlag 
AudioIONotBusyFlag 
TimeSelectedFlag 
TracksSelectedFlag 
TracksExistFlag 
LabelTracksExistFlag 
WaveTracksSelectedFlag 
ClipboardFlag 
TextClipFlag 
UnsavedChangesFlag 
HasLastEffectFlag 
UndoAvailableFlag 
RedoAvailableFlag 
ZoomInAvailableFlag 
ZoomOutAvailableFlag 
StereoRequiredFlag 
TopDockHasFocus 
TrackPanelHasFocus 
BotDockHasFocus 
LabelsSelectedFlag 
AudioIOBusyFlag 
PlayRegionLockedFlag 
PlayRegionNotLockedFlag 
CutCopyAvailableFlag 
WaveTracksExistFlag 
NoteTracksExistFlag 
NoteTracksSelectedFlag 
HaveRecentFiles 
IsNotSyncLockedFlag 
IsSyncLockedFlag 
IsRealtimeNotActiveFlag 
CaptureNotBusyFlag 
CanStopAudioStreamFlag 
RulerHasFocus 
NotMinimizedFlag 
PausedFlag 
NotPausedFlag 
HasWaveDataFlag 
PlayableTracksExistFlag 
AudioTracksSelectedFlag 
NoAutoSelect 
NoFlagsSpecifed 

Definition at line 16 of file CommandFlag.h.

16  : unsigned long long
17 {
18  AlwaysEnabledFlag = 0x00000000,
19 
20  AudioIONotBusyFlag = 0x00000001,
21  TimeSelectedFlag = 0x00000002, // This is equivalent to check if there is a valid selection, so it's used for Zoom to Selection too
22  TracksSelectedFlag = 0x00000004,
23  TracksExistFlag = 0x00000008,
24  LabelTracksExistFlag = 0x00000010,
25  WaveTracksSelectedFlag = 0x00000020,
26  ClipboardFlag = 0x00000040,
27  TextClipFlag = 0x00000040, // Same as Clipboard flag for now.
28  UnsavedChangesFlag = 0x00000080,
29  HasLastEffectFlag = 0x00000100,
30  UndoAvailableFlag = 0x00000200,
31  RedoAvailableFlag = 0x00000400,
32  ZoomInAvailableFlag = 0x00000800,
33  ZoomOutAvailableFlag = 0x00001000,
34  StereoRequiredFlag = 0x00002000, //lda
35  TopDockHasFocus = 0x00004000, //lll
36  TrackPanelHasFocus = 0x00008000, //lll
37  BotDockHasFocus = 0x00010000, //lll
38  LabelsSelectedFlag = 0x00020000,
39  AudioIOBusyFlag = 0x00040000, //lll
40  PlayRegionLockedFlag = 0x00080000, //msmeyer
41  PlayRegionNotLockedFlag= 0x00100000, //msmeyer
42  CutCopyAvailableFlag = 0x00200000,
43  WaveTracksExistFlag = 0x00400000,
44  NoteTracksExistFlag = 0x00800000, //gsw
45  NoteTracksSelectedFlag = 0x01000000, //gsw
46  HaveRecentFiles = 0x02000000,
47  IsNotSyncLockedFlag = 0x04000000, //awd
48  IsSyncLockedFlag = 0x08000000, //awd
49  IsRealtimeNotActiveFlag= 0x10000000, //lll
50  CaptureNotBusyFlag = 0x20000000,
51  CanStopAudioStreamFlag = 0x40000000,
52  RulerHasFocus = 0x80000000ULL, // prl
53  NotMinimizedFlag = 0x100000000ULL, // prl
54  PausedFlag = 0x200000000ULL, // jkc
55  NotPausedFlag = 0x400000000ULL, // jkc
56  HasWaveDataFlag = 0x800000000ULL, // jkc
57  PlayableTracksExistFlag = 0x1000000000ULL,
58  AudioTracksSelectedFlag = 0x2000000000ULL,
59  NoAutoSelect = 0x4000000000ULL, // jkc
60 
61  NoFlagsSpecifed = ~0ULL
62 };

Function Documentation

bool operator!= ( CommandFlag  ,
unsigned  long 
)
bool operator!= ( CommandFlag  ,
long   
)
bool operator!= ( unsigned  long,
CommandFlag   
)
bool operator!= ( long  ,
CommandFlag   
)
bool operator!= ( CommandFlag  ,
int   
)
bool operator!= ( int  ,
CommandFlag   
)
CommandFlag operator& ( CommandFlag  ,
unsigned  long 
)
CommandFlag operator& ( CommandFlag  ,
long   
)
CommandFlag operator& ( unsigned  long,
CommandFlag   
)
CommandFlag operator& ( long  ,
CommandFlag   
)
CommandFlag operator& ( CommandFlag  ,
int   
)
CommandFlag operator& ( int  ,
CommandFlag   
)
CommandFlag operator& ( CommandFlag  lhs,
CommandFlag  rhs 
)
inline

Definition at line 122 of file CommandFlag.h.

123 {
124  return static_cast<CommandFlag> (
125  static_cast<unsigned long long>(lhs) &
126  static_cast<unsigned long long>(rhs)
127  );
128 }
CommandFlag
Definition: CommandFlag.h:16
bool operator== ( CommandFlag  ,
unsigned  long 
)
bool operator== ( CommandFlag  ,
long   
)
bool operator== ( unsigned  long,
CommandFlag   
)
bool operator== ( long  ,
CommandFlag   
)
bool operator== ( CommandFlag  ,
int   
)
bool operator== ( int  ,
CommandFlag   
)
CommandFlag operator^ ( CommandFlag  ,
unsigned  long 
)
CommandFlag operator^ ( CommandFlag  ,
long   
)
CommandFlag operator^ ( unsigned  long,
CommandFlag   
)
CommandFlag operator^ ( long  ,
CommandFlag   
)
CommandFlag operator^ ( CommandFlag  ,
int   
)
CommandFlag operator^ ( int  ,
CommandFlag   
)
CommandFlag operator| ( CommandFlag  ,
unsigned  long 
)
CommandFlag operator| ( CommandFlag  ,
long   
)
CommandFlag operator| ( unsigned  long,
CommandFlag   
)
CommandFlag operator| ( long  ,
CommandFlag   
)
CommandFlag operator| ( CommandFlag  ,
int   
)
CommandFlag operator| ( int  ,
CommandFlag   
)
CommandFlag operator| ( CommandFlag  lhs,
CommandFlag  rhs 
)
inline

Definition at line 129 of file CommandFlag.h.

130 {
131  return static_cast<CommandFlag> (
132  static_cast<unsigned long long>(lhs) |
133  static_cast<unsigned long long>(rhs)
134  );
135 }
CommandFlag
Definition: CommandFlag.h:16
CommandFlag& operator|= ( CommandFlag lhs,
CommandFlag  rhs 
)
inline

Definition at line 136 of file CommandFlag.h.

137 {
138  lhs = lhs | rhs;
139  return lhs;
140 }
CommandFlag operator~ ( CommandFlag  flag)
inline

Definition at line 118 of file CommandFlag.h.

119 {
120  return static_cast<CommandFlag>( ~ static_cast<unsigned long long> (flag) );
121 }
CommandFlag
Definition: CommandFlag.h:16