~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to src/Project.h

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
class RecordingRecoveryHandler;
72
72
 
73
73
AudacityProject *CreateNewAudacityProject(wxWindow * parentFrame);
74
 
AudacityProject *GetActiveProject();
 
74
AUDACITY_DLL_API AudacityProject *GetActiveProject();
75
75
void RedrawAllProjects();
76
76
void RefreshCursorForAllProjects();
77
 
void CloseAllProjects();
 
77
AUDACITY_DLL_API void CloseAllProjects();
78
78
 
79
79
void GetDefaultWindowRect(wxRect *defRect);
80
80
void GetNextWindowPlacement(wxRect *nextRect, bool *bMaximized);
92
92
   loopedPlay
93
93
};
94
94
 
95
 
class AudacityProject:public wxFrame,
96
 
                      public TrackPanelListener,
97
 
                      public SelectionBarListener,
98
 
                      public XMLTagHandler,
99
 
                      public AudioIOListener
 
95
class AUDACITY_DLL_API AudacityProject:  public wxFrame,
 
96
                                     public TrackPanelListener,
 
97
                                     public SelectionBarListener,
 
98
                                     public XMLTagHandler,
 
99
                                     public AudioIOListener
100
100
{
101
101
 public:
102
102
 
138
138
 
139
139
   // File I/O
140
140
 
141
 
   static void ShowOpenDialog(AudacityProject *proj);
 
141
   static wxArrayString ShowOpenDialog(wxString extra = wxEmptyString);
 
142
   static void OpenFiles(AudacityProject *proj);
142
143
   void OpenFile(wxString fileName);
143
144
   void Import(wxString fileName);
144
145
   void AddImportedTracks(wxString fileName,
171
172
   CommandManager *GetCommandManager() { return &mCommandManager; }
172
173
 
173
174
   void RebuildMenuBar();
 
175
   void MayStartMonitoring();
174
176
 
175
177
 public:
176
178
 
217
219
   void EditByLabel( WaveTrack::EditFunction action ); 
218
220
   void EditClipboardByLabel( WaveTrack::EditDestFunction action );
219
221
 
 
222
   // Snap To
 
223
 
 
224
   void SetSnapTo(bool state);
 
225
   bool GetSnapTo();
 
226
 
220
227
   // Scrollbars
221
228
 
222
229
   void OnScrollLeft();
259
266
 
260
267
 public:
261
268
 
262
 
 
263
269
   // SelectionBar callback methods
264
270
 
265
271
   virtual void AS_SetRate(double rate);
266
272
   virtual void AS_ModifySelection(double &start, double &end);
 
273
   virtual void AS_SetSnapTo(bool state);
 
274
   virtual bool AS_GetSnapTo();
267
275
 
268
276
   void SetStateTo(unsigned int n);
269
277
 
289
297
   virtual void OnAudioIONewBlockFiles(const wxString& blockFileLog);
290
298
 
291
299
   // Progress dialog methods
 
300
   void SetEnabledWindow( wxWindow * pWindow);
292
301
   void ProgressShow(const wxString &title, const wxString &message = wxT(""));
293
302
   void ProgressHide();
294
303
   bool ProgressUpdate(int value, const wxString &message = wxT(""));
295
304
   bool ProgressIsShown();
296
305
 
 
306
   // Command Handling
 
307
   bool TryToMakeActionAllowed( wxUint32 & flags, wxUint32 flagsRqd, wxUint32 mask );
 
308
 
 
309
 
297
310
 private:
298
311
 
299
312
 
312
325
   static bool IsAutoSaveEnabled();
313
326
   void DeleteCurrentAutoSaveFile();
314
327
   
315
 
   static wxString GetImportFilesFilter();
316
 
 
317
328
   static bool GetCacheBlockFiles();
318
329
 
319
330
   // Callbacks for backend operations
337
348
   TrackList *mTracks;
338
349
//   ViewInfo mViewInfo;
339
350
 
340
 
   int mSnapTo;
 
351
   bool mSnapTo;
341
352
 
342
353
   TrackList *mLastSavedTracks;
343
354
 
371
382
   AdornedRulerPanel *mRuler;
372
383
   TrackPanel *mTrackPanel;
373
384
   TrackFactory *mTrackFactory;
374
 
   Importer *mImporter;
375
385
   wxPanel * mMainPanel;
376
386
   wxScrollBar *mHsbar;
377
387
   wxScrollBar *mVsbar;
388
398
 
389
399
 public:
390
400
   ToolManager *mToolManager;
 
401
   bool mShowSplashScreen;
391
402
 
392
403
 private:
393
404
   int  mAudioIOToken;
398
409
   bool mCleanSpeechMode;  //lda
399
410
   bool mShowId3Dialog; //lda
400
411
   bool mEmptyCanBeDirty;
401
 
   
 
412
   bool mSelectAllOnNone;
 
413
 
402
414
   bool mLockPlayRegion;
403
415
 
404
416
   wxWindow *mKeyboardCaptured;