]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/listbox.h
All functionality I know hot implement already implemented.
[wxWidgets.git] / include / wx / gtk / listbox.h
index eb757db9b4d9d6da693c2aa182dc21d7b50d8c82..ea621e0697b25fbde1e02ebc254d9d95b7d5bcd4 100644 (file)
@@ -2,9 +2,8 @@
 // Name:        listbox.h
 // Purpose:
 // Author:      Robert Roebling
-// Created:     01/02/97
-// Id:
-// Copyright:   (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Id:          $Id$
+// Copyright:   (c) 1998 Robert Roebling
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -48,7 +47,7 @@ class wxListBox: public wxControl
     inline wxListBox( wxWindow *parent, wxWindowID id,
            const wxPoint& pos = wxDefaultPosition,
            const wxSize& size = wxDefaultSize,
-           int n = 0, const wxString choices[] = NULL,
+           int n = 0, const wxString choices[] = (const wxString *) NULL,
            long style = 0,
            const wxValidator& validator = wxDefaultValidator,
            const wxString& name = wxListBoxNameStr )
@@ -58,7 +57,7 @@ class wxListBox: public wxControl
     bool Create( wxWindow *parent, wxWindowID id,
            const wxPoint& pos = wxDefaultPosition,
            const wxSize& size = wxDefaultSize,
-           int n = 0, const wxString choices[] = NULL,
+           int n = 0, const wxString choices[] = (const wxString *) NULL,
            long style = 0,
            const wxValidator& validator = wxDefaultValidator,
            const wxString& name = wxListBoxNameStr );
@@ -82,17 +81,19 @@ class wxListBox: public wxControl
     void SetSelection( int n, bool select = TRUE );
     void SetString( int n, const wxString &string );
     void SetStringSelection( const wxString &string, bool select = TRUE );
+    
+    void SetDropTarget( wxDropTarget *dropTarget );
 
-    virtual GtkWidget *GetConnectWidget(void);
-  
-  private:
-  
+  // implementation
+    
+    int GetIndex( GtkWidget *item ) const;
+    GtkWidget *GetConnectWidget(void);
+    bool IsOwnGtkWindow( GdkWindow *window );
+    void ApplyWidgetStyle();
+    
     GtkList   *m_list;
     wxList     m_clientData;
     
-  public:
-  
-    int GetIndex( GtkWidget *item ) const;
 };
 
 #endif // __GTKLISTBOXH__