main.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /***************************************************************************
  2. * main.h
  3. *
  4. * mar. août 23 16:17:01 2016
  5. * Copyright 2016 Unknown
  6. * <user@host>
  7. ****************************************************************************/
  8. /*
  9. * main.h
  10. *
  11. * Copyright (C) 2016 - Unknown
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. #ifndef __MAIN_H__
  27. #define __MAIN_H__
  28. #include <gtk/gtk.h>
  29. #include <iostream>
  30. #include <json/json.h>
  31. std::string strtolower(const std::string& _data);
  32. #define TEST
  33. #ifdef TEST
  34. #define UI_FILE "src/histodexc.ui"
  35. #else
  36. #ifdef G_OS_WIN32
  37. #define UI_FILE ui_file
  38. #else
  39. #define UI_FILE PACKAGE_DATA_DIR"/ui/histodexc.ui"
  40. #endif
  41. #endif
  42. #define TOP_WINDOW "main_window"
  43. #endif