- wxVariant(double val);
- wxVariant(long val);
- wxVariant(bool val);
- wxVariant(char val);
- wxVariant(const wxString& val);
- wxVariant(const char* val); // Necessary or VC++ assumes bool!
-/* Causes ambiguity
- wxVariant(const wxStringList& val);
-*/
- wxVariant(const wxList& val); // List of variants
+ wxVariant(double val, const wxString& name = wxEmptyString);
+ wxVariant(long val, const wxString& name = wxEmptyString);
+#ifdef HAVE_BOOL
+ wxVariant(bool val, const wxString& name = wxEmptyString);
+#endif
+ wxVariant(char val, const wxString& name = wxEmptyString);
+ wxVariant(const wxString& val, const wxString& name = wxEmptyString);
+ wxVariant(const wxChar* val, const wxString& name = wxEmptyString); // Necessary or VC++ assumes bool!
+ wxVariant(const wxStringList& val, const wxString& name = wxEmptyString);
+ wxVariant(const wxList& val, const wxString& name = wxEmptyString); // List of variants
+// For some reason, Watcom C++ can't link variant.cpp with time/date classes compiled
+#if wxUSE_TIMEDATE && !defined(__WATCOMC__)
+ wxVariant(const wxTime& val, const wxString& name = wxEmptyString); // Time
+ wxVariant(const wxDate& val, const wxString& name = wxEmptyString); // Date
+#endif
+ wxVariant(void* ptr, const wxString& name = wxEmptyString); // void* (general purpose)
+ wxVariant(wxVariantData* data, const wxString& name = wxEmptyString); // User-defined data