The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

143 lines
4.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-10 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #ifndef __JUCER_HEADERS_JUCEHEADER__
  19. #define __JUCER_HEADERS_JUCEHEADER__
  20. #ifdef _MSC_VER
  21. #pragma warning (disable: 4100 4505)
  22. #define DONT_LIST_JUCE_AUTOLINKEDLIBS 1
  23. #endif
  24. //==============================================================================
  25. #include "../JuceLibraryCode/JuceHeader.h"
  26. #include "utility/jucer_StoredSettings.h"
  27. #include "utility/jucer_MiscUtilities.h"
  28. #include "utility/jucer_CodeHelpers.h"
  29. #include "utility/jucer_FileHelpers.h"
  30. #include "utility/jucer_RelativePath.h"
  31. #include "utility/jucer_ValueSourceHelpers.h"
  32. #include "ui/jucer_CommandIDs.h"
  33. //==============================================================================
  34. extern ApplicationCommandManager* commandManager;
  35. //==============================================================================
  36. static const char* const newLine = "\r\n";
  37. const char* const projectItemDragType = "Project Items";
  38. const char* const drawableItemDragType = "Drawable Items";
  39. const char* const componentItemDragType = "Components";
  40. const char* const textFileExtensions = "cpp;h;hpp;mm;m;c;txt;xml;plist;rtf;html;htm;php;py;rb;cs";
  41. const char* const sourceFileExtensions = "cpp;mm;m;c;h;hpp";
  42. const char* const headerFileExtensions = "h;hpp";
  43. const int numSwatchColours = 24;
  44. const int snapSizes[] = { 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32 };
  45. const float snapDistance = 8.0f;
  46. static const Colour alignmentMarkerColour (0x77ff0000);
  47. static const Colour resizableBorderColour (0x7066aaff);
  48. // Handy list of static Identifiers..
  49. namespace Ids
  50. {
  51. #define DECLARE_ID(name) const Identifier name (#name)
  52. DECLARE_ID (text);
  53. DECLARE_ID (name);
  54. DECLARE_ID (file);
  55. DECLARE_ID (font);
  56. DECLARE_ID (mode);
  57. DECLARE_ID (type);
  58. DECLARE_ID (version);
  59. DECLARE_ID (position);
  60. DECLARE_ID (source);
  61. DECLARE_ID (readOnly);
  62. DECLARE_ID (editMode);
  63. DECLARE_ID (justification);
  64. DECLARE_ID (items);
  65. DECLARE_ID (editable);
  66. DECLARE_ID (textJustification);
  67. DECLARE_ID (unselectedText);
  68. DECLARE_ID (noItemsText);
  69. DECLARE_ID (min);
  70. DECLARE_ID (max);
  71. DECLARE_ID (width);
  72. DECLARE_ID (height);
  73. DECLARE_ID (background);
  74. DECLARE_ID (interval);
  75. DECLARE_ID (textBoxPos);
  76. DECLARE_ID (textBoxWidth);
  77. DECLARE_ID (textBoxHeight);
  78. DECLARE_ID (skew);
  79. DECLARE_ID (scrollBarV);
  80. DECLARE_ID (scrollBarH);
  81. DECLARE_ID (scrollbarWidth);
  82. DECLARE_ID (initialState);
  83. DECLARE_ID (scrollbarsShown);
  84. DECLARE_ID (caretVisible);
  85. DECLARE_ID (popupMenuEnabled);
  86. DECLARE_ID (radioGroup);
  87. DECLARE_ID (connectedLeft);
  88. DECLARE_ID (connectedRight);
  89. DECLARE_ID (connectedTop);
  90. DECLARE_ID (connectedBottom);
  91. DECLARE_ID (juceFolder);
  92. DECLARE_ID (targetFolder);
  93. DECLARE_ID (vstFolder);
  94. DECLARE_ID (rtasFolder);
  95. DECLARE_ID (auFolder);
  96. DECLARE_ID (extraCompilerFlags);
  97. DECLARE_ID (extraLinkerFlags);
  98. DECLARE_ID (extraDefs);
  99. DECLARE_ID (libraryName_Debug);
  100. DECLARE_ID (libraryName_Release);
  101. DECLARE_ID (libraryType);
  102. DECLARE_ID (isDebug);
  103. DECLARE_ID (targetName);
  104. DECLARE_ID (binaryPath);
  105. DECLARE_ID (optimisation);
  106. DECLARE_ID (defines);
  107. DECLARE_ID (headerPath);
  108. DECLARE_ID (osxSDK);
  109. DECLARE_ID (osxCompatibility);
  110. DECLARE_ID (jucerVersion);
  111. DECLARE_ID (projectType);
  112. DECLARE_ID (juceLinkage);
  113. DECLARE_ID (buildVST);
  114. DECLARE_ID (bundleIdentifier);
  115. DECLARE_ID (compile);
  116. DECLARE_ID (resource);
  117. DECLARE_ID (className);
  118. DECLARE_ID (classDesc);
  119. DECLARE_ID (controlPoint);
  120. const Identifier class_ ("class");
  121. const Identifier id_ ("id");
  122. }
  123. #endif // __JUCER_HEADERS_JUCEHEADER__