You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
967B

  1. #ifndef __misc__
  2. #define __misc__
  3. #include <wx/string.h>
  4. #include <wx/datetime.h>
  5. #ifdef __WXGTK__
  6. #define slash "/"
  7. #elif defined( __WXMSW__ )
  8. #define slash "\\"
  9. #endif
  10. #define _C(string) (const char*) wxString(string).mb_str(wxConvUTF8) // wxString -> char*
  11. #define _itoW(integer) wxString::Format("%i",integer) // int -> wxString
  12. enum
  13. {
  14. AND=0,
  15. OR=1,
  16. };
  17. wxString bool2W(bool in);
  18. bool W2bool(wxString in);
  19. wxString op2W(int in);
  20. int W2op(wxString in);
  21. wxDateTime int2date(int in);
  22. int date2int(wxDateTime in);
  23. /* CSV BDD GRID
  24. id 0 0 13
  25. n_dossier 1 1 4
  26. nom 3 2 5
  27. prenom 4 3 6
  28. service 6 10 /
  29. etablissement 7 7 10
  30. travail 12 8 11
  31. thème 13 6 9
  32. responsable 19 4 7
  33. consultant 20 5 8
  34. date 21 9 12
  35. ==========================================
  36. resultats 4 0
  37. publi 1 1
  38. publi_CHU 2 2
  39. cs_associe 3 3
  40. */
  41. #endif //__misc__