Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv15472
Modified Files:
TrackPanel.cpp TrackPanelAx.cpp TrackPanelAx.h
Log Message:
Add a means to notify screen reader when something in the track state changes,
like mute and solo. (only 2 for now)
Index: TrackPanelAx.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanelAx.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- TrackPanelAx.cpp 23 Mar 2009 00:32:54 -0000 1.9
+++ TrackPanelAx.cpp 7 Jun 2009 08:47:33 -0000 1.10
@@ -158,6 +158,18 @@
return t;
}
+void TrackPanelAx::Updated()
+{
+#if wxUSE_ACCESSIBILITY
+ Track *t = GetFocus();
+ NotifyEvent(wxACC_EVENT_OBJECT_NAMECHANGE,
+ mTrackPanel,
+ wxOBJID_CLIENT,
+ TrackNum(t));
+ SetFocus(t);
+#endif
+}
+
#if wxUSE_ACCESSIBILITY
// Retrieves the address of an IDispatch interface for the specified child.
Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.457
retrieving revision 1.458
diff -u -d -r1.457 -r1.458
--- TrackPanel.cpp 2 Jun 2009 05:03:15 -0000 1.457
+++ TrackPanel.cpp 7 Jun 2009 08:47:33 -0000 1.458
@@ -5952,6 +5952,7 @@
}
}
+ mAx->Updated();
Refresh(false);
}
@@ -6015,6 +6016,8 @@
i = iter.Next();
}
}
+
+ mAx->Updated();
Refresh(false);
}
Index: TrackPanelAx.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanelAx.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- TrackPanelAx.h 4 Mar 2007 07:21:52 -0000 1.2
+++ TrackPanelAx.h 7 Jun 2009 08:47:33 -0000 1.3
@@ -41,6 +41,9 @@
// Returns TRUE if passed track has the focus
bool IsFocused( Track *track );
+ // Called to signal changes to a track
+ void Updated();
+
#if wxUSE_ACCESSIBILITY
// Retrieves the address of an IDispatch interface for the specified child.
// All objects must support this property.
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs