]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/spinbuttcmn.cpp
add more flexible and safer template Connect() overloads (#10000)
[wxWidgets.git] / src / common / spinbuttcmn.cpp
diff --git a/src/common/spinbuttcmn.cpp b/src/common/spinbuttcmn.cpp
new file mode 100644 (file)
index 0000000..05f15d7
--- /dev/null
@@ -0,0 +1,31 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        src/common/spinbuttcmn.cpp
+// Purpose:     define wxSpinButton event types
+// Author:      Peter Most
+// Created:     01.11.08
+// RCS-ID:      $Id:$
+// Copyright:   (c) 2008-2009 wxWidgets team
+// Licence:     wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+    #pragma hdrstop
+#endif
+
+#include "wx/spinbutt.h"
+
+wxDEFINE_EVENT_REFERENCE( wxEVT_SPIN_UP,   wxSpinEvent, wxEVT_SCROLL_LINEUP )
+wxDEFINE_EVENT_REFERENCE( wxEVT_SPIN_DOWN, wxSpinEvent, wxEVT_SCROLL_LINEDOWN )
+wxDEFINE_EVENT_REFERENCE( wxEVT_SPIN,      wxSpinEvent, wxEVT_SCROLL_THUMBTRACK )
+