1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-04 07:40:12 +01:00

Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches

This commit is contained in:
ra
2010-01-23 19:44:49 +00:00
commit e74978ba77
1011 changed files with 781704 additions and 0 deletions

45
src/CaptureEvents.h Normal file
View File

@@ -0,0 +1,45 @@
/**********************************************************************
Audacity: A Digital Audio Editor
Audacity(R) is copyright (c) 1999-2008 Audacity Team.
License: GPL v2. See License.txt.
CaptureEvents.h
Created by Al Dimond, Oct. 2009 (from code by someone else)
******************************************************************//**
\class CaptureEvents
\brief RAII-style class to work around a bug in wxGTK 2.8.9-?
*//*******************************************************************/
#ifndef _AUDACITY_CAPTURE_EVENTS_
#define _AUDACITY_CAPTURE_EVENTS_
#if defined(__WXGTK__) && defined(HAVE_GTK)
// As of wxGTK 2.8.9, there is a problem in the wxClipboard class that
// allows recursive event processing. This problem has been corrected
// by wxWidgets 2.9+. However, this han't made it into a release yet,
// so we have to work around it.
//
// This is done by pulling/merging in some code from wx29 and creating
// the following class to capture events while accessing the clipboard
// to prevent the asynchronous clipboard access from causing recursive
// event processing.
#include <wx/dynarray.h>
class CaptureEvents
{
public:
CaptureEvents();
virtual ~CaptureEvents();
private:
wxArrayPtrVoid queue;
};
#endif
#endif