]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/clrpicker.h
Add test for absence of events from wxSpinCtrlDouble ctor.
[wxWidgets.git] / interface / wx / clrpicker.h
index a3fa169d80cdebb14c74b08688d5ccfc95a3a699..31b42b8ddc2fd7c5133d349c783d62574eb844bf 100644 (file)
@@ -2,10 +2,16 @@
 // Name:        clrpicker.h
 // Purpose:     interface of wxColourPickerCtrl
 // Author:      wxWidgets team
 // Name:        clrpicker.h
 // Purpose:     interface of wxColourPickerCtrl
 // Author:      wxWidgets team
-// RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 /////////////////////////////////////////////////////////////////////////////
 
+#define wxCLRP_USE_TEXTCTRL       (wxPB_USE_TEXTCTRL)
+#define wxCLRP_DEFAULT_STYLE      0
+#define wxCLRP_SHOW_LABEL         0x0008
+
+wxEventType wxEVT_COLOURPICKER_CHANGED;
+
+
 /**
     @class wxColourPickerCtrl
 
 /**
     @class wxColourPickerCtrl
 
@@ -29,7 +35,7 @@
            (instead of no label at all).
     @endStyleTable
 
            (instead of no label at all).
     @endStyleTable
 
-    @beginEventTable{wxColourPickerEvent}
+    @beginEventEmissionTable{wxColourPickerEvent}
     @event{EVT_COLOURPICKER_CHANGED(id, func)}
            The user changed the colour selected in the control either using the
            button or using text control (see @c wxCLRP_USE_TEXTCTRL; note that
     @event{EVT_COLOURPICKER_CHANGED(id, func)}
            The user changed the colour selected in the control either using the
            button or using text control (see @c wxCLRP_USE_TEXTCTRL; note that
 
     @library{wxcore}
     @category{pickers}
 
     @library{wxcore}
     @category{pickers}
-    <!-- @appearance{colourpickerctrl.png} -->
+    @appearance{colourpickerctrl}
 
     @see wxColourDialog, wxColourPickerEvent
 */
 class wxColourPickerCtrl : public wxPickerBase
 {
 public:
 
     @see wxColourDialog, wxColourPickerEvent
 */
 class wxColourPickerCtrl : public wxPickerBase
 {
 public:
+    wxColourPickerCtrl();
+    
     /**
         Initializes the object and calls Create() with all the parameters.
     */
     wxColourPickerCtrl(wxWindow* parent, wxWindowID id,
     /**
         Initializes the object and calls Create() with all the parameters.
     */
     wxColourPickerCtrl(wxWindow* parent, wxWindowID id,
-                       const wxColour& colour = wxBLACK,
+                       const wxColour& colour = *wxBLACK,
                        const wxPoint& pos = wxDefaultPosition,
                        const wxSize& size = wxDefaultSize,
                        long style = wxCLRP_DEFAULT_STYLE,
                        const wxValidator& validator = wxDefaultValidator,
                        const wxPoint& pos = wxDefaultPosition,
                        const wxSize& size = wxDefaultSize,
                        long style = wxCLRP_DEFAULT_STYLE,
                        const wxValidator& validator = wxDefaultValidator,
-                       const wxString& name = "colourpickerctrl");
+                       const wxString& name = wxColourPickerCtrlNameStr);
 
     /**
         Creates a colour picker with the given arguments.
 
     /**
         Creates a colour picker with the given arguments.
@@ -81,12 +89,12 @@ public:
                 creation failed.
     */
     bool Create(wxWindow* parent, wxWindowID id,
                 creation failed.
     */
     bool Create(wxWindow* parent, wxWindowID id,
-                const wxColour& colour = wxBLACK,
+                const wxColour& colour = *wxBLACK,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxCLRP_DEFAULT_STYLE,
                 const wxValidator& validator = wxDefaultValidator,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxCLRP_DEFAULT_STYLE,
                 const wxValidator& validator = wxDefaultValidator,
-                const wxString& name = "colourpickerctrl");
+                const wxString& name = wxColourPickerCtrlNameStr);
 
     /**
         Returns the currently selected colour.
 
     /**
         Returns the currently selected colour.
@@ -122,6 +130,8 @@ public:
 class wxColourPickerEvent : public wxCommandEvent
 {
 public:
 class wxColourPickerEvent : public wxCommandEvent
 {
 public:
+    wxColourPickerEvent();
+
     /**
         The constructor is not normally used by the user code.
     */
     /**
         The constructor is not normally used by the user code.
     */