diff --git a/build/linux/JUCE.make b/build/linux/JUCE.make
index 4a267a347e..57dff2aaf7 100644
--- a/build/linux/JUCE.make
+++ b/build/linux/JUCE.make
@@ -51,11 +51,11 @@ OBJECTS := \
$(OBJDIR)/juce_Primes.o \
$(OBJDIR)/juce_RSAKey.o \
$(OBJDIR)/juce_MD5.o \
- $(OBJDIR)/juce_ValueTree.o \
$(OBJDIR)/juce_PropertySet.o \
$(OBJDIR)/juce_NamedValueSet.o \
$(OBJDIR)/juce_MemoryBlock.o \
$(OBJDIR)/juce_Value.o \
+ $(OBJDIR)/juce_ValueTree.o \
$(OBJDIR)/juce_BitArray.o \
$(OBJDIR)/juce_DynamicObject.o \
$(OBJDIR)/juce_Variant.o \
@@ -79,12 +79,12 @@ OBJECTS := \
$(OBJDIR)/juce_GZIPCompressorOutputStream.o \
$(OBJDIR)/juce_InputStream.o \
$(OBJDIR)/juce_StringArray.o \
- $(OBJDIR)/juce_String.o \
$(OBJDIR)/juce_StringPairArray.o \
- $(OBJDIR)/juce_CharacterFunctions.o \
$(OBJDIR)/juce_LocalisedStrings.o \
+ $(OBJDIR)/juce_String.o \
$(OBJDIR)/juce_XmlElement.o \
$(OBJDIR)/juce_XmlDocument.o \
+ $(OBJDIR)/juce_CharacterFunctions.o \
$(OBJDIR)/juce_InterProcessLock.o \
$(OBJDIR)/juce_ReadWriteLock.o \
$(OBJDIR)/juce_Thread.o \
@@ -96,8 +96,8 @@ OBJECTS := \
$(OBJDIR)/juce_ApplicationCommandTarget.o \
$(OBJDIR)/juce_Application.o \
$(OBJDIR)/juce_IIRFilter.o \
- $(OBJDIR)/juce_AudioSampleBuffer.o \
$(OBJDIR)/juce_AudioDataConverters.o \
+ $(OBJDIR)/juce_AudioSampleBuffer.o \
$(OBJDIR)/juce_MidiKeyboardState.o \
$(OBJDIR)/juce_MidiMessage.o \
$(OBJDIR)/juce_MidiFile.o \
@@ -120,14 +120,14 @@ OBJECTS := \
$(OBJDIR)/juce_AudioSubsectionReader.o \
$(OBJDIR)/juce_AudioThumbnailCache.o \
$(OBJDIR)/juce_AudioCDReader.o \
- $(OBJDIR)/juce_AudioThumbnail.o \
$(OBJDIR)/juce_AudioFormatManager.o \
$(OBJDIR)/juce_OggVorbisAudioFormat.o \
$(OBJDIR)/juce_AiffAudioFormat.o \
- $(OBJDIR)/juce_AudioFormat.o \
+ $(OBJDIR)/juce_AudioThumbnail.o \
$(OBJDIR)/juce_FlacAudioFormat.o \
- $(OBJDIR)/juce_QuickTimeAudioFormat.o \
$(OBJDIR)/juce_WavAudioFormat.o \
+ $(OBJDIR)/juce_QuickTimeAudioFormat.o \
+ $(OBJDIR)/juce_AudioFormat.o \
$(OBJDIR)/juce_AudioFormatReaderSource.o \
$(OBJDIR)/juce_AudioSourcePlayer.o \
$(OBJDIR)/juce_AudioTransportSource.o \
@@ -163,67 +163,65 @@ OBJECTS := \
$(OBJDIR)/juce_Colours.o \
$(OBJDIR)/juce_Colour.o \
$(OBJDIR)/juce_ColourGradient.o \
- $(OBJDIR)/juce_Graphics.o \
$(OBJDIR)/juce_Justification.o \
$(OBJDIR)/juce_RectanglePlacement.o \
- $(OBJDIR)/juce_FillType.o \
- $(OBJDIR)/juce_EdgeTable.o \
$(OBJDIR)/juce_LowLevelGraphicsSoftwareRenderer.o \
+ $(OBJDIR)/juce_EdgeTable.o \
+ $(OBJDIR)/juce_FillType.o \
$(OBJDIR)/juce_LowLevelGraphicsPostScriptRenderer.o \
+ $(OBJDIR)/juce_Graphics.o \
$(OBJDIR)/juce_DrawableComposite.o \
- $(OBJDIR)/juce_DrawablePath.o \
- $(OBJDIR)/juce_DrawableText.o \
$(OBJDIR)/juce_SVGParser.o \
- $(OBJDIR)/juce_Drawable.o \
+ $(OBJDIR)/juce_DrawableText.o \
$(OBJDIR)/juce_DrawableImage.o \
+ $(OBJDIR)/juce_DrawablePath.o \
+ $(OBJDIR)/juce_Drawable.o \
$(OBJDIR)/juce_ReduceOpacityEffect.o \
$(OBJDIR)/juce_GlowEffect.o \
$(OBJDIR)/juce_DropShadowEffect.o \
- $(OBJDIR)/juce_Font.o \
$(OBJDIR)/juce_TextLayout.o \
$(OBJDIR)/juce_GlyphArrangement.o \
$(OBJDIR)/juce_Typeface.o \
- $(OBJDIR)/juce_Path.o \
+ $(OBJDIR)/juce_Font.o \
$(OBJDIR)/juce_BorderSize.o \
$(OBJDIR)/juce_Line.o \
+ $(OBJDIR)/juce_Path.o \
$(OBJDIR)/juce_AffineTransform.o \
- $(OBJDIR)/juce_Point.o \
- $(OBJDIR)/juce_Rectangle.o \
$(OBJDIR)/juce_PathIterator.o \
$(OBJDIR)/juce_PathStrokeType.o \
- $(OBJDIR)/juce_PositionedRectangle.o \
$(OBJDIR)/juce_RectangleList.o \
- $(OBJDIR)/juce_Image.o \
+ $(OBJDIR)/juce_PositionedRectangle.o \
$(OBJDIR)/juce_ImageFileFormat.o \
$(OBJDIR)/juce_ImageCache.o \
$(OBJDIR)/juce_ImageConvolutionKernel.o \
+ $(OBJDIR)/juce_Image.o \
$(OBJDIR)/juce_JPEGLoader.o \
$(OBJDIR)/juce_PNGLoader.o \
$(OBJDIR)/juce_GIFLoader.o \
$(OBJDIR)/juce_ComponentListener.o \
- $(OBJDIR)/juce_Desktop.o \
$(OBJDIR)/juce_Component.o \
+ $(OBJDIR)/juce_Desktop.o \
$(OBJDIR)/juce_ArrowButton.o \
$(OBJDIR)/juce_HyperlinkButton.o \
$(OBJDIR)/juce_TextButton.o \
$(OBJDIR)/juce_ToggleButton.o \
- $(OBJDIR)/juce_ShapeButton.o \
- $(OBJDIR)/juce_ToolbarButton.o \
- $(OBJDIR)/juce_DrawableButton.o \
$(OBJDIR)/juce_ImageButton.o \
+ $(OBJDIR)/juce_DrawableButton.o \
$(OBJDIR)/juce_Button.o \
- $(OBJDIR)/juce_TreeView.o \
+ $(OBJDIR)/juce_ToolbarButton.o \
+ $(OBJDIR)/juce_ShapeButton.o \
+ $(OBJDIR)/juce_ListBox.o \
$(OBJDIR)/juce_Label.o \
$(OBJDIR)/juce_ToolbarItemPalette.o \
- $(OBJDIR)/juce_TextEditor.o \
- $(OBJDIR)/juce_ToolbarItemComponent.o \
- $(OBJDIR)/juce_Toolbar.o \
- $(OBJDIR)/juce_TableHeaderComponent.o \
- $(OBJDIR)/juce_ProgressBar.o \
$(OBJDIR)/juce_Slider.o \
- $(OBJDIR)/juce_ListBox.o \
+ $(OBJDIR)/juce_ProgressBar.o \
$(OBJDIR)/juce_ComboBox.o \
+ $(OBJDIR)/juce_TableHeaderComponent.o \
$(OBJDIR)/juce_TableListBox.o \
+ $(OBJDIR)/juce_TextEditor.o \
+ $(OBJDIR)/juce_Toolbar.o \
+ $(OBJDIR)/juce_ToolbarItemComponent.o \
+ $(OBJDIR)/juce_TreeView.o \
$(OBJDIR)/juce_CPlusPlusCodeTokeniser.o \
$(OBJDIR)/juce_CodeDocument.o \
$(OBJDIR)/juce_CodeEditorComponent.o \
@@ -241,29 +239,29 @@ OBJECTS := \
$(OBJDIR)/juce_DirectoryContentsDisplayComponent.o \
$(OBJDIR)/juce_KeyListener.o \
$(OBJDIR)/juce_KeyPress.o \
- $(OBJDIR)/juce_KeyboardFocusTraverser.o \
- $(OBJDIR)/juce_ModifierKeys.o \
$(OBJDIR)/juce_KeyPressMappingSet.o \
$(OBJDIR)/juce_KeyMappingEditorComponent.o \
+ $(OBJDIR)/juce_KeyboardFocusTraverser.o \
+ $(OBJDIR)/juce_ModifierKeys.o \
$(OBJDIR)/juce_ScrollBar.o \
$(OBJDIR)/juce_GroupComponent.o \
$(OBJDIR)/juce_ResizableBorderComponent.o \
$(OBJDIR)/juce_ResizableCornerComponent.o \
- $(OBJDIR)/juce_ComponentAnimator.o \
+ $(OBJDIR)/juce_TabbedComponent.o \
$(OBJDIR)/juce_StretchableLayoutResizerBar.o \
- $(OBJDIR)/juce_StretchableObjectResizer.o \
+ $(OBJDIR)/juce_ComponentAnimator.o \
$(OBJDIR)/juce_ComponentMovementWatcher.o \
$(OBJDIR)/juce_Viewport.o \
$(OBJDIR)/juce_TabbedButtonBar.o \
$(OBJDIR)/juce_StretchableLayoutManager.o \
- $(OBJDIR)/juce_ComponentBoundsConstrainer.o \
- $(OBJDIR)/juce_TabbedComponent.o \
+ $(OBJDIR)/juce_StretchableObjectResizer.o \
$(OBJDIR)/juce_MultiDocumentPanel.o \
+ $(OBJDIR)/juce_ComponentBoundsConstrainer.o \
$(OBJDIR)/juce_LookAndFeel.o \
$(OBJDIR)/juce_OldSchoolLookAndFeel.o \
- $(OBJDIR)/juce_PopupMenu.o \
$(OBJDIR)/juce_MenuBarModel.o \
$(OBJDIR)/juce_MenuBarComponent.o \
+ $(OBJDIR)/juce_PopupMenu.o \
$(OBJDIR)/juce_ComponentDragger.o \
$(OBJDIR)/juce_MouseEvent.o \
$(OBJDIR)/juce_MouseHoverDetector.o \
@@ -271,30 +269,30 @@ OBJECTS := \
$(OBJDIR)/juce_MouseCursor.o \
$(OBJDIR)/juce_DragAndDropContainer.o \
$(OBJDIR)/juce_ButtonPropertyComponent.o \
+ $(OBJDIR)/juce_PropertyPanel.o \
$(OBJDIR)/juce_PropertyComponent.o \
$(OBJDIR)/juce_SliderPropertyComponent.o \
- $(OBJDIR)/juce_PropertyPanel.o \
- $(OBJDIR)/juce_BooleanPropertyComponent.o \
$(OBJDIR)/juce_TextPropertyComponent.o \
$(OBJDIR)/juce_ChoicePropertyComponent.o \
- $(OBJDIR)/juce_ColourSelector.o \
+ $(OBJDIR)/juce_BooleanPropertyComponent.o \
$(OBJDIR)/juce_BubbleMessageComponent.o \
$(OBJDIR)/juce_SystemTrayIconComponent.o \
- $(OBJDIR)/juce_BubbleComponent.o \
$(OBJDIR)/juce_PreferencesPanel.o \
$(OBJDIR)/juce_AudioDeviceSelectorComponent.o \
$(OBJDIR)/juce_DropShadower.o \
- $(OBJDIR)/juce_MagnifierComponent.o \
$(OBJDIR)/juce_MidiKeyboardComponent.o \
$(OBJDIR)/juce_OpenGLComponent.o \
- $(OBJDIR)/juce_AlertWindow.o \
+ $(OBJDIR)/juce_BubbleComponent.o \
+ $(OBJDIR)/juce_ColourSelector.o \
+ $(OBJDIR)/juce_MagnifierComponent.o \
+ $(OBJDIR)/juce_SplashScreen.o \
$(OBJDIR)/juce_DialogWindow.o \
- $(OBJDIR)/juce_ResizableWindow.o \
$(OBJDIR)/juce_TooltipWindow.o \
$(OBJDIR)/juce_ThreadWithProgressWindow.o \
- $(OBJDIR)/juce_DocumentWindow.o \
+ $(OBJDIR)/juce_AlertWindow.o \
$(OBJDIR)/juce_ComponentPeer.o \
- $(OBJDIR)/juce_SplashScreen.o \
+ $(OBJDIR)/juce_DocumentWindow.o \
+ $(OBJDIR)/juce_ResizableWindow.o \
$(OBJDIR)/juce_TopLevelWindow.o \
$(OBJDIR)/juce_linux_Midi.o \
$(OBJDIR)/juce_linux_Windowing.o \
@@ -412,11 +410,6 @@ $(OBJDIR)/juce_MD5.o: ../../src/cryptography/juce_MD5.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_ValueTree.o: ../../src/containers/juce_ValueTree.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_PropertySet.o: ../../src/containers/juce_PropertySet.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -437,6 +430,11 @@ $(OBJDIR)/juce_Value.o: ../../src/containers/juce_Value.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_ValueTree.o: ../../src/containers/juce_ValueTree.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_BitArray.o: ../../src/containers/juce_BitArray.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -552,22 +550,17 @@ $(OBJDIR)/juce_StringArray.o: ../../src/text/juce_StringArray.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_String.o: ../../src/text/juce_String.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_StringPairArray.o: ../../src/text/juce_StringPairArray.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_CharacterFunctions.o: ../../src/text/juce_CharacterFunctions.cpp
+$(OBJDIR)/juce_LocalisedStrings.o: ../../src/text/juce_LocalisedStrings.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_LocalisedStrings.o: ../../src/text/juce_LocalisedStrings.cpp
+$(OBJDIR)/juce_String.o: ../../src/text/juce_String.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -582,6 +575,11 @@ $(OBJDIR)/juce_XmlDocument.o: ../../src/text/juce_XmlDocument.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_CharacterFunctions.o: ../../src/text/juce_CharacterFunctions.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_InterProcessLock.o: ../../src/threads/juce_InterProcessLock.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -637,12 +635,12 @@ $(OBJDIR)/juce_IIRFilter.o: ../../src/audio/dsp/juce_IIRFilter.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_AudioSampleBuffer.o: ../../src/audio/dsp/juce_AudioSampleBuffer.cpp
+$(OBJDIR)/juce_AudioDataConverters.o: ../../src/audio/dsp/juce_AudioDataConverters.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_AudioDataConverters.o: ../../src/audio/dsp/juce_AudioDataConverters.cpp
+$(OBJDIR)/juce_AudioSampleBuffer.o: ../../src/audio/dsp/juce_AudioSampleBuffer.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -757,11 +755,6 @@ $(OBJDIR)/juce_AudioCDReader.o: ../../src/audio/audio_file_formats/juce_AudioCDR
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_AudioThumbnail.o: ../../src/audio/audio_file_formats/juce_AudioThumbnail.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_AudioFormatManager.o: ../../src/audio/audio_file_formats/juce_AudioFormatManager.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -777,7 +770,7 @@ $(OBJDIR)/juce_AiffAudioFormat.o: ../../src/audio/audio_file_formats/juce_AiffAu
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_AudioFormat.o: ../../src/audio/audio_file_formats/juce_AudioFormat.cpp
+$(OBJDIR)/juce_AudioThumbnail.o: ../../src/audio/audio_file_formats/juce_AudioThumbnail.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -787,12 +780,17 @@ $(OBJDIR)/juce_FlacAudioFormat.o: ../../src/audio/audio_file_formats/juce_FlacAu
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_WavAudioFormat.o: ../../src/audio/audio_file_formats/juce_WavAudioFormat.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_QuickTimeAudioFormat.o: ../../src/audio/audio_file_formats/juce_QuickTimeAudioFormat.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_WavAudioFormat.o: ../../src/audio/audio_file_formats/juce_WavAudioFormat.cpp
+$(OBJDIR)/juce_AudioFormat.o: ../../src/audio/audio_file_formats/juce_AudioFormat.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -972,11 +970,6 @@ $(OBJDIR)/juce_ColourGradient.o: ../../src/gui/graphics/colour/juce_ColourGradie
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Graphics.o: ../../src/gui/graphics/contexts/juce_Graphics.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_Justification.o: ../../src/gui/graphics/contexts/juce_Justification.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -987,7 +980,7 @@ $(OBJDIR)/juce_RectanglePlacement.o: ../../src/gui/graphics/contexts/juce_Rectan
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_FillType.o: ../../src/gui/graphics/contexts/juce_FillType.cpp
+$(OBJDIR)/juce_LowLevelGraphicsSoftwareRenderer.o: ../../src/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -997,7 +990,7 @@ $(OBJDIR)/juce_EdgeTable.o: ../../src/gui/graphics/contexts/juce_EdgeTable.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_LowLevelGraphicsSoftwareRenderer.o: ../../src/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp
+$(OBJDIR)/juce_FillType.o: ../../src/gui/graphics/contexts/juce_FillType.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1007,27 +1000,22 @@ $(OBJDIR)/juce_LowLevelGraphicsPostScriptRenderer.o: ../../src/gui/graphics/cont
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_Graphics.o: ../../src/gui/graphics/contexts/juce_Graphics.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_DrawableComposite.o: ../../src/gui/graphics/drawables/juce_DrawableComposite.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_DrawablePath.o: ../../src/gui/graphics/drawables/juce_DrawablePath.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_DrawableText.o: ../../src/gui/graphics/drawables/juce_DrawableText.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_SVGParser.o: ../../src/gui/graphics/drawables/juce_SVGParser.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Drawable.o: ../../src/gui/graphics/drawables/juce_Drawable.cpp
+$(OBJDIR)/juce_DrawableText.o: ../../src/gui/graphics/drawables/juce_DrawableText.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1037,6 +1025,16 @@ $(OBJDIR)/juce_DrawableImage.o: ../../src/gui/graphics/drawables/juce_DrawableIm
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_DrawablePath.o: ../../src/gui/graphics/drawables/juce_DrawablePath.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_Drawable.o: ../../src/gui/graphics/drawables/juce_Drawable.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_ReduceOpacityEffect.o: ../../src/gui/graphics/effects/juce_ReduceOpacityEffect.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1052,11 +1050,6 @@ $(OBJDIR)/juce_DropShadowEffect.o: ../../src/gui/graphics/effects/juce_DropShado
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Font.o: ../../src/gui/graphics/fonts/juce_Font.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_TextLayout.o: ../../src/gui/graphics/fonts/juce_TextLayout.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1072,7 +1065,7 @@ $(OBJDIR)/juce_Typeface.o: ../../src/gui/graphics/fonts/juce_Typeface.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Path.o: ../../src/gui/graphics/geometry/juce_Path.cpp
+$(OBJDIR)/juce_Font.o: ../../src/gui/graphics/fonts/juce_Font.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1087,21 +1080,16 @@ $(OBJDIR)/juce_Line.o: ../../src/gui/graphics/geometry/juce_Line.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_Path.o: ../../src/gui/graphics/geometry/juce_Path.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_AffineTransform.o: ../../src/gui/graphics/geometry/juce_AffineTransform.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Point.o: ../../src/gui/graphics/geometry/juce_Point.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_Rectangle.o: ../../src/gui/graphics/geometry/juce_Rectangle.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_PathIterator.o: ../../src/gui/graphics/geometry/juce_PathIterator.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1112,17 +1100,12 @@ $(OBJDIR)/juce_PathStrokeType.o: ../../src/gui/graphics/geometry/juce_PathStroke
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_PositionedRectangle.o: ../../src/gui/graphics/geometry/juce_PositionedRectangle.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_RectangleList.o: ../../src/gui/graphics/geometry/juce_RectangleList.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Image.o: ../../src/gui/graphics/imaging/juce_Image.cpp
+$(OBJDIR)/juce_PositionedRectangle.o: ../../src/gui/graphics/geometry/juce_PositionedRectangle.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1142,6 +1125,11 @@ $(OBJDIR)/juce_ImageConvolutionKernel.o: ../../src/gui/graphics/imaging/juce_Ima
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_Image.o: ../../src/gui/graphics/imaging/juce_Image.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_JPEGLoader.o: ../../src/gui/graphics/imaging/image_file_formats/juce_JPEGLoader.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1162,12 +1150,12 @@ $(OBJDIR)/juce_ComponentListener.o: ../../src/gui/components/juce_ComponentListe
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Desktop.o: ../../src/gui/components/juce_Desktop.cpp
+$(OBJDIR)/juce_Component.o: ../../src/gui/components/juce_Component.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Component.o: ../../src/gui/components/juce_Component.cpp
+$(OBJDIR)/juce_Desktop.o: ../../src/gui/components/juce_Desktop.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1192,12 +1180,7 @@ $(OBJDIR)/juce_ToggleButton.o: ../../src/gui/components/buttons/juce_ToggleButto
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_ShapeButton.o: ../../src/gui/components/buttons/juce_ShapeButton.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_ToolbarButton.o: ../../src/gui/components/buttons/juce_ToolbarButton.cpp
+$(OBJDIR)/juce_ImageButton.o: ../../src/gui/components/buttons/juce_ImageButton.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1207,17 +1190,22 @@ $(OBJDIR)/juce_DrawableButton.o: ../../src/gui/components/buttons/juce_DrawableB
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_ImageButton.o: ../../src/gui/components/buttons/juce_ImageButton.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_Button.o: ../../src/gui/components/buttons/juce_Button.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_TreeView.o: ../../src/gui/components/controls/juce_TreeView.cpp
+$(OBJDIR)/juce_ToolbarButton.o: ../../src/gui/components/buttons/juce_ToolbarButton.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_ShapeButton.o: ../../src/gui/components/buttons/juce_ShapeButton.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_ListBox.o: ../../src/gui/components/controls/juce_ListBox.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1232,22 +1220,7 @@ $(OBJDIR)/juce_ToolbarItemPalette.o: ../../src/gui/components/controls/juce_Tool
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_TextEditor.o: ../../src/gui/components/controls/juce_TextEditor.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_ToolbarItemComponent.o: ../../src/gui/components/controls/juce_ToolbarItemComponent.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_Toolbar.o: ../../src/gui/components/controls/juce_Toolbar.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_TableHeaderComponent.o: ../../src/gui/components/controls/juce_TableHeaderComponent.cpp
+$(OBJDIR)/juce_Slider.o: ../../src/gui/components/controls/juce_Slider.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1257,26 +1230,41 @@ $(OBJDIR)/juce_ProgressBar.o: ../../src/gui/components/controls/juce_ProgressBar
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_Slider.o: ../../src/gui/components/controls/juce_Slider.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_ListBox.o: ../../src/gui/components/controls/juce_ListBox.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_ComboBox.o: ../../src/gui/components/controls/juce_ComboBox.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_TableHeaderComponent.o: ../../src/gui/components/controls/juce_TableHeaderComponent.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_TableListBox.o: ../../src/gui/components/controls/juce_TableListBox.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_TextEditor.o: ../../src/gui/components/controls/juce_TextEditor.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_Toolbar.o: ../../src/gui/components/controls/juce_Toolbar.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_ToolbarItemComponent.o: ../../src/gui/components/controls/juce_ToolbarItemComponent.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_TreeView.o: ../../src/gui/components/controls/juce_TreeView.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_CPlusPlusCodeTokeniser.o: ../../src/gui/components/code_editor/juce_CPlusPlusCodeTokeniser.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1362,16 +1350,6 @@ $(OBJDIR)/juce_KeyPress.o: ../../src/gui/components/keyboard/juce_KeyPress.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_KeyboardFocusTraverser.o: ../../src/gui/components/keyboard/juce_KeyboardFocusTraverser.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_ModifierKeys.o: ../../src/gui/components/keyboard/juce_ModifierKeys.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_KeyPressMappingSet.o: ../../src/gui/components/keyboard/juce_KeyPressMappingSet.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1382,6 +1360,16 @@ $(OBJDIR)/juce_KeyMappingEditorComponent.o: ../../src/gui/components/keyboard/ju
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_KeyboardFocusTraverser.o: ../../src/gui/components/keyboard/juce_KeyboardFocusTraverser.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_ModifierKeys.o: ../../src/gui/components/keyboard/juce_ModifierKeys.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_ScrollBar.o: ../../src/gui/components/layout/juce_ScrollBar.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1402,7 +1390,7 @@ $(OBJDIR)/juce_ResizableCornerComponent.o: ../../src/gui/components/layout/juce_
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_ComponentAnimator.o: ../../src/gui/components/layout/juce_ComponentAnimator.cpp
+$(OBJDIR)/juce_TabbedComponent.o: ../../src/gui/components/layout/juce_TabbedComponent.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1412,7 +1400,7 @@ $(OBJDIR)/juce_StretchableLayoutResizerBar.o: ../../src/gui/components/layout/ju
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_StretchableObjectResizer.o: ../../src/gui/components/layout/juce_StretchableObjectResizer.cpp
+$(OBJDIR)/juce_ComponentAnimator.o: ../../src/gui/components/layout/juce_ComponentAnimator.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1437,12 +1425,7 @@ $(OBJDIR)/juce_StretchableLayoutManager.o: ../../src/gui/components/layout/juce_
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_ComponentBoundsConstrainer.o: ../../src/gui/components/layout/juce_ComponentBoundsConstrainer.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_TabbedComponent.o: ../../src/gui/components/layout/juce_TabbedComponent.cpp
+$(OBJDIR)/juce_StretchableObjectResizer.o: ../../src/gui/components/layout/juce_StretchableObjectResizer.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1452,6 +1435,11 @@ $(OBJDIR)/juce_MultiDocumentPanel.o: ../../src/gui/components/layout/juce_MultiD
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_ComponentBoundsConstrainer.o: ../../src/gui/components/layout/juce_ComponentBoundsConstrainer.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_LookAndFeel.o: ../../src/gui/components/lookandfeel/juce_LookAndFeel.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1462,11 +1450,6 @@ $(OBJDIR)/juce_OldSchoolLookAndFeel.o: ../../src/gui/components/lookandfeel/juce
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_PopupMenu.o: ../../src/gui/components/menus/juce_PopupMenu.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_MenuBarModel.o: ../../src/gui/components/menus/juce_MenuBarModel.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1477,6 +1460,11 @@ $(OBJDIR)/juce_MenuBarComponent.o: ../../src/gui/components/menus/juce_MenuBarCo
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_PopupMenu.o: ../../src/gui/components/menus/juce_PopupMenu.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_ComponentDragger.o: ../../src/gui/components/mouse/juce_ComponentDragger.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1512,6 +1500,11 @@ $(OBJDIR)/juce_ButtonPropertyComponent.o: ../../src/gui/components/properties/ju
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/juce_PropertyPanel.o: ../../src/gui/components/properties/juce_PropertyPanel.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/juce_PropertyComponent.o: ../../src/gui/components/properties/juce_PropertyComponent.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1522,16 +1515,6 @@ $(OBJDIR)/juce_SliderPropertyComponent.o: ../../src/gui/components/properties/ju
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_PropertyPanel.o: ../../src/gui/components/properties/juce_PropertyPanel.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
-$(OBJDIR)/juce_BooleanPropertyComponent.o: ../../src/gui/components/properties/juce_BooleanPropertyComponent.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_TextPropertyComponent.o: ../../src/gui/components/properties/juce_TextPropertyComponent.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1542,7 +1525,7 @@ $(OBJDIR)/juce_ChoicePropertyComponent.o: ../../src/gui/components/properties/ju
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_ColourSelector.o: ../../src/gui/components/special/juce_ColourSelector.cpp
+$(OBJDIR)/juce_BooleanPropertyComponent.o: ../../src/gui/components/properties/juce_BooleanPropertyComponent.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1557,11 +1540,6 @@ $(OBJDIR)/juce_SystemTrayIconComponent.o: ../../src/gui/components/special/juce_
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_BubbleComponent.o: ../../src/gui/components/special/juce_BubbleComponent.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_PreferencesPanel.o: ../../src/gui/components/special/juce_PreferencesPanel.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1577,11 +1555,6 @@ $(OBJDIR)/juce_DropShadower.o: ../../src/gui/components/special/juce_DropShadowe
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_MagnifierComponent.o: ../../src/gui/components/special/juce_MagnifierComponent.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_MidiKeyboardComponent.o: ../../src/gui/components/special/juce_MidiKeyboardComponent.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1592,7 +1565,22 @@ $(OBJDIR)/juce_OpenGLComponent.o: ../../src/gui/components/special/juce_OpenGLCo
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_AlertWindow.o: ../../src/gui/components/windows/juce_AlertWindow.cpp
+$(OBJDIR)/juce_BubbleComponent.o: ../../src/gui/components/special/juce_BubbleComponent.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_ColourSelector.o: ../../src/gui/components/special/juce_ColourSelector.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_MagnifierComponent.o: ../../src/gui/components/special/juce_MagnifierComponent.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_SplashScreen.o: ../../src/gui/components/windows/juce_SplashScreen.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1602,11 +1590,6 @@ $(OBJDIR)/juce_DialogWindow.o: ../../src/gui/components/windows/juce_DialogWindo
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_ResizableWindow.o: ../../src/gui/components/windows/juce_ResizableWindow.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/juce_TooltipWindow.o: ../../src/gui/components/windows/juce_TooltipWindow.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -1617,7 +1600,7 @@ $(OBJDIR)/juce_ThreadWithProgressWindow.o: ../../src/gui/components/windows/juce
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_DocumentWindow.o: ../../src/gui/components/windows/juce_DocumentWindow.cpp
+$(OBJDIR)/juce_AlertWindow.o: ../../src/gui/components/windows/juce_AlertWindow.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -1627,7 +1610,12 @@ $(OBJDIR)/juce_ComponentPeer.o: ../../src/gui/components/windows/juce_ComponentP
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/juce_SplashScreen.o: ../../src/gui/components/windows/juce_SplashScreen.cpp
+$(OBJDIR)/juce_DocumentWindow.o: ../../src/gui/components/windows/juce_DocumentWindow.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/juce_ResizableWindow.o: ../../src/gui/components/windows/juce_ResizableWindow.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
diff --git a/build/macosx/Juce.xcodeproj/project.pbxproj b/build/macosx/Juce.xcodeproj/project.pbxproj
index 27c8eb363d..47f5f614b0 100644
--- a/build/macosx/Juce.xcodeproj/project.pbxproj
+++ b/build/macosx/Juce.xcodeproj/project.pbxproj
@@ -542,7 +542,6 @@
8481706010809E00008FEC33 /* juce_PluginDirectoryScanner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1E7D010403614006A1807 /* juce_PluginDirectoryScanner.cpp */; };
8481706110809E00008FEC33 /* juce_PluginListComponent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1E7D210403614006A1807 /* juce_PluginListComponent.cpp */; };
8481706210809E00008FEC33 /* juce_PNGLoader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB7910403709006A1807 /* juce_PNGLoader.cpp */; };
- 8481706310809E00008FEC33 /* juce_Point.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6310403709006A1807 /* juce_Point.cpp */; };
8481706410809E00008FEC33 /* juce_PopupMenu.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EACA10403709006A1807 /* juce_PopupMenu.cpp */; };
8481706510809E00008FEC33 /* juce_PositionedRectangle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6510403709006A1807 /* juce_PositionedRectangle.cpp */; };
8481706610809E00008FEC33 /* juce_posix_NamedPipe.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8484E9D7103C95A6008B7C6C /* juce_posix_NamedPipe.cpp */; };
@@ -557,7 +556,6 @@
8481706F10809E00008FEC33 /* juce_Random.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1E8FB10403681006A1807 /* juce_Random.cpp */; };
8481707010809E00008FEC33 /* juce_ReadWriteLock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1E9DD104036D6006A1807 /* juce_ReadWriteLock.cpp */; };
8481707110809E00008FEC33 /* juce_RecentlyOpenedFilesList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1E9301040369C006A1807 /* juce_RecentlyOpenedFilesList.cpp */; };
- 8481707210809E00008FEC33 /* juce_Rectangle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6710403709006A1807 /* juce_Rectangle.cpp */; };
8481707310809E00008FEC33 /* juce_RectangleList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6910403709006A1807 /* juce_RectangleList.cpp */; };
8481707410809E00008FEC33 /* juce_RectanglePlacement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB3710403709006A1807 /* juce_RectanglePlacement.cpp */; };
8481707510809E00008FEC33 /* juce_ReduceOpacityEffect.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB4B10403709006A1807 /* juce_ReduceOpacityEffect.cpp */; };
@@ -1206,11 +1204,9 @@
84F1ECD31040370A006A1807 /* juce_PathIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = 84F1EB6010403709006A1807 /* juce_PathIterator.h */; };
84F1ECD41040370A006A1807 /* juce_PathStrokeType.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6110403709006A1807 /* juce_PathStrokeType.cpp */; };
84F1ECD51040370A006A1807 /* juce_PathStrokeType.h in Headers */ = {isa = PBXBuildFile; fileRef = 84F1EB6210403709006A1807 /* juce_PathStrokeType.h */; };
- 84F1ECD61040370A006A1807 /* juce_Point.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6310403709006A1807 /* juce_Point.cpp */; };
84F1ECD71040370A006A1807 /* juce_Point.h in Headers */ = {isa = PBXBuildFile; fileRef = 84F1EB6410403709006A1807 /* juce_Point.h */; };
84F1ECD81040370A006A1807 /* juce_PositionedRectangle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6510403709006A1807 /* juce_PositionedRectangle.cpp */; };
84F1ECD91040370A006A1807 /* juce_PositionedRectangle.h in Headers */ = {isa = PBXBuildFile; fileRef = 84F1EB6610403709006A1807 /* juce_PositionedRectangle.h */; };
- 84F1ECDA1040370A006A1807 /* juce_Rectangle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6710403709006A1807 /* juce_Rectangle.cpp */; };
84F1ECDB1040370A006A1807 /* juce_Rectangle.h in Headers */ = {isa = PBXBuildFile; fileRef = 84F1EB6810403709006A1807 /* juce_Rectangle.h */; };
84F1ECDC1040370A006A1807 /* juce_RectangleList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84F1EB6910403709006A1807 /* juce_RectangleList.cpp */; };
84F1ECDD1040370A006A1807 /* juce_RectangleList.h in Headers */ = {isa = PBXBuildFile; fileRef = 84F1EB6A10403709006A1807 /* juce_RectangleList.h */; };
@@ -1823,11 +1819,9 @@
84F1EB6010403709006A1807 /* juce_PathIterator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_PathIterator.h; path = ../../src/gui/graphics/geometry/juce_PathIterator.h; sourceTree = SOURCE_ROOT; };
84F1EB6110403709006A1807 /* juce_PathStrokeType.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = juce_PathStrokeType.cpp; path = ../../src/gui/graphics/geometry/juce_PathStrokeType.cpp; sourceTree = SOURCE_ROOT; };
84F1EB6210403709006A1807 /* juce_PathStrokeType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_PathStrokeType.h; path = ../../src/gui/graphics/geometry/juce_PathStrokeType.h; sourceTree = SOURCE_ROOT; };
- 84F1EB6310403709006A1807 /* juce_Point.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Point.cpp; path = ../../src/gui/graphics/geometry/juce_Point.cpp; sourceTree = SOURCE_ROOT; };
84F1EB6410403709006A1807 /* juce_Point.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_Point.h; path = ../../src/gui/graphics/geometry/juce_Point.h; sourceTree = SOURCE_ROOT; };
84F1EB6510403709006A1807 /* juce_PositionedRectangle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = juce_PositionedRectangle.cpp; path = ../../src/gui/graphics/geometry/juce_PositionedRectangle.cpp; sourceTree = SOURCE_ROOT; };
84F1EB6610403709006A1807 /* juce_PositionedRectangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_PositionedRectangle.h; path = ../../src/gui/graphics/geometry/juce_PositionedRectangle.h; sourceTree = SOURCE_ROOT; };
- 84F1EB6710403709006A1807 /* juce_Rectangle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Rectangle.cpp; path = ../../src/gui/graphics/geometry/juce_Rectangle.cpp; sourceTree = SOURCE_ROOT; };
84F1EB6810403709006A1807 /* juce_Rectangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_Rectangle.h; path = ../../src/gui/graphics/geometry/juce_Rectangle.h; sourceTree = SOURCE_ROOT; };
84F1EB6910403709006A1807 /* juce_RectangleList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = juce_RectangleList.cpp; path = ../../src/gui/graphics/geometry/juce_RectangleList.cpp; sourceTree = SOURCE_ROOT; };
84F1EB6A10403709006A1807 /* juce_RectangleList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_RectangleList.h; path = ../../src/gui/graphics/geometry/juce_RectangleList.h; sourceTree = SOURCE_ROOT; };
@@ -2877,11 +2871,9 @@
84F1EB6010403709006A1807 /* juce_PathIterator.h */,
84F1EB6110403709006A1807 /* juce_PathStrokeType.cpp */,
84F1EB6210403709006A1807 /* juce_PathStrokeType.h */,
- 84F1EB6310403709006A1807 /* juce_Point.cpp */,
84F1EB6410403709006A1807 /* juce_Point.h */,
84F1EB6510403709006A1807 /* juce_PositionedRectangle.cpp */,
84F1EB6610403709006A1807 /* juce_PositionedRectangle.h */,
- 84F1EB6710403709006A1807 /* juce_Rectangle.cpp */,
84F1EB6810403709006A1807 /* juce_Rectangle.h */,
84F1EB6910403709006A1807 /* juce_RectangleList.cpp */,
84F1EB6A10403709006A1807 /* juce_RectangleList.h */,
@@ -3842,7 +3834,6 @@
8481706010809E00008FEC33 /* juce_PluginDirectoryScanner.cpp in Sources */,
8481706110809E00008FEC33 /* juce_PluginListComponent.cpp in Sources */,
8481706210809E00008FEC33 /* juce_PNGLoader.cpp in Sources */,
- 8481706310809E00008FEC33 /* juce_Point.cpp in Sources */,
8481706410809E00008FEC33 /* juce_PopupMenu.cpp in Sources */,
8481706510809E00008FEC33 /* juce_PositionedRectangle.cpp in Sources */,
8481706610809E00008FEC33 /* juce_posix_NamedPipe.cpp in Sources */,
@@ -3857,7 +3848,6 @@
8481706F10809E00008FEC33 /* juce_Random.cpp in Sources */,
8481707010809E00008FEC33 /* juce_ReadWriteLock.cpp in Sources */,
8481707110809E00008FEC33 /* juce_RecentlyOpenedFilesList.cpp in Sources */,
- 8481707210809E00008FEC33 /* juce_Rectangle.cpp in Sources */,
8481707310809E00008FEC33 /* juce_RectangleList.cpp in Sources */,
8481707410809E00008FEC33 /* juce_RectanglePlacement.cpp in Sources */,
8481707510809E00008FEC33 /* juce_ReduceOpacityEffect.cpp in Sources */,
@@ -4201,9 +4191,7 @@
84F1ECD01040370A006A1807 /* juce_Path.cpp in Sources */,
84F1ECD21040370A006A1807 /* juce_PathIterator.cpp in Sources */,
84F1ECD41040370A006A1807 /* juce_PathStrokeType.cpp in Sources */,
- 84F1ECD61040370A006A1807 /* juce_Point.cpp in Sources */,
84F1ECD81040370A006A1807 /* juce_PositionedRectangle.cpp in Sources */,
- 84F1ECDA1040370A006A1807 /* juce_Rectangle.cpp in Sources */,
84F1ECDC1040370A006A1807 /* juce_RectangleList.cpp in Sources */,
84F1ECDF1040370A006A1807 /* juce_Image.cpp in Sources */,
84F1ECE11040370A006A1807 /* juce_ImageCache.cpp in Sources */,
diff --git a/build/win32/vc8/JUCE.vcproj b/build/win32/vc8/JUCE.vcproj
index a03b0fc764..9d09bfa26f 100644
--- a/build/win32/vc8/JUCE.vcproj
+++ b/build/win32/vc8/JUCE.vcproj
@@ -2471,10 +2471,6 @@
RelativePath="..\..\..\src\gui\graphics\geometry\juce_PathStrokeType.h"
>
-
-
@@ -2487,10 +2483,6 @@
RelativePath="..\..\..\src\gui\graphics\geometry\juce_PositionedRectangle.h"
>
-
-
diff --git a/extras/audio plugin host/src/host/GraphEditorPanel.cpp b/extras/audio plugin host/src/host/GraphEditorPanel.cpp
index 2acc77bc0a..e2d98f9423 100644
--- a/extras/audio plugin host/src/host/GraphEditorPanel.cpp
+++ b/extras/audio plugin host/src/host/GraphEditorPanel.cpp
@@ -540,10 +540,10 @@ public:
float x1, y1, x2, y2;
getPoints (x1, y1, x2, y2);
- const Rectangle newBounds ((int) jmin (x1, x2) - 4,
- (int) jmin (y1, y2) - 4,
- (int) fabsf (x1 - x2) + 8,
- (int) fabsf (y1 - y2) + 8);
+ const Rectangle newBounds ((int) jmin (x1, x2) - 4,
+ (int) jmin (y1, y2) - 4,
+ (int) fabsf (x1 - x2) + 8,
+ (int) fabsf (y1 - y2) + 8);
if (newBounds != getBounds())
setBounds (newBounds);
diff --git a/extras/audio plugins/wrapper/AU/juce_AU_Wrapper.mm b/extras/audio plugins/wrapper/AU/juce_AU_Wrapper.mm
index 93c9031e0b..f19dd4dfa4 100644
--- a/extras/audio plugins/wrapper/AU/juce_AU_Wrapper.mm
+++ b/extras/audio plugins/wrapper/AU/juce_AU_Wrapper.mm
@@ -29,8 +29,7 @@
#include
#include "AUMIDIEffectBase.h"
#include "MusicDeviceBase.h"
-#include "../juce_PluginHeaders.h"
-#include "../juce_PluginHostType.h"
+#include "../juce_IncludeCharacteristics.h"
#if JucePlugin_Build_AU
@@ -48,6 +47,9 @@
class JuceAUView;
#endif
+#include "../juce_PluginHeaders.h"
+#include "../juce_PluginHostType.h"
+
//==============================================================================
#define juceFilterObjectPropertyID 0x1a45ffe9
static VoidArray activePlugins, activeUIs;
diff --git a/extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.cpp b/extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.cpp
index 4347d1446e..cee09e2d08 100644
--- a/extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.cpp
+++ b/extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.cpp
@@ -45,8 +45,6 @@ StandaloneFilterWindow::StandaloneFilterWindow (const String& title,
{
setTitleBarButtonsRequired (DocumentWindow::minimiseButton | DocumentWindow::closeButton, false);
- PropertySet* const globalSettings = getGlobalSettings();
-
optionsButton = new TextButton (T("options"));
Component::addAndMakeVisible (optionsButton);
optionsButton->addButtonListener (this);
@@ -58,6 +56,8 @@ StandaloneFilterWindow::StandaloneFilterWindow (const String& title,
if (filter != 0)
{
+ PropertySet* const globalSettings = getGlobalSettings();
+
deviceManager = new AudioFilterStreamingDeviceManager();
deviceManager->setFilter (filter);
diff --git a/extras/browser plugins/wrapper/juce_NPAPI_GlueCode.cpp b/extras/browser plugins/wrapper/juce_NPAPI_GlueCode.cpp
index e19a93c7e4..a18647a8a1 100644
--- a/extras/browser plugins/wrapper/juce_NPAPI_GlueCode.cpp
+++ b/extras/browser plugins/wrapper/juce_NPAPI_GlueCode.cpp
@@ -419,8 +419,8 @@ public:
x -= frame.origin.x;
y -= frame.origin.y;
- Rectangle rr (frame.origin.x, frame.origin.y, frame.size.width, frame.size.height);
- Rectangle rr2 (bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height);
+ Rectangle rr (frame.origin.x, frame.origin.y, frame.size.width, frame.size.height);
+ Rectangle rr2 (bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height);
//log (String ((int) x) + ", " + String ((int) y) + " - " + nsStringToJuce([parent description]) + " " + rr.toString() + " " + rr2.toString());
if (x >= 0 && x < frame.size.width && y >= 0 && y < frame.size.height)
@@ -479,11 +479,11 @@ public:
#endif
log ("window: " + nsStringToJuce ([win description]));
- const Rectangle clip (window->clipRect.left, window->clipRect.top,
+ const Rectangle clip (window->clipRect.left, window->clipRect.top,
window->clipRect.right - window->clipRect.left,
window->clipRect.bottom - window->clipRect.top);
- const Rectangle target ((int) window->x, (int) window->y, (int) window->width, (int) window->height);
- const Rectangle intersection (clip.getIntersection (target));
+ const Rectangle target ((int) window->x, (int) window->y, (int) window->width, (int) window->height);
+ const Rectangle intersection (clip.getIntersection (target));
// in firefox the clip rect is usually out of step with the target rect, but in safari it matches
log ("plugin window clip: " + clip.toString());
@@ -501,8 +501,8 @@ public:
NSRect v = [content convertRect: [content frame] toView: nil];
NSRect w = [win frame];
- log ("wx: " + Rectangle (v.origin.x, v.origin.y, v.size.width, v.size.height).toString()
- + " " + Rectangle (w.origin.x, w.origin.y, w.size.width, w.size.height).toString());
+ log ("wx: " + Rectangle (v.origin.x, v.origin.y, v.size.width, v.size.height).toString()
+ + " " + Rectangle (w.origin.x, w.origin.y, w.size.width, w.size.height).toString());
// adjust the requested window pos to deal with the content view's origin within the window
wy -= w.size.height - (v.origin.y + v.size.height);
diff --git a/extras/juce demo/build/linux/JuceDemo.make b/extras/juce demo/build/linux/JuceDemo.make
index d145d4ba7b..65ab3313b6 100644
--- a/extras/juce demo/build/linux/JuceDemo.make
+++ b/extras/juce demo/build/linux/JuceDemo.make
@@ -41,9 +41,8 @@ endif
OBJECTS := \
$(OBJDIR)/BinaryData.o \
$(OBJDIR)/juce_LibrarySource.o \
- $(OBJDIR)/ApplicationStartup.o \
$(OBJDIR)/MainDemoWindow.o \
- $(OBJDIR)/AudioDemoLatencyPage.o \
+ $(OBJDIR)/ApplicationStartup.o \
$(OBJDIR)/AudioDemoPlaybackPage.o \
$(OBJDIR)/AudioDemoSetupPage.o \
$(OBJDIR)/AudioDemoSynthPage.o \
@@ -55,12 +54,13 @@ OBJECTS := \
$(OBJDIR)/OpenGLDemo.o \
$(OBJDIR)/QuickTimeDemo.o \
$(OBJDIR)/TableDemo.o \
- $(OBJDIR)/ThreadingDemo.o \
$(OBJDIR)/TreeViewDemo.o \
$(OBJDIR)/WebBrowserDemo.o \
$(OBJDIR)/CodeEditorDemo.o \
$(OBJDIR)/RenderingTestComponent.o \
$(OBJDIR)/AudioDemoRecordPage.o \
+ $(OBJDIR)/AudioDemoLatencyPage.o \
+ $(OBJDIR)/ThreadingDemo.o \
$(OBJDIR)/WidgetsDemo.o \
MKDIR_TYPE := msdos
@@ -113,17 +113,12 @@ $(OBJDIR)/juce_LibrarySource.o: ../../src/juce_LibrarySource.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/ApplicationStartup.o: ../../src/ApplicationStartup.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/MainDemoWindow.o: ../../src/MainDemoWindow.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/AudioDemoLatencyPage.o: ../../src/demos/AudioDemoLatencyPage.cpp
+$(OBJDIR)/ApplicationStartup.o: ../../src/ApplicationStartup.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
@@ -183,11 +178,6 @@ $(OBJDIR)/TableDemo.o: ../../src/demos/TableDemo.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-$(OBJDIR)/ThreadingDemo.o: ../../src/demos/ThreadingDemo.cpp
- -@$(CMD_MKOBJDIR)
- @echo $(notdir $<)
- @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-
$(OBJDIR)/TreeViewDemo.o: ../../src/demos/TreeViewDemo.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@@ -213,6 +203,16 @@ $(OBJDIR)/AudioDemoRecordPage.o: ../../src/demos/AudioDemoRecordPage.cpp
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+$(OBJDIR)/AudioDemoLatencyPage.o: ../../src/demos/AudioDemoLatencyPage.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
+$(OBJDIR)/ThreadingDemo.o: ../../src/demos/ThreadingDemo.cpp
+ -@$(CMD_MKOBJDIR)
+ @echo $(notdir $<)
+ @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
+
$(OBJDIR)/WidgetsDemo.o: ../../src/demos/WidgetsDemo.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
diff --git a/extras/juce demo/src/demos/FontsAndTextDemo.cpp b/extras/juce demo/src/demos/FontsAndTextDemo.cpp
index 576d5931d5..7c47194408 100644
--- a/extras/juce demo/src/demos/FontsAndTextDemo.cpp
+++ b/extras/juce demo/src/demos/FontsAndTextDemo.cpp
@@ -90,17 +90,9 @@ public:
horizontalScaleSlider->addListener (this);
(new Label (String::empty, horizontalScaleSlider->getName()))->attachToComponent (horizontalScaleSlider, true);
- for (int i = 0; i < fonts.size(); ++i)
- {
- if (fonts[i]->getTypefaceName().startsWithIgnoreCase (T("Arial")))
- {
- listBox->selectRow (i);
- break;
- }
- }
-
listBox->setColour (ListBox::outlineColourId, Colours::black.withAlpha (0.5f));
listBox->setOutlineThickness (1);
+ listBox->selectRow (Random::getSystemRandom().nextInt (fonts.size()));
// set up the layout and resizer bars..
diff --git a/extras/juce demo/src/demos/RenderingTestComponent.cpp b/extras/juce demo/src/demos/RenderingTestComponent.cpp
index 50e60a281e..ccf3d0f79f 100644
--- a/extras/juce demo/src/demos/RenderingTestComponent.cpp
+++ b/extras/juce demo/src/demos/RenderingTestComponent.cpp
@@ -196,7 +196,7 @@ private:
.scaled (bouncingNumber[2] + 4.0f, bouncingNumber[2] + 4.0f)
.translated (bouncingPointX[2], bouncingPointY[2]));
g.reduceClipRegion (*argbImage,
- Rectangle (0, 0, argbImage->getWidth(), argbImage->getHeight()),
+ Rectangle (0, 0, argbImage->getWidth(), argbImage->getHeight()),
transform);
}
@@ -352,13 +352,14 @@ private:
// to make our icon the right size, we'll put it inside a DrawableComposite, and apply
// a transform to get it to the size we want.
- float x, y, w, h;
- loadedSVG->getBounds (x, y, w, h);
- const float scaleFactor = 300.0f / jmax (w, h);
+ Rectangle bounds = loadedSVG->getBounds();
+ const float scaleFactor = 300.0f / jmax (bounds.getWidth(), bounds.getHeight());
svgDrawable = new DrawableComposite();
- svgDrawable->insertDrawable (loadedSVG, AffineTransform::translation (-(x + w * 0.5f), -(y + h * 0.5f))
- .scaled (scaleFactor, scaleFactor));
+ svgDrawable->insertDrawable (loadedSVG,
+ AffineTransform::translation (-bounds.getCentreX(),
+ -bounds.getCentreY())
+ .scaled (scaleFactor, scaleFactor));
}
}
}
diff --git a/extras/juce demo/src/demos/WidgetsDemo.cpp b/extras/juce demo/src/demos/WidgetsDemo.cpp
index 5cff8057e8..b49d1e527c 100644
--- a/extras/juce demo/src/demos/WidgetsDemo.cpp
+++ b/extras/juce demo/src/demos/WidgetsDemo.cpp
@@ -605,10 +605,10 @@ public:
if (getChildComponent (i) != animateButton)
{
animator.animateComponent (getChildComponent (i),
- Rectangle (Random::getSystemRandom().nextInt (getWidth() / 2),
- Random::getSystemRandom().nextInt (getHeight() / 2),
- 60 + Random::getSystemRandom().nextInt (getWidth() / 3),
- 16 + Random::getSystemRandom().nextInt (getHeight() / 6)),
+ Rectangle (Random::getSystemRandom().nextInt (getWidth() / 2),
+ Random::getSystemRandom().nextInt (getHeight() / 2),
+ 60 + Random::getSystemRandom().nextInt (getWidth() / 3),
+ 16 + Random::getSystemRandom().nextInt (getHeight() / 6)),
500 + Random::getSystemRandom().nextInt (2000),
Random::getSystemRandom().nextDouble(),
Random::getSystemRandom().nextDouble());
@@ -920,7 +920,7 @@ private:
{
}
- void contentAreaChanged (const Rectangle& contentArea)
+ void contentAreaChanged (const Rectangle& contentArea)
{
comboBox->setSize (contentArea.getWidth() - 2,
jmin (contentArea.getHeight() - 2, 22));
diff --git a/extras/the jucer/src/model/components/jucer_ComponentTypeHandler.cpp b/extras/the jucer/src/model/components/jucer_ComponentTypeHandler.cpp
index 71029d7b02..75800e21d8 100644
--- a/extras/the jucer/src/model/components/jucer_ComponentTypeHandler.cpp
+++ b/extras/the jucer/src/model/components/jucer_ComponentTypeHandler.cpp
@@ -258,7 +258,7 @@ void ComponentTypeHandler::setComponentPosition (Component* comp,
comp->getProperties().set ("relativeToW", String::toHexString (newPos.relativeToW));
comp->getProperties().set ("relativeToH", String::toHexString (newPos.relativeToH));
- comp->setBounds (newPos.getRectangle (Rectangle (0, 0, comp->getParentWidth(), comp->getParentHeight()),
+ comp->setBounds (newPos.getRectangle (Rectangle (0, 0, comp->getParentWidth(), comp->getParentHeight()),
layout));
}
diff --git a/extras/the jucer/src/model/documents/jucer_ButtonDocument.cpp b/extras/the jucer/src/model/documents/jucer_ButtonDocument.cpp
index 69e55a09d5..6edc57cab8 100644
--- a/extras/the jucer/src/model/documents/jucer_ButtonDocument.cpp
+++ b/extras/the jucer/src/model/documents/jucer_ButtonDocument.cpp
@@ -310,7 +310,7 @@ public:
if (document->paintStatesEnabled [background])
{
document->paintRoutines [background]->fillWithBackground (g, alwaysFillBackground);
- document->paintRoutines [background]->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
+ document->paintRoutines [background]->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
}
const int stateIndex
@@ -323,7 +323,7 @@ public:
: normalOff));
document->paintRoutines [stateIndex]->fillWithBackground (g, ! document->paintStatesEnabled [background]);
- document->paintRoutines [stateIndex]->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
+ document->paintRoutines [stateIndex]->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
}
private:
diff --git a/extras/the jucer/src/model/documents/jucer_ComponentDocument.cpp b/extras/the jucer/src/model/documents/jucer_ComponentDocument.cpp
index 7d03a47d58..b66de73a50 100644
--- a/extras/the jucer/src/model/documents/jucer_ComponentDocument.cpp
+++ b/extras/the jucer/src/model/documents/jucer_ComponentDocument.cpp
@@ -118,7 +118,7 @@ public:
void paint (Graphics& g)
{
document->getPaintRoutine (0)->fillWithBackground (g, alwaysFillBackground);
- document->getPaintRoutine (0)->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
+ document->getPaintRoutine (0)->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
}
void resized()
@@ -138,9 +138,9 @@ public:
if (type != 0)
{
- const Rectangle newBounds (type->getComponentPosition (comp)
- .getRectangle (Rectangle (0, 0, getWidth(), getHeight()),
- document->getComponentLayout()));
+ const Rectangle newBounds (type->getComponentPosition (comp)
+ .getRectangle (Rectangle (0, 0, getWidth(), getHeight()),
+ document->getComponentLayout()));
anyCompsMoved = anyCompsMoved || (comp->getBounds() != newBounds);
comp->setBounds (newBounds);
diff --git a/extras/the jucer/src/model/jucer_ComponentLayout.cpp b/extras/the jucer/src/model/jucer_ComponentLayout.cpp
index 4b7b61ad02..16bd411124 100644
--- a/extras/the jucer/src/model/jucer_ComponentLayout.cpp
+++ b/extras/the jucer/src/model/jucer_ComponentLayout.cpp
@@ -359,7 +359,7 @@ void ComponentLayout::bringLostItemsBackOnScreen (int width, int height)
{
Component* const c = components[i];
- if (! c->getBounds().intersects (Rectangle (0, 0, width, height)))
+ if (! c->getBounds().intersects (Rectangle (0, 0, width, height)))
{
c->setTopLeftPosition (width / 2, height / 2);
updateStoredComponentPosition (c, false);
@@ -492,7 +492,7 @@ void ComponentLayout::setComponentRelativeTarget (Component* comp, int whichDime
{
const int64 compId = ComponentTypeHandler::getComponentId (compToBeRelativeTo);
- Rectangle oldBounds (comp->getBounds());
+ Rectangle oldBounds (comp->getBounds());
RelativePositionedRectangle pos;
if (pe != 0)
diff --git a/extras/the jucer/src/model/jucer_PaintRoutine.cpp b/extras/the jucer/src/model/jucer_PaintRoutine.cpp
index b038bb0a32..dd449590a8 100644
--- a/extras/the jucer/src/model/jucer_PaintRoutine.cpp
+++ b/extras/the jucer/src/model/jucer_PaintRoutine.cpp
@@ -436,13 +436,13 @@ void PaintRoutine::ungroupSelected()
}
}
-void PaintRoutine::bringLostItemsBackOnScreen (const Rectangle& parentArea)
+void PaintRoutine::bringLostItemsBackOnScreen (const Rectangle& parentArea)
{
for (int i = 0; i < elements.size(); ++i)
{
PaintElement* const c = elements[i];
- Rectangle r (c->getCurrentBounds (parentArea));
+ Rectangle r (c->getCurrentBounds (parentArea));
if (! r.intersects (parentArea))
{
@@ -452,13 +452,13 @@ void PaintRoutine::bringLostItemsBackOnScreen (const Rectangle& parentArea)
}
}
-void PaintRoutine::startDragging (const Rectangle& parentArea)
+void PaintRoutine::startDragging (const Rectangle& parentArea)
{
for (int i = 0; i < elements.size(); ++i)
{
PaintElement* const c = elements[i];
- Rectangle r (c->getCurrentBounds (parentArea));
+ Rectangle r (c->getCurrentBounds (parentArea));
c->getProperties().set ("xDragStart", r.getX());
c->getProperties().set ("yDragStart", r.getY());
@@ -467,7 +467,7 @@ void PaintRoutine::startDragging (const Rectangle& parentArea)
getDocument()->getUndoManager().beginNewTransaction();
}
-void PaintRoutine::dragSelectedComps (int dx, int dy, const Rectangle& parentArea)
+void PaintRoutine::dragSelectedComps (int dx, int dy, const Rectangle& parentArea)
{
getDocument()->getUndoManager().undoCurrentTransactionOnly();
@@ -484,7 +484,7 @@ void PaintRoutine::dragSelectedComps (int dx, int dy, const Rectangle& parentAre
const int startX = c->getProperties() ["xDragStart"];
const int startY = c->getProperties() ["yDragStart"];
- Rectangle r (c->getCurrentBounds (parentArea));
+ Rectangle r (c->getCurrentBounds (parentArea));
if (document != 0 && selectedElements.getNumSelected() == 1)
{
@@ -524,7 +524,7 @@ void PaintRoutine::fillWithBackground (Graphics& g, const bool drawOpaqueBackgro
}
}
-void PaintRoutine::drawElements (Graphics& g, const Rectangle& relativeTo)
+void PaintRoutine::drawElements (Graphics& g, const Rectangle& relativeTo)
{
Component temp;
temp.setBounds (relativeTo);
@@ -540,8 +540,7 @@ void PaintRoutine::dropImageAt (const File& f, int x, int y)
if (d != 0)
{
- float ix, iy, iw, ih;
- d->getBounds (ix, iy, iw, ih);
+ Rectangle bounds (d->getBounds());
delete d;
PaintElement* newElement
@@ -569,8 +568,8 @@ void PaintRoutine::dropImageAt (const File& f, int x, int y)
pei->setResource (resourceName, true);
- const int imageW = (int) (ix + iw + 1.0f);
- const int imageH = (int) (iy + ih + 1.0f);
+ const int imageW = (int) (bounds.getRight() + 1.0f);
+ const int imageH = (int) (bounds.getBottom() + 1.0f);
RelativePositionedRectangle pr;
pr.rect.setX (x - imageW / 2);
diff --git a/extras/the jucer/src/model/jucer_PaintRoutine.h b/extras/the jucer/src/model/jucer_PaintRoutine.h
index 3928964333..172aedd42c 100644
--- a/extras/the jucer/src/model/jucer_PaintRoutine.h
+++ b/extras/the jucer/src/model/jucer_PaintRoutine.h
@@ -66,7 +66,7 @@ public:
void setBackgroundColour (const Colour& newColour) throw();
void fillWithBackground (Graphics& g, const bool drawOpaqueBackground);
- void drawElements (Graphics& g, const Rectangle& relativeTo);
+ void drawElements (Graphics& g, const Rectangle& relativeTo);
void dropImageAt (const File& f, int x, int y);
@@ -86,11 +86,11 @@ public:
void groupSelected();
void ungroupSelected();
- void startDragging (const Rectangle& parentArea);
- void dragSelectedComps (int dxFromDragStart, int dyFromDragStart, const Rectangle& parentArea);
+ void startDragging (const Rectangle& parentArea);
+ void dragSelectedComps (int dxFromDragStart, int dyFromDragStart, const Rectangle& parentArea);
void endDragging();
- void bringLostItemsBackOnScreen (const Rectangle& parentArea);
+ void bringLostItemsBackOnScreen (const Rectangle& parentArea);
//==============================================================================
void setDocument (JucerDocument* const document_) { document = document_; }
diff --git a/extras/the jucer/src/model/paintelements/jucer_ColouredElement.cpp b/extras/the jucer/src/model/paintelements/jucer_ColouredElement.cpp
index 97b89e8488..70bd41d1d0 100644
--- a/extras/the jucer/src/model/paintelements/jucer_ColouredElement.cpp
+++ b/extras/the jucer/src/model/paintelements/jucer_ColouredElement.cpp
@@ -959,7 +959,7 @@ void ColouredElement::createSiblingComponents()
}
}
-const Rectangle ColouredElement::getCurrentBounds (const Rectangle& parentArea) const
+const Rectangle ColouredElement::getCurrentBounds (const Rectangle& parentArea) const
{
int border = 0;
@@ -970,11 +970,11 @@ const Rectangle ColouredElement::getCurrentBounds (const Rectangle& parentArea)
.expanded (border, border);
}
-void ColouredElement::setCurrentBounds (const Rectangle& newBounds,
- const Rectangle& parentArea,
+void ColouredElement::setCurrentBounds (const Rectangle& newBounds,
+ const Rectangle& parentArea,
const bool undoable)
{
- Rectangle r (newBounds);
+ Rectangle r (newBounds);
if (isStrokePresent)
{
@@ -988,7 +988,7 @@ void ColouredElement::setCurrentBounds (const Rectangle& newBounds,
pr.updateFrom (r.getX() - parentArea.getX(),
r.getY() - parentArea.getY(),
r.getWidth(), r.getHeight(),
- Rectangle (0, 0, parentArea.getWidth(), parentArea.getHeight()),
+ Rectangle (0, 0, parentArea.getWidth(), parentArea.getHeight()),
getDocument()->getComponentLayout());
setPosition (pr, undoable);
diff --git a/extras/the jucer/src/model/paintelements/jucer_ColouredElement.h b/extras/the jucer/src/model/paintelements/jucer_ColouredElement.h
index 806d307d66..66f097d6ec 100644
--- a/extras/the jucer/src/model/paintelements/jucer_ColouredElement.h
+++ b/extras/the jucer/src/model/paintelements/jucer_ColouredElement.h
@@ -63,8 +63,8 @@ public:
void setStrokeFill (const JucerFillType& newType, const bool undoable);
//==============================================================================
- const Rectangle getCurrentBounds (const Rectangle& parentArea) const;
- void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, const bool undoable);
+ const Rectangle getCurrentBounds (const Rectangle& parentArea) const;
+ void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, const bool undoable);
void createSiblingComponents();
diff --git a/extras/the jucer/src/model/paintelements/jucer_FillType.cpp b/extras/the jucer/src/model/paintelements/jucer_FillType.cpp
index f1db2a4972..674d57bf1b 100644
--- a/extras/the jucer/src/model/paintelements/jucer_FillType.cpp
+++ b/extras/the jucer/src/model/paintelements/jucer_FillType.cpp
@@ -110,7 +110,7 @@ void JucerFillType::reset()
}
//==============================================================================
-void JucerFillType::setFillType (Graphics& g, JucerDocument* const document, const Rectangle& parentArea)
+void JucerFillType::setFillType (Graphics& g, JucerDocument* const document, const Rectangle& parentArea)
{
if (mode == solidColour)
{
@@ -123,7 +123,7 @@ void JucerFillType::setFillType (Graphics& g, JucerDocument* const document, con
{
loadImage (document);
- Rectangle r (imageAnchor.getRectangle (parentArea, document->getComponentLayout()));
+ Rectangle r (imageAnchor.getRectangle (parentArea, document->getComponentLayout()));
g.setTiledImageFill (*image, r.getX(), r.getY(), (float) imageOpacity);
}
@@ -132,8 +132,8 @@ void JucerFillType::setFillType (Graphics& g, JucerDocument* const document, con
ImageCache::release (image);
image = 0;
- Rectangle r1 (gradPos1.getRectangle (parentArea, document->getComponentLayout()));
- Rectangle r2 (gradPos2.getRectangle (parentArea, document->getComponentLayout()));
+ Rectangle r1 (gradPos1.getRectangle (parentArea, document->getComponentLayout()));
+ Rectangle r2 (gradPos2.getRectangle (parentArea, document->getComponentLayout()));
g.setGradientFill (ColourGradient (gradCol1, (float) r1.getX(), (float) r1.getY(),
gradCol2, (float) r2.getX(), (float) r2.getY(),
diff --git a/extras/the jucer/src/model/paintelements/jucer_FillType.h b/extras/the jucer/src/model/paintelements/jucer_FillType.h
index b19f37d524..8fb4f2e91e 100644
--- a/extras/the jucer/src/model/paintelements/jucer_FillType.h
+++ b/extras/the jucer/src/model/paintelements/jucer_FillType.h
@@ -46,7 +46,7 @@ public:
bool operator!= (const JucerFillType& other) const throw();
//==============================================================================
- void setFillType (Graphics& g, JucerDocument* const document, const Rectangle& parentArea);
+ void setFillType (Graphics& g, JucerDocument* const document, const Rectangle& parentArea);
void fillInGeneratedCode (GeneratedCode& code, String& paintMethodCode) const;
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElement.cpp b/extras/the jucer/src/model/paintelements/jucer_PaintElement.cpp
index 6fec36d968..60f077c339 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElement.cpp
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElement.cpp
@@ -134,13 +134,13 @@ void PaintElement::setPosition (const RelativePositionedRectangle& newPosition,
}
//==============================================================================
-const Rectangle PaintElement::getCurrentBounds (const Rectangle& parentArea) const
+const Rectangle PaintElement::getCurrentBounds (const Rectangle& parentArea) const
{
return position.getRectangle (parentArea, getDocument()->getComponentLayout());
}
-void PaintElement::setCurrentBounds (const Rectangle& newBounds,
- const Rectangle& parentArea,
+void PaintElement::setCurrentBounds (const Rectangle& newBounds,
+ const Rectangle& parentArea,
const bool undoable)
{
RelativePositionedRectangle pr (position);
@@ -148,7 +148,7 @@ void PaintElement::setCurrentBounds (const Rectangle& newBounds,
newBounds.getY() - parentArea.getY(),
jmax (1, newBounds.getWidth()),
jmax (1, newBounds.getHeight()),
- Rectangle (0, 0, parentArea.getWidth(), parentArea.getHeight()),
+ Rectangle (0, 0, parentArea.getWidth(), parentArea.getHeight()),
getDocument()->getComponentLayout());
setPosition (pr, undoable);
@@ -156,7 +156,7 @@ void PaintElement::setCurrentBounds (const Rectangle& newBounds,
updateBounds (parentArea);
}
-void PaintElement::updateBounds (const Rectangle& parentArea)
+void PaintElement::updateBounds (const Rectangle& parentArea)
{
if (! parentArea.isEmpty())
{
@@ -236,13 +236,13 @@ void PaintElement::parentHierarchyChanged()
}
//==============================================================================
-void PaintElement::drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo)
+void PaintElement::drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo)
{
}
void PaintElement::paint (Graphics& g)
{
- Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
g.saveState();
g.setOrigin (area.getX() - getX(), area.getY() - getY());
@@ -298,7 +298,7 @@ void PaintElement::mouseDrag (const MouseEvent& e)
if (! e.mods.isPopupMenu())
{
jassert (dynamic_cast (getParentComponent()) != 0);
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
if (selected && ! dragging)
{
@@ -337,8 +337,8 @@ void PaintElement::resizeEnd()
}
void PaintElement::checkBounds (int& x, int& y, int& w, int& h,
- const Rectangle& previousBounds,
- const Rectangle& limits,
+ const Rectangle& previousBounds,
+ const Rectangle& limits,
const bool isStretchingTop,
const bool isStretchingLeft,
const bool isStretchingBottom,
@@ -356,7 +356,7 @@ void PaintElement::checkBounds (int& x, int& y, int& w, int& h,
if (document != 0 && document->isSnapActive (true))
{
jassert (getParentComponent() != 0);
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
x += borderThickness - area.getX();
y += borderThickness - area.getY();
@@ -387,23 +387,23 @@ void PaintElement::checkBounds (int& x, int& y, int& w, int& h,
void PaintElement::applyBoundsToComponent (Component* component, int x, int y, int w, int h)
{
- if (getBounds() != Rectangle (x, y, w, h))
+ if (getBounds() != Rectangle (x, y, w, h))
{
getDocument()->getUndoManager().undoCurrentTransactionOnly();
jassert (dynamic_cast (getParentComponent()) != 0);
- setCurrentBounds (Rectangle (x, y, w, h)
+ setCurrentBounds (Rectangle (x, y, w, h)
.expanded (-borderThickness, -borderThickness),
((PaintRoutineEditor*) getParentComponent())->getComponentArea(),
true);
}
}
-const Rectangle PaintElement::getCurrentAbsoluteBounds() const
+const Rectangle PaintElement::getCurrentAbsoluteBounds() const
{
jassert (dynamic_cast (getParentComponent()) != 0);
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
return position.getRectangle (area, getDocument()->getComponentLayout());
}
@@ -411,7 +411,7 @@ const Rectangle PaintElement::getCurrentAbsoluteBounds() const
void PaintElement::getCurrentAbsoluteBoundsDouble (double& x, double& y, double& w, double& h) const
{
jassert (dynamic_cast (getParentComponent()) != 0);
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
position.getRectangleDouble (x, y, w, h, area, getDocument()->getComponentLayout());
}
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElement.h b/extras/the jucer/src/model/paintelements/jucer_PaintElement.h
index bf57b1e507..aa0cd4f45a 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElement.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElement.h
@@ -50,13 +50,13 @@ public:
//==============================================================================
virtual void setInitialBounds (int parentWidth, int parentHeight);
- virtual const Rectangle getCurrentBounds (const Rectangle& activeArea) const;
- virtual void setCurrentBounds (const Rectangle& newBounds, const Rectangle& activeArea, const bool undoable);
+ virtual const Rectangle getCurrentBounds (const Rectangle& activeArea) const;
+ virtual void setCurrentBounds (const Rectangle& newBounds, const Rectangle& activeArea, const bool undoable);
const RelativePositionedRectangle& getPosition() const;
void setPosition (const RelativePositionedRectangle& newPosition, const bool undoable);
- void updateBounds (const Rectangle& activeArea);
+ void updateBounds (const Rectangle& activeArea);
const String& getTypeName() const throw() { return typeName; }
PaintRoutine* getOwner() const throw() { return owner; }
@@ -64,9 +64,9 @@ public:
//==============================================================================
virtual void draw (Graphics& g,
const ComponentLayout* layout,
- const Rectangle& parentArea) = 0;
+ const Rectangle& parentArea) = 0;
- virtual void drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo);
+ virtual void drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo);
virtual void getEditableProperties (Array & properties);
@@ -103,8 +103,8 @@ protected:
void resizeStart();
void resizeEnd();
void checkBounds (int& x, int& y, int& w, int& h,
- const Rectangle& previousBounds,
- const Rectangle& limits,
+ const Rectangle& previousBounds,
+ const Rectangle& limits,
const bool isStretchingTop,
const bool isStretchingLeft,
const bool isStretchingBottom,
@@ -112,7 +112,7 @@ protected:
void applyBoundsToComponent (Component* component, int x, int y, int w, int h);
- const Rectangle getCurrentAbsoluteBounds() const;
+ const Rectangle getCurrentAbsoluteBounds() const;
void getCurrentAbsoluteBoundsDouble (double& x, double& y, double& w, double& h) const;
virtual void selectionChanged (const bool isSelected);
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementEllipse.h b/extras/the jucer/src/model/paintelements/jucer_PaintElementEllipse.h
index 3b283d9cb0..a4cf183b6c 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementEllipse.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementEllipse.h
@@ -43,11 +43,11 @@ public:
~PaintElementEllipse() {}
- void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
+ void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
{
fillType.setFillType (g, getDocument(), parentArea);
- Rectangle r (position.getRectangle (parentArea, layout));
+ Rectangle r (position.getRectangle (parentArea, layout));
g.fillEllipse ((float) r.getX(), (float) r.getY(), (float) r.getWidth(), (float) r.getHeight());
if (isStrokePresent)
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementGroup.h b/extras/the jucer/src/model/paintelements/jucer_PaintElementGroup.h
index 77b325709c..ceafa9a5ab 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementGroup.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementGroup.h
@@ -124,9 +124,9 @@ public:
{
}
- const Rectangle getCurrentBounds (const Rectangle& parentArea) const
+ const Rectangle getCurrentBounds (const Rectangle& parentArea) const
{
- Rectangle r;
+ Rectangle r;
if (subElements.size() > 0)
{
@@ -139,13 +139,13 @@ public:
return r;
}
- void setCurrentBounds (const Rectangle& b, const Rectangle& parentArea, const bool undoable)
+ void setCurrentBounds (const Rectangle& b, const Rectangle& parentArea, const bool undoable)
{
- Rectangle newBounds (b);
+ Rectangle newBounds (b);
newBounds.setSize (jmax (1, newBounds.getWidth()),
jmax (1, newBounds.getHeight()));
- const Rectangle current (getCurrentBounds (parentArea));
+ const Rectangle current (getCurrentBounds (parentArea));
if (newBounds != current)
{
@@ -161,7 +161,7 @@ public:
{
PaintElement* const e = subElements.getUnchecked(i);
- Rectangle pos (e->getCurrentBounds (parentArea));
+ Rectangle pos (e->getCurrentBounds (parentArea));
const int newX = roundToInt ((pos.getX() - scaleStartX) * scaleX + scaleStartX + dx);
const int newY = roundToInt ((pos.getY() - scaleStartY) * scaleY + scaleStartY + dy);
@@ -176,7 +176,7 @@ public:
}
//==============================================================================
- void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
+ void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
{
for (int i = 0; i < subElements.size(); ++i)
subElements.getUnchecked(i)->draw (g, layout, parentArea);
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementImage.h b/extras/the jucer/src/model/paintelements/jucer_PaintElementImage.h
index 5a1d363a75..ed015a507e 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementImage.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementImage.h
@@ -68,9 +68,9 @@ public:
return 0;
}
- void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
+ void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
{
- const Rectangle r (position.getRectangle (parentArea, layout));
+ const Rectangle r (position.getRectangle (parentArea, layout));
const Drawable* const image = getDrawable();
@@ -306,14 +306,12 @@ public:
if (image != 0 && getParentComponent() != 0)
{
- const Rectangle parentArea (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle parentArea (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
- Rectangle r (getCurrentBounds (parentArea));
+ Rectangle r (getCurrentBounds (parentArea));
+ Rectangle bounds (image->getBounds());
- float x, y, w, h;
- image->getBounds (x, y, w, h);
-
- r.setSize ((int) (w + 1.0f), (int) (h + 1.0f));
+ r.setSize ((int) (bounds.getWidth() + 1.0f), (int) (bounds.getHeight() + 1.0f));
setCurrentBounds (r, parentArea, true);
}
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.cpp b/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.cpp
index 82aed55a38..05c44f1936 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.cpp
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.cpp
@@ -166,30 +166,29 @@ int PaintElementPath::getBorderSize() const
: 0;
}
-const Rectangle PaintElementPath::getCurrentBounds (const Rectangle& parentArea) const
+const Rectangle PaintElementPath::getCurrentBounds (const Rectangle& parentArea) const
{
updateStoredPath (getDocument()->getComponentLayout(), parentArea);
- float x, y, w, h;
- path.getBounds (x, y, w, h);
+ Rectangle bounds (path.getBounds());
const int borderSize = getBorderSize();
- return Rectangle ((int) x - borderSize,
- (int) y - borderSize,
- (int) w + borderSize * 2,
- (int) h + borderSize * 2);
+ return Rectangle ((int) bounds.getX() - borderSize,
+ (int) bounds.getY() - borderSize,
+ (int) bounds.getWidth() + borderSize * 2,
+ (int) bounds.getHeight() + borderSize * 2);
}
-void PaintElementPath::setCurrentBounds (const Rectangle& b,
- const Rectangle& parentArea,
+void PaintElementPath::setCurrentBounds (const Rectangle& b,
+ const Rectangle& parentArea,
const bool undoable)
{
- Rectangle newBounds (b);
+ Rectangle newBounds (b);
newBounds.setSize (jmax (1, newBounds.getWidth()),
jmax (1, newBounds.getHeight()));
- const Rectangle current (getCurrentBounds (parentArea));
+ const Rectangle current (getCurrentBounds (parentArea));
if (newBounds != current)
{
@@ -222,7 +221,7 @@ void PaintElementPath::setCurrentBounds (const Rectangle& b,
void PaintElementPath::rescalePoint (RelativePositionedRectangle& pos, int dx, int dy,
double scaleX, double scaleY,
double scaleStartX, double scaleStartY,
- const Rectangle& parentArea) const
+ const Rectangle& parentArea) const
{
double x, y, w, h;
pos.getRectangleDouble (x, y, w, h, parentArea, getDocument()->getComponentLayout());
@@ -240,7 +239,7 @@ static void drawArrow (Graphics& g, float x1, float y1, float x2, float y2)
g.drawLine (x1 + (x2 - x1) * 0.49f, y1 + (y2 - y1) * 0.49f, x2, y2);
}
-void PaintElementPath::draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
+void PaintElementPath::draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
{
updateStoredPath (layout, parentArea);
path.setUsingNonZeroWinding (nonZeroWinding);
@@ -255,7 +254,7 @@ void PaintElementPath::draw (Graphics& g, const ComponentLayout* layout, const R
}
}
-void PaintElementPath::drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo)
+void PaintElementPath::drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo)
{
ComponentLayout* layout = getDocument()->getComponentLayout();
@@ -351,7 +350,7 @@ void PaintElementPath::mouseUp (const MouseEvent& e)
void PaintElementPath::changed()
{
ColouredElement::changed();
- lastPathBounds = Rectangle();
+ lastPathBounds = Rectangle();
}
void PaintElementPath::pointListChanged()
@@ -687,7 +686,7 @@ void PaintElementPath::setToPath (const Path& p)
}
}
-void PaintElementPath::updateStoredPath (const ComponentLayout* layout, const Rectangle& relativeTo) const
+void PaintElementPath::updateStoredPath (const ComponentLayout* layout, const Rectangle& relativeTo) const
{
if (lastPathBounds != relativeTo && ! relativeTo.isEmpty())
{
@@ -889,7 +888,7 @@ PathPoint* PaintElementPath::addPoint (int pointIndexToAddItAfter, const bool un
double x1 = 20.0, y1 = 20.0, x2, y2;
ComponentLayout* layout = getDocument()->getComponentLayout();
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
if (points [pointIndexToAddItAfter] != 0)
positionToXY (points [pointIndexToAddItAfter]->pos [points [pointIndexToAddItAfter]->getNumPoints() - 1], x1, y1,
@@ -1009,7 +1008,7 @@ void PaintElementPath::deletePoint (int pointIndex, const bool undoable)
}
//==============================================================================
-bool PaintElementPath::getPoint (int index, int pointNumber, double& x, double& y, const Rectangle& parentArea) const
+bool PaintElementPath::getPoint (int index, int pointNumber, double& x, double& y, const Rectangle& parentArea) const
{
const PathPoint* const p = points [index];
@@ -1028,7 +1027,7 @@ int PaintElementPath::findSegmentAtXY (int x, int y) const
double x1, y1, x2, y2, x3, y3, lastX = 0.0, lastY = 0.0, subPathStartX = 0.0, subPathStartY = 0.0;
ComponentLayout* const layout = getDocument()->getComponentLayout();
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
int subpathStartIndex = 0;
@@ -1113,7 +1112,7 @@ int PaintElementPath::findSegmentAtXY (int x, int y) const
//==============================================================================
void PaintElementPath::movePoint (int index, int pointNumber,
double newX, double newY,
- const Rectangle& parentArea,
+ const Rectangle& parentArea,
const bool undoable)
{
PathPoint* const p = points [index];
@@ -1242,7 +1241,7 @@ public:
break;
}
- const Rectangle area (((PaintRoutineEditor*) owner->getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) owner->getParentComponent())->getComponentArea());
owner->getPoint (index)->changePointType (type, area, true);
}
@@ -1436,7 +1435,7 @@ int PathPoint::getNumPoints() const
}
const PathPoint PathPoint::withChangedPointType (const Path::Iterator::PathElementType newType,
- const Rectangle& parentArea) const
+ const Rectangle& parentArea) const
{
PathPoint p (*this);
@@ -1486,7 +1485,7 @@ const PathPoint PathPoint::withChangedPointType (const Path::Iterator::PathEleme
}
void PathPoint::changePointType (const Path::Iterator::PathElementType newType,
- const Rectangle& parentArea, const bool undoable)
+ const Rectangle& parentArea, const bool undoable)
{
if (newType != type)
{
@@ -1584,7 +1583,7 @@ PathPointComponent::~PathPointComponent()
void PathPointComponent::updatePosition()
{
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
jassert (getParentComponent() != 0);
double x, y;
@@ -1647,7 +1646,7 @@ void PathPointComponent::mouseDrag (const MouseEvent& e)
if (dragging)
{
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
int x = dragX + e.getDistanceFromDragStartX() - area.getX();
int y = dragY + e.getDistanceFromDragStartY() - area.getY();
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.h b/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.h
index 07b5b0858f..d730bfc644 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementPath.h
@@ -55,7 +55,7 @@ public:
int getNumPoints() const;
void changePointType (const Path::Iterator::PathElementType newType,
- const Rectangle& parentArea,
+ const Rectangle& parentArea,
const bool undoable);
void deleteFromPath();
@@ -66,7 +66,7 @@ public:
private:
const PathPoint withChangedPointType (const Path::Iterator::PathElementType newType,
- const Rectangle& parentArea) const;
+ const Rectangle& parentArea) const;
};
@@ -82,12 +82,12 @@ public:
//==============================================================================
void setInitialBounds (int parentWidth, int parentHeight);
- const Rectangle getCurrentBounds (const Rectangle& parentArea) const;
- void setCurrentBounds (const Rectangle& b, const Rectangle& parentArea, const bool undoable);
+ const Rectangle getCurrentBounds (const Rectangle& parentArea) const;
+ void setCurrentBounds (const Rectangle& b, const Rectangle& parentArea, const bool undoable);
//==============================================================================
- bool getPoint (int index, int pointNumber, double& x, double& y, const Rectangle& parentArea) const;
- void movePoint (int index, int pointNumber, double newX, double newY, const Rectangle& parentArea, const bool undoable);
+ bool getPoint (int index, int pointNumber, double& x, double& y, const Rectangle& parentArea) const;
+ void movePoint (int index, int pointNumber, double newX, double newY, const Rectangle& parentArea, const bool undoable);
const RelativePositionedRectangle getPoint (int index, int pointNumber) const;
void setPoint (int index, int pointNumber, const RelativePositionedRectangle& newPoint, const bool undoable);
@@ -123,8 +123,8 @@ public:
void setToPath (const Path& p);
//==============================================================================
- void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea);
- void drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo);
+ void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea);
+ void drawExtraEditorGraphics (Graphics& g, const Rectangle& relativeTo);
void resized();
void parentSizeChanged();
@@ -145,19 +145,19 @@ private:
OwnedArray points;
bool nonZeroWinding;
mutable Path path;
- mutable Rectangle lastPathBounds;
+ mutable Rectangle lastPathBounds;
int mouseDownOnSegment;
bool mouseDownSelectSegmentStatus;
const String pathToString() const;
void restorePathFromString (const String& s);
- void updateStoredPath (const ComponentLayout* layout, const Rectangle& parentArea) const;
+ void updateStoredPath (const ComponentLayout* layout, const Rectangle& parentArea) const;
int getBorderSize() const;
void rescalePoint (RelativePositionedRectangle& pos, int dx, int dy,
double scaleX, double scaleY,
double scaleStartX, double scaleStartY,
- const Rectangle& parentArea) const;
+ const Rectangle& parentArea) const;
};
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementRectangle.h b/extras/the jucer/src/model/paintelements/jucer_PaintElementRectangle.h
index 64994fa640..5359ae9e7c 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementRectangle.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementRectangle.h
@@ -45,24 +45,24 @@ public:
{
}
- const Rectangle getCurrentBounds (const Rectangle& parentArea) const
+ const Rectangle getCurrentBounds (const Rectangle& parentArea) const
{
return PaintElement::getCurrentBounds (parentArea); // bypass the ColouredElement implementation
}
- void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, const bool undoable)
+ void setCurrentBounds (const Rectangle& newBounds, const Rectangle& parentArea, const bool undoable)
{
PaintElement::setCurrentBounds (newBounds, parentArea, undoable); // bypass the ColouredElement implementation
}
- void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
+ void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
{
Component parentComponent;
parentComponent.setBounds (parentArea);
fillType.setFillType (g, getDocument(), parentArea);
- const Rectangle r (position.getRectangle (parentArea, layout));
+ const Rectangle r (position.getRectangle (parentArea, layout));
g.fillRect (r);
if (isStrokePresent)
@@ -137,7 +137,7 @@ public:
void convertToPath()
{
- const Rectangle r (getCurrentAbsoluteBounds());
+ const Rectangle r (getCurrentAbsoluteBounds());
Path path;
path.addRectangle ((float) r.getX(), (float) r.getY(), (float) r.getWidth(), (float) r.getHeight());
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementRoundedRectangle.h b/extras/the jucer/src/model/paintelements/jucer_PaintElementRoundedRectangle.h
index b81c880f58..d2db43d7e3 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementRoundedRectangle.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementRoundedRectangle.h
@@ -45,7 +45,7 @@ public:
~PaintElementRoundedRectangle() {}
//==============================================================================
- void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
+ void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
{
double x, y, w, h;
position.getRectangleDouble (x, y, w, h, parentArea, layout);
diff --git a/extras/the jucer/src/model/paintelements/jucer_PaintElementText.h b/extras/the jucer/src/model/paintelements/jucer_PaintElementText.h
index 2dab8b4e84..83151a9dbb 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PaintElementText.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PaintElementText.h
@@ -55,14 +55,14 @@ public:
}
//==============================================================================
- void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
+ void draw (Graphics& g, const ComponentLayout* layout, const Rectangle& parentArea)
{
fillType.setFillType (g, getDocument(), parentArea);
font = FontPropertyComponent::applyNameToFont (typefaceName, font);
g.setFont (font);
- const Rectangle r (position.getRectangle (parentArea, layout));
+ const Rectangle r (position.getRectangle (parentArea, layout));
g.drawText (replaceStringTranslations (text, owner->getDocument()),
r.getX(), r.getY(), r.getWidth(), r.getHeight(),
justification, true);
@@ -338,7 +338,7 @@ public:
{
font = FontPropertyComponent::applyNameToFont (typefaceName, font);
- const Rectangle r (getCurrentAbsoluteBounds());
+ const Rectangle r (getCurrentAbsoluteBounds());
GlyphArrangement arr;
arr.addCurtailedLineOfText (font, text,
diff --git a/extras/the jucer/src/model/paintelements/jucer_PointComponent.h b/extras/the jucer/src/model/paintelements/jucer_PointComponent.h
index 4c0b1cba74..41817afd15 100644
--- a/extras/the jucer/src/model/paintelements/jucer_PointComponent.h
+++ b/extras/the jucer/src/model/paintelements/jucer_PointComponent.h
@@ -55,9 +55,9 @@ public:
{
if (dynamic_cast (getParentComponent()) != 0)
{
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
- const Rectangle r (getPosition().getRectangle (area, owner->getDocument()->getComponentLayout()));
+ const Rectangle r (getPosition().getRectangle (area, owner->getDocument()->getComponentLayout()));
setCentrePosition (r.getX(), r.getY());
}
@@ -76,14 +76,14 @@ public:
//==============================================================================
void mouseDown (const MouseEvent& e)
{
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
dragX = getX() + getWidth() / 2 - area.getX();
dragY = getY() + getHeight() / 2 - area.getY();
}
void mouseDrag (const MouseEvent& e)
{
- const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
+ const Rectangle area (((PaintRoutineEditor*) getParentComponent())->getComponentArea());
int x = dragX + e.getDistanceFromDragStartX();
int y = dragY + e.getDistanceFromDragStartY();
@@ -98,12 +98,12 @@ public:
const RelativePositionedRectangle original (getPosition());
RelativePositionedRectangle pr (original);
- Rectangle r (pr.getRectangle (Rectangle (0, 0, area.getWidth(), area.getHeight()),
- document->getComponentLayout()));
+ Rectangle r (pr.getRectangle (Rectangle (0, 0, area.getWidth(), area.getHeight()),
+ document->getComponentLayout()));
r.setPosition (x, y);
pr.updateFrom (r.getX(), r.getY(), r.getWidth(), r.getHeight(),
- Rectangle (0, 0, area.getWidth(), area.getHeight()),
+ Rectangle (0, 0, area.getWidth(), area.getHeight()),
document->getComponentLayout());
if (pr != original)
diff --git a/extras/the jucer/src/properties/jucer_PositionPropertyBase.h b/extras/the jucer/src/properties/jucer_PositionPropertyBase.h
index 84ce72a41d..c33c605380 100644
--- a/extras/the jucer/src/properties/jucer_PositionPropertyBase.h
+++ b/extras/the jucer/src/properties/jucer_PositionPropertyBase.h
@@ -340,7 +340,7 @@ public:
break;
}
- Rectangle parentArea;
+ Rectangle parentArea;
if (component->findParentComponentOfClass ((ComponentLayoutEditor*) 0) != 0)
{
@@ -362,13 +362,13 @@ public:
PositionedRectangle whRect (p);
xyRect.setModes (xAnchor, xMode, yAnchor, yMode, sizeW, sizeH,
- Rectangle (x, y, xw, yh));
+ Rectangle (x, y, xw, yh));
whRect.setModes (xAnchor, xMode, yAnchor, yMode, sizeW, sizeH,
- Rectangle (x, y, w, h));
+ Rectangle (x, y, w, h));
p.setModes (xAnchor, xMode, yAnchor, yMode, sizeW, sizeH,
- Rectangle (x, y, xw, yh));
+ Rectangle (x, y, xw, yh));
p.setX (xyRect.getX());
p.setY (xyRect.getY());
@@ -384,7 +384,7 @@ public:
void resized()
{
- const Rectangle r (getLookAndFeel().getPropertyComponentContentPosition (*this));
+ const Rectangle r (getLookAndFeel().getPropertyComponentContentPosition (*this));
button->changeWidthToFitText (r.getHeight());
button->setTopRightPosition (r.getRight(), r.getY());
diff --git a/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.cpp b/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.cpp
index 28e60eb126..c0a031755a 100644
--- a/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.cpp
+++ b/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.cpp
@@ -56,7 +56,7 @@ public:
if (background != 0)
{
background->fillWithBackground (g, false);
- background->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
+ background->drawElements (g, Rectangle (0, 0, getWidth(), getHeight()));
}
grid.draw (g, background);
@@ -80,9 +80,9 @@ public:
if (type != 0)
{
- const Rectangle newBounds (type->getComponentPosition (comp)
- .getRectangle (Rectangle (0, 0, getWidth(), getHeight()),
- document.getComponentLayout()));
+ const Rectangle newBounds (type->getComponentPosition (comp)
+ .getRectangle (Rectangle (0, 0, getWidth(), getHeight()),
+ document.getComponentLayout()));
anyCompsMoved = anyCompsMoved || (comp->getBounds() != newBounds);
comp->setBounds (newBounds);
@@ -167,27 +167,27 @@ void ComponentLayoutEditor::resized()
updateOverlayPositions();
}
-const Rectangle ComponentLayoutEditor::getComponentArea() const
+const Rectangle ComponentLayoutEditor::getComponentArea() const
{
if (document.isFixedSize())
{
- return Rectangle ((getWidth() - document.getInitialWidth()) / 2,
- (getHeight() - document.getInitialHeight()) / 2,
- document.getInitialWidth(),
- document.getInitialHeight());
+ return Rectangle ((getWidth() - document.getInitialWidth()) / 2,
+ (getHeight() - document.getInitialHeight()) / 2,
+ document.getInitialWidth(),
+ document.getInitialHeight());
}
else
{
- return Rectangle (editorEdgeGap, editorEdgeGap,
- getWidth() - editorEdgeGap * 2,
- getHeight() - editorEdgeGap * 2);
+ return Rectangle (editorEdgeGap, editorEdgeGap,
+ getWidth() - editorEdgeGap * 2,
+ getHeight() - editorEdgeGap * 2);
}
}
Image* ComponentLayoutEditor::createComponentLayerSnapshot() const
{
((SubComponentHolderComp*) subCompHolder)->dontFillBackground = true;
- Image* const im = subCompHolder->createComponentSnapshot (Rectangle (0, 0, subCompHolder->getWidth(), subCompHolder->getHeight()));
+ Image* const im = subCompHolder->createComponentSnapshot (Rectangle (0, 0, subCompHolder->getWidth(), subCompHolder->getHeight()));
((SubComponentHolderComp*) subCompHolder)->dontFillBackground = false;
return im;
@@ -405,7 +405,7 @@ ComponentOverlayComponent* ComponentLayoutEditor::getOverlayCompFor (Component*
void ComponentLayoutEditor::findLassoItemsInArea (Array & results,
int x, int y, int w, int h)
{
- const Rectangle lasso (x - subCompHolder->getX(), y - subCompHolder->getY(), w, h);
+ const Rectangle lasso (x - subCompHolder->getX(), y - subCompHolder->getY(), w, h);
for (int i = 0; i < subCompHolder->getNumChildComponents(); ++i)
{
diff --git a/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.h b/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.h
index e2d3b99091..b9b5b39c7c 100644
--- a/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.h
+++ b/extras/the jucer/src/ui/jucer_ComponentLayoutEditor.h
@@ -71,7 +71,7 @@ public:
ComponentOverlayComponent* getOverlayCompFor (Component* comp) const;
- const Rectangle getComponentArea() const;
+ const Rectangle getComponentArea() const;
Image* createComponentLayerSnapshot() const;
diff --git a/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.cpp b/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.cpp
index 3e1d58304c..384f08f488 100644
--- a/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.cpp
+++ b/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.cpp
@@ -115,7 +115,7 @@ void ComponentLayoutPanel::updatePropertiesList()
((LayoutPropsPanel*) propsPanel)->updateList();
}
-const Rectangle ComponentLayoutPanel::getComponentArea() const
+const Rectangle ComponentLayoutPanel::getComponentArea() const
{
return ((ComponentLayoutEditor*) editor)->getComponentArea();
}
diff --git a/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.h b/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.h
index c9f7393170..4e376a7ce8 100644
--- a/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.h
+++ b/extras/the jucer/src/ui/jucer_ComponentLayoutPanel.h
@@ -43,7 +43,7 @@ public:
ComponentLayout& getLayout() const throw() { return layout;}
void updatePropertiesList();
- const Rectangle getComponentArea() const;
+ const Rectangle getComponentArea() const;
Image* createComponentSnapshot() const;
diff --git a/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.cpp b/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.cpp
index 46edafd203..925c713b99 100644
--- a/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.cpp
+++ b/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.cpp
@@ -180,8 +180,8 @@ void ComponentOverlayComponent::resizeEnd()
}
void ComponentOverlayComponent::checkBounds (int& x, int& y, int& w, int& h,
- const Rectangle& previousBounds,
- const Rectangle& limits,
+ const Rectangle& previousBounds,
+ const Rectangle& limits,
const bool isStretchingTop,
const bool isStretchingLeft,
const bool isStretchingBottom,
@@ -234,7 +234,7 @@ void ComponentOverlayComponent::checkBounds (int& x, int& y, int& w, int& h,
void ComponentOverlayComponent::applyBoundsToComponent (Component* component, int x, int y, int w, int h)
{
- if (component->getBounds() != Rectangle (x, y, w, h))
+ if (component->getBounds() != Rectangle (x, y, w, h))
{
layout.getDocument()->getUndoManager().undoCurrentTransactionOnly();
diff --git a/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.h b/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.h
index 1013d9ef96..b658f9584e 100644
--- a/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.h
+++ b/extras/the jucer/src/ui/jucer_ComponentOverlayComponent.h
@@ -65,8 +65,8 @@ public:
void updateBoundsToMatchTarget();
void checkBounds (int& x, int& y, int& w, int& h,
- const Rectangle& previousBounds,
- const Rectangle& limits,
+ const Rectangle& previousBounds,
+ const Rectangle& limits,
const bool isStretchingTop,
const bool isStretchingLeft,
const bool isStretchingBottom,
diff --git a/extras/the jucer/src/ui/jucer_EditingPanelBase.h b/extras/the jucer/src/ui/jucer_EditingPanelBase.h
index 2393e0ddda..f3ba0ffd44 100644
--- a/extras/the jucer/src/ui/jucer_EditingPanelBase.h
+++ b/extras/the jucer/src/ui/jucer_EditingPanelBase.h
@@ -53,7 +53,7 @@ public:
virtual void updatePropertiesList() = 0;
- virtual const Rectangle getComponentArea() const = 0;
+ virtual const Rectangle getComponentArea() const = 0;
double getZoom() const;
void setZoom (double newScale);
diff --git a/extras/the jucer/src/ui/jucer_JucerDocumentHolder.cpp b/extras/the jucer/src/ui/jucer_JucerDocumentHolder.cpp
index d0f77b1a41..57a63c9495 100644
--- a/extras/the jucer/src/ui/jucer_JucerDocumentHolder.cpp
+++ b/extras/the jucer/src/ui/jucer_JucerDocumentHolder.cpp
@@ -628,7 +628,7 @@ void JucerDocumentHolder::addElement (const int index)
if (panel != 0)
{
PaintRoutine* const currentPaintRoutine = & (panel->getPaintRoutine());
- const Rectangle area (panel->getComponentArea());
+ const Rectangle area (panel->getComponentArea());
document->getUndoManager().beginNewTransaction();
@@ -648,7 +648,7 @@ void JucerDocumentHolder::addElement (const int index)
panel->xyToTargetXY (x, y);
- Rectangle r (e->getCurrentBounds (area));
+ Rectangle r (e->getCurrentBounds (area));
r.setPosition (x, y);
e->setCurrentBounds (r, area, true);
@@ -669,7 +669,7 @@ void JucerDocumentHolder::addComponent (const int index)
if (panel != 0)
{
- const Rectangle area (panel->getComponentArea());
+ const Rectangle area (panel->getComponentArea());
document->getUndoManager().beginNewTransaction (T("Add new ") + ObjectTypes::componentTypeHandlers [index]->getTypeName());
diff --git a/extras/the jucer/src/ui/jucer_PaintRoutineEditor.cpp b/extras/the jucer/src/ui/jucer_PaintRoutineEditor.cpp
index 8474e88900..0dce063f80 100644
--- a/extras/the jucer/src/ui/jucer_PaintRoutineEditor.cpp
+++ b/extras/the jucer/src/ui/jucer_PaintRoutineEditor.cpp
@@ -68,27 +68,27 @@ void PaintRoutineEditor::removeAllElementComps()
}
}
-const Rectangle PaintRoutineEditor::getComponentArea() const
+const Rectangle PaintRoutineEditor::getComponentArea() const
{
if (document.isFixedSize())
{
- return Rectangle ((getWidth() - document.getInitialWidth()) / 2,
- (getHeight() - document.getInitialHeight()) / 2,
- document.getInitialWidth(),
- document.getInitialHeight());
+ return Rectangle ((getWidth() - document.getInitialWidth()) / 2,
+ (getHeight() - document.getInitialHeight()) / 2,
+ document.getInitialWidth(),
+ document.getInitialHeight());
}
else
{
- return Rectangle (editorEdgeGap, editorEdgeGap,
- getWidth() - editorEdgeGap * 2,
- getHeight() - editorEdgeGap * 2);
+ return Rectangle (editorEdgeGap, editorEdgeGap,
+ getWidth() - editorEdgeGap * 2,
+ getHeight() - editorEdgeGap * 2);
}
}
//==============================================================================
void PaintRoutineEditor::paint (Graphics& g)
{
- const Rectangle clip (getComponentArea());
+ const Rectangle clip (getComponentArea());
g.setOrigin (clip.getX(), clip.getY());
g.reduceClipRegion (0, 0, clip.getWidth(), clip.getHeight());
@@ -104,7 +104,7 @@ void PaintRoutineEditor::paintOverChildren (Graphics& g)
if (componentOverlay != 0)
{
- const Rectangle clip (getComponentArea());
+ const Rectangle clip (getComponentArea());
g.drawImageAt (componentOverlay, clip.getX(), clip.getY());
}
}
@@ -120,7 +120,7 @@ void PaintRoutineEditor::resized()
void PaintRoutineEditor::updateChildBounds()
{
- const Rectangle clip (getComponentArea());
+ const Rectangle clip (getComponentArea());
for (int i = 0; i < getNumChildComponents(); ++i)
{
@@ -263,7 +263,7 @@ void PaintRoutineEditor::mouseUp (const MouseEvent& e)
void PaintRoutineEditor::findLassoItemsInArea (Array & results,
int x, int y, int w, int h)
{
- const Rectangle lasso (x, y, w, h);
+ const Rectangle lasso (x, y, w, h);
for (int i = 0; i < getNumChildComponents(); ++i)
{
diff --git a/extras/the jucer/src/ui/jucer_PaintRoutineEditor.h b/extras/the jucer/src/ui/jucer_PaintRoutineEditor.h
index 843d23a6d1..826f7296af 100644
--- a/extras/the jucer/src/ui/jucer_PaintRoutineEditor.h
+++ b/extras/the jucer/src/ui/jucer_PaintRoutineEditor.h
@@ -66,7 +66,7 @@ public:
bool isInterestedInFileDrag (const StringArray& files);
void filesDropped (const StringArray& filenames, int x, int y);
- const Rectangle getComponentArea() const;
+ const Rectangle getComponentArea() const;
//==============================================================================
void refreshAllElements();
diff --git a/extras/the jucer/src/ui/jucer_PaintRoutinePanel.cpp b/extras/the jucer/src/ui/jucer_PaintRoutinePanel.cpp
index a422beef24..f73c00fa9a 100644
--- a/extras/the jucer/src/ui/jucer_PaintRoutinePanel.cpp
+++ b/extras/the jucer/src/ui/jucer_PaintRoutinePanel.cpp
@@ -188,7 +188,7 @@ void PaintRoutinePanel::updatePropertiesList()
((GraphicsPropsPanel*) propsPanel)->updateList();
}
-const Rectangle PaintRoutinePanel::getComponentArea() const
+const Rectangle PaintRoutinePanel::getComponentArea() const
{
return ((PaintRoutineEditor*) editor)->getComponentArea();
}
diff --git a/extras/the jucer/src/ui/jucer_PaintRoutinePanel.h b/extras/the jucer/src/ui/jucer_PaintRoutinePanel.h
index 77586d0212..3381b039fc 100644
--- a/extras/the jucer/src/ui/jucer_PaintRoutinePanel.h
+++ b/extras/the jucer/src/ui/jucer_PaintRoutinePanel.h
@@ -46,7 +46,7 @@ public:
PaintRoutine& getPaintRoutine() const throw() { return routine; }
void updatePropertiesList();
- const Rectangle getComponentArea() const;
+ const Rectangle getComponentArea() const;
//==============================================================================
juce_UseDebuggingNewOperator
diff --git a/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp b/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp
index d5a32a7d65..a55a8e6ae3 100644
--- a/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp
+++ b/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp
@@ -333,7 +333,7 @@ const String positionToString (const RelativePositionedRectangle& pos)
void positionToXY (const RelativePositionedRectangle& position,
double& x, double& y,
- const Rectangle& parentArea,
+ const Rectangle& parentArea,
const ComponentLayout* layout)
{
double w, h;
@@ -586,12 +586,12 @@ void drawResizableBorder (Graphics& g,
void drawMouseOverCorners (Graphics& g, int w, int h)
{
- RectangleList r (Rectangle (0, 0, w, h));
- r.subtract (Rectangle (1, 1, w - 2, h - 2));
+ RectangleList r (Rectangle (0, 0, w, h));
+ r.subtract (Rectangle (1, 1, w - 2, h - 2));
const int size = jmin (w / 3, h / 3, 12);
- r.subtract (Rectangle (size, 0, w - size - size, h));
- r.subtract (Rectangle (0, size, w, h - size - size));
+ r.subtract (Rectangle (size, 0, w - size - size, h));
+ r.subtract (Rectangle (0, size, w, h - size - size));
g.setColour (Colours::darkgrey);
@@ -648,7 +648,7 @@ bool RelativePositionedRectangle::operator!= (const RelativePositionedRectangle&
return ! operator== (other);
}
-void RelativePositionedRectangle::getRelativeTargetBounds (const Rectangle& parentArea,
+void RelativePositionedRectangle::getRelativeTargetBounds (const Rectangle& parentArea,
const ComponentLayout* layout,
int& x, int& xw, int& y, int& yh,
int& w, int& h) const
@@ -674,44 +674,44 @@ void RelativePositionedRectangle::getRelativeTargetBounds (const Rectangle& pare
yh = ry != 0 ? ry->getHeight() : parentArea.getHeight();
}
-const Rectangle RelativePositionedRectangle::getRectangle (const Rectangle& parentArea,
- const ComponentLayout* layout) const
+const Rectangle RelativePositionedRectangle::getRectangle (const Rectangle& parentArea,
+ const ComponentLayout* layout) const
{
int x, xw, y, yh, w, h;
getRelativeTargetBounds (parentArea, layout, x, xw, y, yh, w, h);
- const Rectangle xyRect ((xw <= 0 || yh <= 0) ? Rectangle()
- : rect.getRectangle (Rectangle (x, y, xw, yh)));
+ const Rectangle xyRect ((xw <= 0 || yh <= 0) ? Rectangle()
+ : rect.getRectangle (Rectangle (x, y, xw, yh)));
- const Rectangle whRect ((w <= 0 || h <= 0) ? Rectangle()
- : rect.getRectangle (Rectangle (x, y, w, h)));
+ const Rectangle whRect ((w <= 0 || h <= 0) ? Rectangle()
+ : rect.getRectangle (Rectangle (x, y, w, h)));
- return Rectangle (xyRect.getX(), xyRect.getY(),
- whRect.getWidth(), whRect.getHeight());
+ return Rectangle (xyRect.getX(), xyRect.getY(),
+ whRect.getWidth(), whRect.getHeight());
}
void RelativePositionedRectangle::getRectangleDouble (double& x, double& y, double& w, double& h,
- const Rectangle& parentArea,
+ const Rectangle& parentArea,
const ComponentLayout* layout) const
{
int rx, rxw, ry, ryh, rw, rh;
getRelativeTargetBounds (parentArea, layout, rx, rxw, ry, ryh, rw, rh);
double dummy1, dummy2;
- rect.getRectangleDouble (Rectangle (rx, ry, rxw, ryh), x, y, dummy1, dummy2);
- rect.getRectangleDouble (Rectangle (rx, ry, rw, rh), dummy1, dummy2, w, h);
+ rect.getRectangleDouble (Rectangle (rx, ry, rxw, ryh), x, y, dummy1, dummy2);
+ rect.getRectangleDouble (Rectangle (rx, ry, rw, rh), dummy1, dummy2, w, h);
}
void RelativePositionedRectangle::updateFromComponent (const Component& comp,
const ComponentLayout* layout)
{
int x, xw, y, yh, w, h;
- getRelativeTargetBounds (Rectangle (0, 0, comp.getParentWidth(), comp.getParentHeight()),
+ getRelativeTargetBounds (Rectangle (0, 0, comp.getParentWidth(), comp.getParentHeight()),
layout, x, xw, y, yh, w, h);
PositionedRectangle xyRect (rect), whRect (rect);
- xyRect.updateFrom (comp.getBounds(), Rectangle (x, y, xw, yh));
- whRect.updateFrom (comp.getBounds(), Rectangle (x, y, w, h));
+ xyRect.updateFrom (comp.getBounds(), Rectangle (x, y, xw, yh));
+ whRect.updateFrom (comp.getBounds(), Rectangle (x, y, w, h));
rect.setX (xyRect.getX());
rect.setY (xyRect.getY());
@@ -720,14 +720,14 @@ void RelativePositionedRectangle::updateFromComponent (const Component& comp,
}
void RelativePositionedRectangle::updateFrom (double newX, double newY, double newW, double newH,
- const Rectangle& parentArea, const ComponentLayout* layout)
+ const Rectangle& parentArea, const ComponentLayout* layout)
{
int x, xw, y, yh, w, h;
getRelativeTargetBounds (parentArea, layout, x, xw, y, yh, w, h);
PositionedRectangle xyRect (rect), whRect (rect);
- xyRect.updateFromDouble (newX, newY, newW, newH, Rectangle (x, y, xw, yh));
- whRect.updateFromDouble (newX, newY, newW, newH, Rectangle (x, y, w, h));
+ xyRect.updateFromDouble (newX, newY, newW, newH, Rectangle (x, y, xw, yh));
+ whRect.updateFromDouble (newX, newY, newW, newH, Rectangle (x, y, w, h));
rect.setX (xyRect.getX());
rect.setY (xyRect.getY());
diff --git a/extras/the jucer/src/utility/jucer_UtilityFunctions.h b/extras/the jucer/src/utility/jucer_UtilityFunctions.h
index 3aae045b47..3b18ebf762 100644
--- a/extras/the jucer/src/utility/jucer_UtilityFunctions.h
+++ b/extras/the jucer/src/utility/jucer_UtilityFunctions.h
@@ -48,17 +48,17 @@ struct RelativePositionedRectangle
bool operator== (const RelativePositionedRectangle& other) const throw();
bool operator!= (const RelativePositionedRectangle& other) const throw();
- const Rectangle getRectangle (const Rectangle& parentArea, const ComponentLayout* layout) const;
+ const Rectangle getRectangle (const Rectangle& parentArea, const ComponentLayout* layout) const;
void getRectangleDouble (double& x, double& y, double& w, double& h,
- const Rectangle& parentArea, const ComponentLayout* layout) const;
+ const Rectangle& parentArea, const ComponentLayout* layout) const;
void updateFromComponent (const Component& comp, const ComponentLayout* layout);
void updateFrom (double newX, double newY, double newW, double newH,
- const Rectangle& parentArea, const ComponentLayout* layout);
+ const Rectangle& parentArea, const ComponentLayout* layout);
void applyToXml (XmlElement& e) const;
void restoreFromXml (const XmlElement& e, const RelativePositionedRectangle& defaultPos);
- void getRelativeTargetBounds (const Rectangle& parentArea,
+ void getRelativeTargetBounds (const Rectangle& parentArea,
const ComponentLayout* layout,
int& x, int& xw, int& y, int& yh, int& w, int& h) const;
};
@@ -96,7 +96,7 @@ const String positionToString (const RelativePositionedRectangle& pos);
void positionToXY (const RelativePositionedRectangle& position,
double& x, double& y,
- const Rectangle& parentArea,
+ const Rectangle& parentArea,
const ComponentLayout* layout);
void positionToCode (const RelativePositionedRectangle& position,
diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp
index 05b2d4b5c7..75cf605a0a 100644
--- a/juce_amalgamated.cpp
+++ b/juce_amalgamated.cpp
@@ -21151,7 +21151,7 @@ void AudioThumbnail::drawChannel (Graphics& g,
const float midY = topY + h * 0.5f;
const float vscale = verticalZoomFactor * h / 256.0f;
- const Rectangle clip (g.getClipBounds());
+ const Rectangle clip (g.getClipBounds());
const int skipLeft = jlimit (0, w, clip.getX() - x);
w -= skipLeft;
x += skipLeft;
@@ -32754,7 +32754,7 @@ public:
#if JUCE_LINUX
if (pluginWindow != 0)
{
- const Rectangle clip (g.getClipBounds());
+ const Rectangle clip (g.getClipBounds());
XEvent ev;
zerostruct (ev);
@@ -38634,7 +38634,7 @@ public:
alpha (1.0f),
scale (1.0f)
{
- image = comp->createComponentSnapshot (Rectangle (0, 0, comp->getWidth(), comp->getHeight()));
+ image = comp->createComponentSnapshot (Rectangle (0, 0, comp->getWidth(), comp->getHeight()));
setBounds (comp->getBounds());
comp->getParentComponent()->addAndMakeVisible (this);
toBehind (comp);
@@ -38785,7 +38785,7 @@ void Component::addToDesktop (int styleWanted, void* nativeWindowToAttachTo)
bool wasFullscreen = false;
bool wasMinimised = false;
ComponentBoundsConstrainer* currentConstainer = 0;
- Rectangle oldNonFullScreenBounds;
+ Rectangle oldNonFullScreenBounds;
if (peer != 0)
{
@@ -39290,7 +39290,7 @@ void Component::setTopRightPosition (const int x, const int y)
setTopLeftPosition (x - getWidth(), y);
}
-void Component::setBounds (const Rectangle& r)
+void Component::setBounds (const Rectangle& r)
{
setBounds (r.getX(),
r.getY(),
@@ -40127,13 +40127,13 @@ void Component::paintEntireComponent (Graphics& originalContext)
#endif
}
-Image* Component::createComponentSnapshot (const Rectangle& areaToGrab,
+Image* Component::createComponentSnapshot (const Rectangle& areaToGrab,
const bool clipImageToComponentBounds)
{
- Rectangle r (areaToGrab);
+ Rectangle r (areaToGrab);
if (clipImageToComponentBounds)
- r = r.getIntersection (Rectangle (0, 0, getWidth(), getHeight()));
+ r = r.getIntersection (Rectangle (0, 0, getWidth(), getHeight()));
Image* const componentImage = Image::createNativeImage (flags.opaqueFlag ? Image::RGB : Image::ARGB,
jmax (1, r.getWidth()),
@@ -40270,7 +40270,7 @@ void Component::colourChanged()
{
}
-const Rectangle Component::getUnclippedArea() const
+const Rectangle Component::getUnclippedArea() const
{
int x = 0, y = 0, w = getWidth(), h = getHeight();
@@ -40280,18 +40280,18 @@ const Rectangle Component::getUnclippedArea() const
while (p != 0)
{
- if (! Rectangle::intersectRectangles (x, y, w, h, -px, -py, p->getWidth(), p->getHeight()))
- return Rectangle();
+ if (! Rectangle::intersectRectangles (x, y, w, h, -px, -py, p->getWidth(), p->getHeight()))
+ return Rectangle();
px += p->getX();
py += p->getY();
p = p->parentComponent_;
}
- return Rectangle (x, y, w, h);
+ return Rectangle (x, y, w, h);
}
-void Component::clipObscuredRegions (Graphics& g, const Rectangle& clipRect,
+void Component::clipObscuredRegions (Graphics& g, const Rectangle& clipRect,
const int deltaX, const int deltaY) const throw()
{
for (int i = childComponentList_.size(); --i >= 0;)
@@ -40300,7 +40300,7 @@ void Component::clipObscuredRegions (Graphics& g, const Rectangle& clipRect,
if (c->isVisible())
{
- Rectangle newClip (clipRect.getIntersection (c->bounds_));
+ Rectangle newClip (clipRect.getIntersection (c->bounds_));
if (! newClip.isEmpty())
{
@@ -40327,7 +40327,7 @@ void Component::getVisibleArea (RectangleList& result,
const bool includeSiblings) const
{
result.clear();
- const Rectangle unclipped (getUnclippedArea());
+ const Rectangle unclipped (getUnclippedArea());
if (! unclipped.isEmpty())
{
@@ -40341,7 +40341,7 @@ void Component::getVisibleArea (RectangleList& result,
c->relativePositionToOtherComponent (this, x, y);
c->subtractObscuredRegions (result, x, y,
- Rectangle (0, 0, c->getWidth(), c->getHeight()),
+ Rectangle (0, 0, c->getWidth(), c->getHeight()),
this);
}
@@ -40353,7 +40353,7 @@ void Component::getVisibleArea (RectangleList& result,
void Component::subtractObscuredRegions (RectangleList& result,
const int deltaX,
const int deltaY,
- const Rectangle& clipRect,
+ const Rectangle& clipRect,
const Component* const compToAvoid) const throw()
{
for (int i = childComponentList_.size(); --i >= 0;)
@@ -40364,14 +40364,14 @@ void Component::subtractObscuredRegions (RectangleList& result,
{
if (c->isOpaque())
{
- Rectangle childBounds (c->bounds_.getIntersection (clipRect));
+ Rectangle childBounds (c->bounds_.getIntersection (clipRect));
childBounds.translate (deltaX, deltaY);
result.subtract (childBounds);
}
else
{
- Rectangle newClip (clipRect.getIntersection (c->bounds_));
+ Rectangle newClip (clipRect.getIntersection (c->bounds_));
newClip.translate (-c->getX(), -c->getY());
c->subtractObscuredRegions (result,
@@ -40789,7 +40789,7 @@ void Component::internalMouseDown (const int x, const int y, const int64 time)
int gx = x, gy = y;
relativePositionToGlobal (gx, gy);
- desktop.registerMouseDown (gx, gy, time, this);
+ desktop.registerMouseDown (Point (gx, gy), time, this);
const ComponentDeletionWatcher deletionChecker (this);
@@ -40931,7 +40931,7 @@ void Component::internalMouseUp (const int oldModifiers, int x, int y, const int
int gx = x, gy = y;
relativePositionToGlobal (gx, gy);
- desktop.registerMouseDrag (gx, gy);
+ desktop.registerMouseDrag (Point (gx, gy));
const ComponentDeletionWatcher deletionChecker (this);
@@ -41073,7 +41073,7 @@ void Component::internalMouseDrag (int x, int y, const int64 time)
int gx = x, gy = y;
relativePositionToGlobal (gx, gy);
- desktop.registerMouseDrag (gx, gy);
+ desktop.registerMouseDrag (Point (gx, gy));
const ComponentDeletionWatcher deletionChecker (this);
@@ -41146,7 +41146,7 @@ void Component::internalMouseDrag (int x, int y, const int64 time)
{
if (isUnboundedMouseModeOn)
{
- Rectangle screenArea (getParentMonitorArea().expanded (-2, -2));
+ Rectangle screenArea (getParentMonitorArea().expanded (-2, -2));
int mx, my;
Desktop::getMousePosition (mx, my);
@@ -41782,7 +41782,7 @@ Component* JUCE_CALLTYPE Component::getComponentUnderMouse() throw()
return componentUnderMouse;
}
-const Rectangle Component::getParentMonitorArea() const throw()
+const Rectangle Component::getParentMonitorArea() const throw()
{
int centreX = getWidth() / 2;
int centreY = getHeight() / 2;
@@ -41928,13 +41928,13 @@ Desktop& JUCE_CALLTYPE Desktop::getInstance() throw()
Desktop* Desktop::instance = 0;
-extern void juce_updateMultiMonitorInfo (Array & monitorCoords,
+extern void juce_updateMultiMonitorInfo (Array >& monitorCoords,
const bool clipToWorkArea);
void Desktop::refreshMonitorSizes() throw()
{
- const Array oldClipped (monitorCoordsClipped);
- const Array oldUnclipped (monitorCoordsUnclipped);
+ const Array > oldClipped (monitorCoordsClipped);
+ const Array > oldUnclipped (monitorCoordsUnclipped);
monitorCoordsClipped.clear();
monitorCoordsUnclipped.clear();
@@ -41960,7 +41960,7 @@ int Desktop::getNumDisplayMonitors() const throw()
return monitorCoordsClipped.size();
}
-const Rectangle Desktop::getDisplayMonitorCoordinates (const int index, const bool clippedToWorkArea) const throw()
+const Rectangle Desktop::getDisplayMonitorCoordinates (const int index, const bool clippedToWorkArea) const throw()
{
return clippedToWorkArea ? monitorCoordsClipped [index]
: monitorCoordsUnclipped [index];
@@ -41976,19 +41976,19 @@ const RectangleList Desktop::getAllMonitorDisplayAreas (const bool clippedToWork
return rl;
}
-const Rectangle Desktop::getMainMonitorArea (const bool clippedToWorkArea) const throw()
+const Rectangle Desktop::getMainMonitorArea (const bool clippedToWorkArea) const throw()
{
return getDisplayMonitorCoordinates (0, clippedToWorkArea);
}
-const Rectangle Desktop::getMonitorAreaContaining (int cx, int cy, const bool clippedToWorkArea) const throw()
+const Rectangle Desktop::getMonitorAreaContaining (int cx, int cy, const bool clippedToWorkArea) const throw()
{
- Rectangle best (getMainMonitorArea (clippedToWorkArea));
+ Rectangle best (getMainMonitorArea (clippedToWorkArea));
double bestDistance = 1.0e10;
for (int i = getNumDisplayMonitors(); --i >= 0;)
{
- const Rectangle rect (getDisplayMonitorCoordinates (i, clippedToWorkArea));
+ const Rectangle rect (getDisplayMonitorCoordinates (i, clippedToWorkArea));
if (rect.contains (cx, cy))
return rect;
@@ -42071,8 +42071,8 @@ void Desktop::componentBroughtToFront (Component* const c) throw()
void Desktop::getLastMouseDownPosition (int& x, int& y) throw()
{
const Desktop& d = getInstance();
- x = d.mouseDowns[0].x;
- y = d.mouseDowns[0].y;
+ x = d.mouseDowns[0].position.getX();
+ y = d.mouseDowns[0].position.getY();
}
int Desktop::getMouseButtonClickCounter() throw()
@@ -42090,24 +42090,23 @@ const Time Desktop::getLastMouseDownTime() const throw()
return Time (mouseDowns[0].time);
}
-void Desktop::registerMouseDown (int x, int y, int64 time, Component* component) throw()
+void Desktop::registerMouseDown (const Point