summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9e5c7da)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6075
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
15 files changed:
ScoreFile::ScoreFile(const char* appName)
{
#if 0
ScoreFile::ScoreFile(const char* appName)
{
#if 0
+#ifdef __WIN16__
+#include <wx/fileconf.h>
+
+#undef wxConfig
+#define wxConfig wxFileConfig
+#endif
class ScoreFile {
public:
class ScoreFile {
public:
#pragma implementation "dialogs.h"
#endif
#pragma implementation "dialogs.h"
#endif
+// For compilers that support precompilation, includes "wx/wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+#include "wx/wx.h"
+#endif
+
#include "wx/statline.h"
#include "wx/spinctrl.h"
#include "wx/statline.h"
#include "wx/spinctrl.h"
#pragma implementation "game.h"
#endif
#pragma implementation "game.h"
#endif
+// For compilers that support precompilation, includes "wx/wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+#include "wx/wx.h"
+#endif
+
#include "game.h"
#include <string.h> // for memset
#include "game.h"
#include <string.h> // for memset
// ==========================================================================
#define HASH(x, y) (((x >> 3) & 0x7f) << 7) + ((y >> 3) & 0x7f)
// ==========================================================================
#define HASH(x, y) (((x >> 3) & 0x7f) << 7) + ((y >> 3) & 0x7f)
+
+#ifdef __WIN16__
+#define HASHSIZE 10000
+#else
#pragma implementation "life.h"
#endif
#pragma implementation "life.h"
#endif
+// For compilers that support precompilation, includes "wx/wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+#include "wx/wx.h"
+#endif
+
#include "wx/statline.h"
#include "life.h"
#include "wx/statline.h"
#include "life.h"
wxInt32 cy = m_viewportY + m_viewportH / 2;
// get current canvas size and adjust viewport accordingly
wxInt32 cy = m_viewportY + m_viewportH / 2;
// get current canvas size and adjust viewport accordingly
GetClientSize(&w, &h);
m_viewportW = (w + m_cellsize - 1) / m_cellsize;
m_viewportH = (h + m_cellsize - 1) / m_cellsize;
GetClientSize(&w, &h);
m_viewportW = (w + m_cellsize - 1) / m_cellsize;
m_viewportH = (h + m_cellsize - 1) / m_cellsize;
-432
-678
-849
-1000
-1289
-1676
-2036
-2695
-3247
-3839
-4214
-4444
-5002
-5705
-5943
-6559
-7236
-7935
-8387
-8826
-9065
-9712
-10030
-10251
-10488
-10879
-11165
-11541
-11679
-12341
-12952
-13601
-14037
-14685
-15355
-16023
-16480
-16789
-17472
-18104
-18634
-19160
-19828
-20450
-20892
-21651
-22144
-22697
-22863
-23105
-23495
-23659
-23858
-24027
-26188
-26375
-26605
-27170
-27341
-27752
-27912
-28100
-28298
-28493
-28705
-28919
-29336
-29969
-30491
-30876
-31495
-32918
-33373
-33703
-33830
-34045
-34223
-34477
-34889
-35367
-35760
-35898
-36461
-36950
-37417
-39079
-39455
-40104
-40787
-42555
-43641
-45010
-45571
-46287
-46870
-47331
-47808
-48457
-49704
-50924
-52070
-52830
-53582
-54076
-54328
-54590
-55064
-55453
-55643
-56256
-57048
-57698
-58621
-59337
-60780
-61314
-61518
-61825
-62104
-62315
-62462
-62980
-63167
-63748
-64581
-65034
-65343
-66368
-67140
-68358
-69033
-69732
-70434
-71096
+448
+706
+886
+1046
+1354
+1754
+2127
+2806
+3376
+3992
+4381
+4620
+5195
+5918
+6165
+6801
+7497
+8216
+8687
+9145
+9398
+10065
+10397
+10631
+10881
+11290
+11589
+11981
+12126
+12807
+13441
+14112
+14568
+15238
+15927
+16617
+17092
+17415
+18121
+18775
+19327
+19870
+20557
+21198
+21657
+22441
+22949
+23526
+23701
+23954
+24362
+24535
+24743
+24921
+27139
+27335
+27576
+28162
+28342
+28766
+28935
+29132
+29339
+29543
+29765
+29989
+30422
+31079
+31624
+32028
+32667
+34127
+34595
+34937
+35071
+35295
+35482
+35745
+36172
+36665
+37076
+37225
+37812
+38323
+38810
+40525
+40914
+41585
+42287
+44104
+45220
+46627
+47212
+47952
+48559
+49044
+49535
+50201
+51482
+52736
+53914
+54701
+55477
+55990
+56254
+56527
+57020
+57428
+57625
+58263
+59074
+59747
+60702
+61439
+62934
+63483
+63698
+64019
+64311
+64531
+64687
+65222
+65419
+66021
+66876
+67342
+67664
+68721
+69524
+70788
+71483
+72201
+72922
+73604
Constructor assigning start values. See below for interpretation.
Constructor assigning start values. See below for interpretation.
-\membersection{wxPlotCurve::GetStartX}\label{wxplotcurvegetstartx}
-
-\func{wxInt32}{GetStartX}{\void}
-
-Must be overridden. This function should return the index of the first value
-of this curve, typically zero.
-
\membersection{wxPlotCurve::GetEndX}\label{wxplotcurvegetendx}
\func{wxInt32}{GetEndX}{\void}
\membersection{wxPlotCurve::GetEndX}\label{wxplotcurvegetendx}
\func{wxInt32}{GetEndX}{\void}
Must be overridden. This function should return the index of the last value
of this curve, typically 99 if 100 values have been measured.
Must be overridden. This function should return the index of the last value
of this curve, typically 99 if 100 values have been measured.
+\membersection{wxPlotCurve::GetEndY}\label{wxplotcurvegetendy}
+
+\func{double}{GetEndY}{\void}
+
+See \helpref{SetStartY}{wxplotcurvesetendy}.
+
+\membersection{wxPlotCurve::GetOffsetY}\label{wxplotcurvegetoffsety}
+
+\func{int}{GetOffsetY}{\void}
+
+Returns the vertical offset.
\membersection{wxPlotCurve::GetY}\label{wxplotcurvegety}
\func{double}{GetY}{\param{wxInt32 }{x}}
\membersection{wxPlotCurve::GetY}\label{wxplotcurvegety}
\func{double}{GetY}{\param{wxInt32 }{x}}
to the given X value. The x value is of an integer type because it is considered
to be an index in row of measured values.
to the given X value. The x value is of an integer type because it is considered
to be an index in row of measured values.
-\membersection{wxPlotCurve::SetStartY}\label{wxplotcurvesetstarty}
+\membersection{wxPlotCurve::GetStartX}\label{wxplotcurvegetstartx}
-\func{void}{SetStartY}{\param{double }{startY}}
+\func{wxInt32}{GetStartX}{\void}
-The value returned by this function tells the plot window what the lowest values
-in the curve will be os that a suitable scale can be found for the display. If
-the Y values in this curve are in the range of -1.5 to 0.5, this function should
-return -1.5 or maybe -2.0 for nicer optics.
+Must be overridden. This function should return the index of the first value
+of this curve, typically zero.
\membersection{wxPlotCurve::GetStartY}\label{wxplotcurvegetstarty}
\membersection{wxPlotCurve::GetStartY}\label{wxplotcurvegetstarty}
\func{void}{SetEndY}{\param{double }{endY}}
The value returned by this function tells the plot window what the highest values
\func{void}{SetEndY}{\param{double }{endY}}
The value returned by this function tells the plot window what the highest values
-in the curve will be os that a suitable scale can be found for the display. If
+in the curve will be so that a suitable scale can be found for the display. If
the Y values in this curve are in the range of -1.5 to 0.5, this function should
the Y values in this curve are in the range of -1.5 to 0.5, this function should
-return 0.5 or maybe 1.0 for nicer optics.
-
-\membersection{wxPlotCurve::GetEndY}\label{wxplotcurvegetendy}
-
-\func{double}{GetEndY}{\void}
-
-See \helpref{SetStartY}{wxplotcurvesetendy}.
+return 0.5 or maybe 1.0 for nicer aesthetics.
\membersection{wxPlotCurve::SetOffsetY}\label{wxplotcurvesetoffsety}
\membersection{wxPlotCurve::SetOffsetY}\label{wxplotcurvesetoffsety}
different offsets to the curves. You should call \helpref{wxPlotWindow::Move}{wxplotwindowmove}
to set this value after you have added the curve to the window.
different offsets to the curves. You should call \helpref{wxPlotWindow::Move}{wxplotwindowmove}
to set this value after you have added the curve to the window.
-\membersection{wxPlotCurve::GetOffsetY}\label{wxplotcurvegetoffsety}
+\membersection{wxPlotCurve::SetStartY}\label{wxplotcurvesetstarty}
-\func{int}{GetOffsetY}{\void}
+\func{void}{SetStartY}{\param{double }{startY}}
+
+The value returned by this function tells the plot window what the lowest values
+in the curve will be so that a suitable scale can be found for the display. If
+the Y values in this curve are in the range of -1.5 to 0.5, this function should
+return -1.5 or maybe -2.0 for nicer aesthetics.
-Returns the vertical offset.
#include "wx/control.h"
#include "wx/event.h"
#include "wx/control.h"
#include "wx/event.h"
-// suppress expression always false warning
+/* suppress expression always false warning */
int os2var = 0;
#define YY_FATAL_ERROR(msg) \
do \
int os2var = 0;
#define YY_FATAL_ERROR(msg) \
do \
}
}
#if defined(__VISAGECPP__)
}
}
#if defined(__VISAGECPP__)
-// VA complains about proc maybe not returning a value so return one
+/* VA complains about proc maybe not returning a value so return one */
#include "wx/stattext.h"
#endif //WX_PRECOMP
#include "wx/stattext.h"
#endif //WX_PRECOMP
+// Can only use wxSpinEvent if this is enabled
+#if wxUSE_SPINBTN
+
#include "wx/calctrl.h"
#define DEBUG_PAINT 0
#include "wx/calctrl.h"
#define DEBUG_PAINT 0
{
m_date = cal->GetDate();
}
{
m_date = cal->GetDate();
}
+
+#endif // wxUSE_SPINBTN
+
EVT_KEY_DOWN (wxListMainWindow::OnKeyDown)
EVT_SET_FOCUS (wxListMainWindow::OnSetFocus)
EVT_KILL_FOCUS (wxListMainWindow::OnKillFocus)
EVT_KEY_DOWN (wxListMainWindow::OnKeyDown)
EVT_SET_FOCUS (wxListMainWindow::OnSetFocus)
EVT_KILL_FOCUS (wxListMainWindow::OnKillFocus)
- EVT_SCROLL (wxListMainWindow::OnScroll)
+ EVT_SCROLLWIN (wxListMainWindow::OnScroll)
END_EVENT_TABLE()
wxListMainWindow::wxListMainWindow()
END_EVENT_TABLE()
wxListMainWindow::wxListMainWindow()
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton,wxControl)
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton,wxControl)
-IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent);
+IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
BEGIN_EVENT_TABLE(wxSpinButton, wxControl)
EVT_SIZE(wxSpinButton::OnSize)
BEGIN_EVENT_TABLE(wxSpinButton, wxControl)
EVT_SIZE(wxSpinButton::OnSize)
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton,wxControl)
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton,wxControl)
-IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent);
+IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
BEGIN_EVENT_TABLE(wxSpinButton, wxControl)
EVT_SIZE(wxSpinButton::OnSize)
BEGIN_EVENT_TABLE(wxSpinButton, wxControl)
EVT_SIZE(wxSpinButton::OnSize)
#include "wx/spinbutt.h"
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
#include "wx/spinbutt.h"
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
-IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent);
+IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
long style, const wxString& name)
bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
long style, const wxString& name)
+IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
+
#if defined(__WIN95__) && !defined(__TWIN32__)
#include "wx/spinbutt.h"
#if defined(__WIN95__) && !defined(__TWIN32__)
#include "wx/spinbutt.h"
// ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
// ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
-IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent);
// ----------------------------------------------------------------------------
// wxSpinButton
// ----------------------------------------------------------------------------
// wxSpinButton