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
This commit is contained in:
Catalin
2015-11-29 00:54:31 +02:00
committed by Vadim Zeitlin
parent 71ad2d64ef
commit f61627fc7e
22 changed files with 29 additions and 32 deletions

View File

@@ -57,7 +57,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif

View File

@@ -704,7 +704,7 @@ MyPanel::MyPanel(wxWindow *parent)
m_calendar = DoCreateCalendar(wxDefaultDateTime, m_calendar = DoCreateCalendar(wxDefaultDateTime,
wxCAL_MONDAY_FIRST | wxCAL_SHOW_HOLIDAYS); wxCAL_MONDAY_FIRST | wxCAL_SHOW_HOLIDAYS);
// adjust to vertical/horizontal display, check mostly dedicated to WinCE // adjust to vertical/horizontal display
bool horizontal = ( wxSystemSettings::GetMetric(wxSYS_SCREEN_X) > wxSystemSettings::GetMetric(wxSYS_SCREEN_Y) ); bool horizontal = ( wxSystemSettings::GetMetric(wxSYS_SCREEN_X) > wxSystemSettings::GetMetric(wxSYS_SCREEN_Y) );
m_sizer = new wxBoxSizer( horizontal ? wxHORIZONTAL : wxVERTICAL ); m_sizer = new wxBoxSizer( horizontal ? wxHORIZONTAL : wxVERTICAL );

View File

@@ -42,7 +42,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources and even // the application icon (under Windows it is in resources and even
// though we could still include the XPM here it would be unused) // though we could still include the XPM here it would be unused)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"

View File

@@ -35,7 +35,7 @@
#include "wx/display.h" #include "wx/display.h"
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif

View File

@@ -1,4 +1,4 @@
Drag-and-Drop Support in wxWindows Drag-and-Drop Support in wxWidgets
================================== ==================================
1. Overview 1. Overview
@@ -7,9 +7,7 @@
a) What is it? a) What is it?
We're calling drag-and-drop (or d&d for short) the OLE mechanism of data We're calling drag-and-drop (or d&d for short) the OLE mechanism of data
transfer. Please note that it's not the same thing as the file oriented d&d transfer.
of Windows 3.1 "File Manager" which is designed for and limited to the file
names only.
OLE d&d allows application to transfer data of any type to the same or OLE d&d allows application to transfer data of any type to the same or
another process. another process.

View File

@@ -822,7 +822,7 @@ void MyCanvas::DrawText(wxDC& dc)
dc.DrawRotatedText( wxT("That is text"), 20, 10, -45 ); dc.DrawRotatedText( wxT("That is text"), 20, 10, -45 );
// use wxSWISS_FONT and not wxNORMAL_FONT as the latter can't be rotated // use wxSWISS_FONT and not wxNORMAL_FONT as the latter can't be rotated
// under Win9x (it is not TrueType) // under MSW (it is not TrueType)
dc.SetFont( *wxSWISS_FONT ); dc.SetFont( *wxSWISS_FONT );
wxString text; wxString text;

View File

@@ -53,7 +53,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif

View File

@@ -28,7 +28,7 @@
#include "joytest.h" #include "joytest.h"
// the application icon (under Windows and OS/2 it is in resources and even // the application icon (under Windows it is in resources and even
// though we could still include the XPM here it would be unused) // though we could still include the XPM here it would be unused)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"

View File

@@ -33,7 +33,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources and even // the application icon (under Windows it is in resources and even
// though we could still include the XPM here it would be unused) // though we could still include the XPM here it would be unused)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"

View File

@@ -36,7 +36,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources and even // the application icon (under Windows it is in resources and even
// though we could still include the XPM here it would be unused) // though we could still include the XPM here it would be unused)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"

View File

@@ -45,7 +45,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif

View File

@@ -870,7 +870,7 @@ MyFrame::MyFrame(const wxString& title, wxWindowID id, const wxPoint& pos,
SetMenuBar(menuBar); SetMenuBar(menuBar);
// create a status bar just for fun (by default with 1 pane only) // create a status bar just for fun (by default with 1 pane only)
// but don't create it on limited screen space (WinCE) // but don't create it on limited screen space (mobile device)
bool is_pda = wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA; bool is_pda = wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA;
#if wxUSE_STATUSBAR #if wxUSE_STATUSBAR

View File

@@ -1,20 +1,20 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: samples/samples.rc // Name: samples/samples.rc
// Purpose: a standard Win32 .rc file for the wxWindows samples // Purpose: a standard MSW .rc file for the wxWidgets samples
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 04.08.03 // Created: 04.08.03
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org> // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// this minimal resource file is all what is needed for most of the wxWindows // this minimal resource file is all what is needed for most of the wxWidgets
// samples // samples
// note that the icon used by the Explorer (i.e. the programs icon) is the // note that the icon used by the Explorer (i.e. the programs icon) is the
// first icon in the executable and the icons are sorted both by their order // first icon in the executable and the icons are sorted both by their order
// (Win9x) and by alphabetically (!) (NT), so put this icon first and give it // and alphabetically (!), so put this icon first and give it a name
// a name starting with "a" // starting with "a"
aaaaaaaa ICON "sample.ico" aaaaaaaa ICON "sample.ico"
// this icon is used with wxFrame::SetIcon() // this icon is used with wxFrame::SetIcon()

View File

@@ -34,7 +34,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif

View File

@@ -37,7 +37,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources and even // the application icon (under Windows it is in resources and even
// though we could still include the XPM here it would be unused) // though we could still include the XPM here it would be unused)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"

View File

@@ -42,7 +42,7 @@
// resources // resources
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif

View File

@@ -27,7 +27,7 @@
#include "wx/wx.h" #include "wx/wx.h"
#endif #endif
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif
@@ -125,8 +125,7 @@ MyDialog::MyDialog(const wxString& title)
m_taskBarIcon = new MyTaskBarIcon(); m_taskBarIcon = new MyTaskBarIcon();
// we should be able to show up to 128 characters on recent Windows versions // we should be able to show up to 128 characters on Windows
// (and 64 on Win9x)
if ( !m_taskBarIcon->SetIcon(wxICON(sample), if ( !m_taskBarIcon->SetIcon(wxICON(sample),
"wxTaskBarIcon Sample\n" "wxTaskBarIcon Sample\n"
"With a very, very, very, very\n" "With a very, very, very, very\n"

View File

@@ -1164,7 +1164,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
m_enter->SetClientData((void *)wxT("enter")); m_enter->SetClientData((void *)wxT("enter"));
m_textrich = new MyTextCtrl(this, wxID_ANY, wxT("Allows more than 30Kb of text\n") m_textrich = new MyTextCtrl(this, wxID_ANY, wxT("Allows more than 30Kb of text\n")
wxT("(even under broken Win9x)\n") wxT("(on all Windows versions)\n")
wxT("and a very very very very very ") wxT("and a very very very very very ")
wxT("very very very long line to test ") wxT("very very very long line to test ")
wxT("wxHSCROLL style\n") wxT("wxHSCROLL style\n")
@@ -1545,7 +1545,7 @@ void MyFrame::OnFileSave(wxCommandEvent& WXUNUSED(event))
if ( m_panel->m_textrich->SaveFile(wxT("dummy.txt")) ) if ( m_panel->m_textrich->SaveFile(wxT("dummy.txt")) )
{ {
#if wxUSE_FILE #if wxUSE_FILE
// verify that the fil length is correct (it wasn't under Win95) // verify that the file length is correct
wxFile file(wxT("dummy.txt")); wxFile file(wxT("dummy.txt"));
wxLogStatus(this, wxLogStatus(this,
wxT("Successfully saved file (text len = %lu, file size = %ld)"), wxT("Successfully saved file (text len = %lu, file size = %ld)"),

View File

@@ -37,7 +37,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources and even // the application icon (under Windows it is in resources and even
// though we could still include the XPM here it would be unused) // though we could still include the XPM here it would be unused)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"

View File

@@ -38,7 +38,7 @@
// resources // resources
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources) // the application icon (under Windows it is in resources)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"
#endif #endif

View File

@@ -277,7 +277,7 @@ void SliderWidgetsPage::CreateContent()
m_chkBothSides = CreateCheckBoxAndAddToSizer m_chkBothSides = CreateCheckBoxAndAddToSizer
(sizerLeft, wxT("&Both sides"), SliderPage_BothSides); (sizerLeft, wxT("&Both sides"), SliderPage_BothSides);
#if wxUSE_TOOLTIPS #if wxUSE_TOOLTIPS
m_chkBothSides->SetToolTip( wxT("\"Both sides\" is only supported \nin Win95 and Universal") ); m_chkBothSides->SetToolTip( wxT("\"Both sides\" is only supported \nin Universal") );
#endif // wxUSE_TOOLTIPS #endif // wxUSE_TOOLTIPS
sizerLeft->Add(5, 5, 0, wxGROW | wxALL, 5); // spacer sizerLeft->Add(5, 5, 0, wxGROW | wxALL, 5); // spacer

View File

@@ -59,7 +59,7 @@
// Regular resources (the non-XRC kind). // Regular resources (the non-XRC kind).
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources and even // the application icon (under Windows it is in resources and even
// though we could still include the XPM here it would be unused) // though we could still include the XPM here it would be unused)
#ifndef wxHAS_IMAGES_IN_RESOURCES #ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm" #include "../sample.xpm"