Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv10121
Modified Files:
Menus.cpp Menus.h
Log Message:
F11 functionality to use as much screen-space as possible.
Index: Menus.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.h,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- Menus.h 5 Nov 2008 01:06:54 -0000 1.126
+++ Menus.h 13 Nov 2008 01:25:43 -0000 1.127
@@ -146,6 +146,7 @@
void OnDefineForeground();
void OnDefineBackground();
#endif
+void OnFullScreen();
// File Menu
Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.420
retrieving revision 1.421
diff -u -d -r1.420 -r1.421
--- Menus.cpp 9 Nov 2008 18:38:17 -0000 1.420
+++ Menus.cpp 13 Nov 2008 01:25:42 -0000 1.421
@@ -1068,6 +1068,7 @@
c->AddCommand(wxT("SnapToOn"), _("Snap To On"),
FN(OnSnapToOn));
c->AddCommand(wxT("SnapToOff"), _("Snap To Off"),
FN(OnSnapToOff));
+ c->AddCommand(wxT("FullScreenOnOff"), _("Full screen on/off\tF11"),
FN(OnFullScreen));
#ifdef EXPERIMENTAL_CONTRAST
// these next 2 are for the Contrast analyze effect
@@ -5230,6 +5231,14 @@
}
#endif
+void AudacityProject::OnFullScreen()
+{
+ if(wxTopLevelWindow::IsFullScreen())
+ wxTopLevelWindow::ShowFullScreen(false);
+ else
+ wxTopLevelWindow::ShowFullScreen(true);
+}
+
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
// version control system. Please do not modify past this point.
//
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs