projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed comma
[wxWidgets.git]
/
include
/
wx
/
gtk
/
spinctrl.h
diff --git
a/include/wx/gtk/spinctrl.h
b/include/wx/gtk/spinctrl.h
index f39e5184e632f7d2c3f69c29651e5e161d23d1dc..426a01f4b07818051554c390f8a92c299b097457 100644
(file)
--- a/
include/wx/gtk/spinctrl.h
+++ b/
include/wx/gtk/spinctrl.h
@@
-11,10
+11,6
@@
#ifndef __GTKSPINCTRLH__
#define __GTKSPINCTRLH__
#ifndef __GTKSPINCTRLH__
#define __GTKSPINCTRLH__
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface
-#endif
-
#include "wx/defs.h"
#if wxUSE_SPINCTRL
#include "wx/defs.h"
#if wxUSE_SPINCTRL
@@
-25,10
+21,10
@@
// wxSpinCtrl
//-----------------------------------------------------------------------------
// wxSpinCtrl
//-----------------------------------------------------------------------------
-class wxSpinCtrl : public wxControl
+class
WXDLLIMPEXP_CORE
wxSpinCtrl : public wxControl
{
public:
{
public:
- wxSpinCtrl()
{}
+ wxSpinCtrl()
;
wxSpinCtrl(wxWindow *parent,
wxWindowID id = -1,
const wxString& value = wxEmptyString,
wxSpinCtrl(wxWindow *parent,
wxWindowID id = -1,
const wxString& value = wxEmptyString,
@@
-59,20
+55,25
@@
public:
virtual int GetMin() const;
virtual int GetMax() const;
virtual int GetMin() const;
virtual int GetMax() const;
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
// implementation
void OnChar( wxKeyEvent &event );
bool IsOwnGtkWindow( GdkWindow *window );
// implementation
void OnChar( wxKeyEvent &event );
bool IsOwnGtkWindow( GdkWindow *window );
- void ApplyWidgetStyle();
void GtkDisableEvents();
void GtkEnableEvents();
void GtkDisableEvents();
void GtkEnableEvents();
- GtkAdjustment *m_adjust;
- float m_oldPos;
+ int m_pos;
protected:
virtual wxSize DoGetBestSize() const;
protected:
virtual wxSize DoGetBestSize() const;
+ // Widgets that use the style->base colour for the BG colour should
+ // override this and return true.
+ virtual bool UseGTKStyleBase() const { return true; }
+
private:
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
DECLARE_EVENT_TABLE()
private:
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
DECLARE_EVENT_TABLE()