21 #ifndef __ANTARES_TOOLBOX_WX_WIDGETS_H__
22 #define __ANTARES_TOOLBOX_WX_WIDGETS_H__
24 #if defined(__cplusplus)
25 #include <yuni/yuni.h>
26 #include <yuni/core/string.h>
27 #include <antares/study/fwd.h>
30 #if defined(__cplusplus)
36 class wxScrolledWindow;
39 #include <wx/object.h>
40 #include <wx/dynarray.h>
43 #include <wx/string.h>
44 #include <wx/hashmap.h>
45 #include <wx/arrstr.h>
50 #include <wx/stream.h>
51 #include <wx/memory.h>
52 #include <wx/window.h>
54 #include "wx/validate.h"
57 #error "Requires wxUSE_MENUS=1"
63 #if defined(__WXMOTIF__) || defined(__WXPM__) || defined(__WXX11__) || defined(__WXMGL__)
64 #define USE_CONTEXT_MENU 0
66 #define USE_CONTEXT_MENU 1
70 #error "The wxWidgets library must be compiled with the PNG support"
79 wxString wxStringFromUTF8(
const std::string& s);
81 wxString wxStringFromUTF8(
const char* s);
83 wxString wxStringFromUTF8(
const char*
const s, uint length);
85 wxString wxStringFromUTF8(
const Yuni::String& s);
87 template<u
int ChunkT,
bool FixedT>
88 wxString wxStringFromUTF8(
const Yuni::CString<ChunkT, FixedT>& s);
93 template<
class StringT>
94 void wxStringToString(
const wxString& s, StringT& out);
99 wxString DoubleToWxString(
double f);
104 template<
int PrecisionT>
105 wxString DoubleToWxStringS(
double f);
110 wxString DoubleToWxString(
double f, uint precision);
115 double wxStringToDouble(
const wxString& s,
double defValue = 0.);
120 template<
class StringT1,
class StringT2>
121 void AppendWithQuotes(StringT1& out,
const StringT2& text);
126 wxWindow* wxFindFrameParent(wxWindow* control);
128 #include "wx-wrapper.hxx"
130 #include "dispatcher.h"
134 #include <yuni/yuni.h>