Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

datacombo.h

Go to the documentation of this file.
00001 
00002 // Name:        wx/datacombo.h
00003 // Purpose:     
00004 // Author:      Joe Yates
00005 // Created:     2004-11-17
00006 // Copyright:   (c) Joe Yates
00007 // License:     BSD license (see the file 'LICENSE.txt')
00009 
00010 #ifndef __wx_datacombo_h__
00011 #define __wx_datacombo_h__
00012 
00013 #include "wx/wxprec.h"
00014 
00015 #ifndef WX_PRECOMP
00016   #include "wx/wx.h"
00017 #endif
00018 
00019 namespace wx
00020 {
00021 
00022 class DataCombo : public wxComboBox
00023   {
00024   // friends, classes, enums and types
00025 
00026   // Constructors/destructors
00027   public:
00028     DataCombo
00029       (
00030       wxWindow * parent,
00031       wxWindowID id,
00032       const wxPoint& pos = wxDefaultPosition,
00033       const wxSize& size = wxDefaultSize,
00034       long style = 0
00035       );
00036 
00037   // Operators
00038 
00039   // Slots
00040   private:
00041 
00042   // Methods
00043   public:
00044     long Add(const wxString& sValue, long nData);
00045     long GetData(long nIndex);
00046     bool SetSelectionFromData(long nData, long nDefaultIndex = -1);
00047 
00051     bool GetSelectionData(long& nData);
00052     long GetIndexFromData(long nData);
00053 
00054     // Re-implementation - declared and left unimplemented
00055     // If these functions are wanted, then wxCombo should be used, not this wrapper
00056     void Append(const wxArrayString& strings);
00057     int Append(const wxString& item);
00058     int Append(const wxString& item, void *clientData);
00059     int Append(const wxString& item, wxClientData *clientData);
00060 
00061   // Members
00062   private:
00063   };
00064 
00065 } // namespace wx
00066 
00067 #endif // ndef __wx_datacombo_h__

Generated on Wed Jan 25 08:13:08 2006 for Sherpa wxWidgets Classes by doxygen 1.3.6