21#ifndef __ANTARES_TOOLBOX_WX_WIDGETS_H__
22#define __ANTARES_TOOLBOX_WX_WIDGETS_H__
24#if defined(__cplusplus)
26#include <yuni/core/string.h>
27#include <antares/study/fwd.h>
30#if defined(__cplusplus)
36class wxScrolledWindow;
40#include <wx/dynarray.h>
44#include <wx/hashmap.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"
79wxString wxStringFromUTF8(
const std::string& s);
81wxString wxStringFromUTF8(
const char* s);
83wxString wxStringFromUTF8(
const char*
const s, uint length);
85wxString wxStringFromUTF8(
const Yuni::String& s);
87template<u
int ChunkT,
bool FixedT>
88wxString wxStringFromUTF8(
const Yuni::CString<ChunkT, FixedT>& s);
93template<
class StringT>
94void wxStringToString(
const wxString& s, StringT& out);
99wxString DoubleToWxString(
double f);
104template<
int PrecisionT>
105wxString DoubleToWxStringS(
double f);
110wxString DoubleToWxString(
double f, uint precision);
115double wxStringToDouble(
const wxString& s,
double defValue = 0.);
120template<
class StringT1,
class StringT2>
121void AppendWithQuotes(StringT1& out,
const StringT2& text);
126wxWindow* wxFindFrameParent(wxWindow* control);
128#include "wx-wrapper.hxx"
130#include "dispatcher.h"
134#include <yuni/yuni.h>