Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv16717/src

Modified Files:
      Tag: AUDACITY_1_2
        ControlToolBar.cpp ControlToolBar.h 
Log Message:
Commit of all the files and documentation for the always allow playing
preference


Index: ControlToolBar.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Attic/ControlToolBar.h,v
retrieving revision 1.21.2.2
retrieving revision 1.21.2.3
diff -u -d -r1.21.2.2 -r1.21.2.3
--- ControlToolBar.h    19 Apr 2004 07:09:16 -0000      1.21.2.2
+++ ControlToolBar.h    26 Oct 2006 18:33:07 -0000      1.21.2.3
@@ -156,7 +156,8 @@
    //Maybe button state values shouldn't be duplicated in this toolbar?
    bool mPaused;         //Play or record is paused or not paused?
    bool mAlwaysEnablePause;
-   
+   bool mAlwaysEnablePlay;
+
    // Activate ergonomic order for transport buttons
    bool mErgonomicTransportButtons;
 

Index: ControlToolBar.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Attic/ControlToolBar.cpp,v
retrieving revision 1.61.2.13
retrieving revision 1.61.2.14
diff -u -d -r1.61.2.13 -r1.61.2.14
--- ControlToolBar.cpp  19 Nov 2004 22:56:09 -0000      1.61.2.13
+++ ControlToolBar.cpp  26 Oct 2006 18:33:07 -0000      1.61.2.14
@@ -178,6 +178,7 @@
    mCurrentTool = selectTool;
    mTool[mCurrentTool]->PushDown();
 
+   gPrefs->Read("/GUI/AlwaysEnablePlay", &mAlwaysEnablePlay, false);
    gPrefs->Read("/GUI/AlwaysEnablePause", &mAlwaysEnablePause, false);
 
    mPaused=false;             //Turn the paused state to off
@@ -562,6 +563,7 @@
 
 void ControlToolBar::UpdatePrefs()
 {
+       gPrefs->Read("/GUI/AlwaysEnablePlay", &mAlwaysEnablePlay, false);
 #if 0
    gPrefs->Read("/GUI/AlwaysEnablePause", &mAlwaysEnablePause, false);
 
@@ -748,10 +750,16 @@
 
 void ControlToolBar::OnPlay(wxCommandEvent &evt)
 {
+       if(mAlwaysEnablePlay)
+               StopPlaying();
+
    if(mPlay->WasShiftDown())
       PlayCurrentRegion(true);
    else
       PlayCurrentRegion(false);
+
+   if(mAlwaysEnablePlay)
+          mPlay->PopUp();
 }
 
 void ControlToolBar::SetVUMeters(AudacityProject *p)


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to