PB
f57f214122
Remove BCC-specific hdrstop pragma from everywhere
2020-10-12 21:58:37 +02:00
Blake-Eryx
f58ea62596
Remove (most) occurrences of wxT() macro from the samples
...
Also replace wxChar* with wxString.
Closes https://github.com/wxWidgets/wxWidgets/pull/945
2018-09-23 01:15:08 +02:00
Catalin
f61627fc7e
Remove obsolete symbols from the samples
...
Mostly don't mention OS/2 in the comments about the icons.
Also replace a couple of occurrences of "wxWindows" with "wxWidgets".
Closes https://github.com/wxWidgets/wxWidgets/pull/138
2015-12-03 22:11:04 +01:00
Vadim Zeitlin
a788351eb6
Don't keep using invalid wxSound object in the sound sample.
...
If creating a sound object fails, delete it to ensure that it is recreated
later.
This fixes a minor bug: previously, if an invalid file was used as sound file,
only the first attempt to play it resulted in an error and all the subsequent
ones were just silently ignored. Now every attempt to play an invalid file
results in an error message, as expected.
2015-07-18 02:29:16 +02:00
Dimitri Schoolwerth
8f8d58d193
Use wx-prefixed macros throughout the repository.
...
Change {DECLARE,IMPLEMENT}_*CLASS and {DECLARE,BEGIN,END}_EVENT_TABLE
occurrences to use the wx-prefixed version of the macros.
2015-04-23 22:00:35 +04:00
Paul Cornett
5b4a70247c
use "new" wx-prefixed macros in samples
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-30 07:07:55 +00:00
Paul Cornett
8b4ae731d3
use wxOVERRIDE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-30 00:02:23 +00:00
Vadim Zeitlin
3f66f6a5b3
Remove all lines containing cvs/svn "$Id$" keyword.
...
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.
If nothing else, this will make an eventual transition to Git simpler.
Closes #14487 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Vadim Zeitlin
e709239889
Use wxHAS_IMAGES_IN_RESOURCES instead of explicit platform checks.
...
Add a special symbol which is defined only if the icons and other images (e.g.
cursor) are in the separate resource files and don't need to be embedded as
XPMs in the main program.
This makes the checks more clear and more customizable as it's enough to
change wxHAS_IMAGES_IN_RESOURCES definition instead of changing many platform
checks.
Closes #14050 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:28:58 +00:00
Dimitri Schoolwerth
2d143b6689
Removed ellipsis from "About..." occurrences.
...
MS and Apple guidelines mention ellipses should generally be used when a command needs additional information from the user before the operation can execute. This is not the case for showing an about dialog so the ellipses have been removed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-20 16:51:09 +00:00
Vadim Zeitlin
f2012fa639
Remove __WXMGL__ tests from the samples too.
...
__WXMGL__ is not used any longer, remove it from the samples too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 18:50:35 +00:00
Vadim Zeitlin
e62e216806
Allow selecting any kind of file in the sound sample.
...
This is especially useful under Mac where wxSound can play files other than
.wav too (e.g. .aiff files which can be found under /System/Library/Sounds).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-03 14:58:26 +00:00
Vadim Zeitlin
5276b0a53c
Use wxDELETE() and wxDELETEA() when possible.
...
Use wxDELETE[A]() functions which automatically NULL out their arguments after
deleting them instead of doing it manually.
Closes #9685 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 18:18:23 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Francesco Montorsi
c8551c294d
add the ability to test the wxBell() function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 14:04:46 +00:00
Kevin Ollivier
e2c33b5595
Only MSW supports loading sounds from data.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-13 21:02:13 +00:00
Vadim Zeitlin
45e6e6f8ab
call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Vadim Zeitlin
ff3e84ffdc
File/dir dialog styles and other changes (patch 1488371):
...
- check invalid combinations of styles in wxFileDialogBase::Create()
- use wxFD_XXX naming convention for wxFileDialog styles
- replaces wxDD_NEW_DIR_BUTTON with wxDD_DIR_MUST_EXIST
- removes #ifdef __WXGTK24__ / #endif blocks from wxGTK code
- removes wxFileDialogBase::Get/SetStyle and wxFileDialogBase::m_fileName
- renames wxDirDialogGTK to wxDirDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 23:32:12 +00:00
Włodzimierz Skiba
71307412f5
Missing wxUSE_... flags and source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-24 17:47:11 +00:00
Vadim Zeitlin
0591bcfdfa
added test for playing sound from memory
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 13:59:35 +00:00
Vadim Zeitlin
cb51c9902f
added Stop test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 13:43:55 +00:00
Vadim Zeitlin
247ec3f4cc
fixed id values to be more standard
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 12:48:06 +00:00
Vadim Zeitlin
941821d8ac
added test for playing Windows resources
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 12:35:10 +00:00
David Elliott
b320510f98
Added some accelerators to the menu to help with stress testing wxSound:
...
Ctrl+O Select WAV file
Ctrl+S "Play sound synchronously"
Ctrl+A "Play sound asynchronously"
Ctrl+T "Play sound asynchronously (object on stack)" (T for temporary)
Ctrl+L "Loop sound"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 19:24:14 +00:00
Robin Dunn
27c2041ff6
Actually use the OnStack test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-22 00:43:58 +00:00
Włodzimierz Skiba
fc57ba5476
Unhide problem of ambiguity in wxSoundBase::Play.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-26 08:47:53 +00:00
Włodzimierz Skiba
7981fe9b2b
-1->wxID_ANY, ambiguity of types.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 19:35:38 +00:00
Julian Smart
be5a51fb59
More name changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Václav Slavík
86c5779a6f
compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-18 17:24:06 +00:00
Robin Dunn
aa92c39880
Changed the sound sample to allow the user to choose a wav file to
...
work with, and also added some additional test wav files of various
sampling rates, sample sizes and channels.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-11 19:31:33 +00:00
Mattia Barbon
e4f3eb42f2
Compilation fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-29 15:21:11 +00:00
Václav Slavík
d93966b92a
renamed wxWave to wxSound
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-02 13:03:23 +00:00
Václav Slavík
0d9c603db6
added wxWave sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-01 10:53:59 +00:00