Browse Source

Merge remote-tracking branch 'j/develop'

pull/8/head
falkTX 8 years ago
parent
commit
07ef94443a
8 changed files with 267 additions and 280 deletions
  1. +2
    -2
      extras/Projucer/Builds/LinuxMakefile/Makefile
  2. +2
    -2
      extras/Projucer/Projucer.jucer
  3. +0
    -4
      extras/Projucer/Source/Project Saving/jucer_ProjectExporter.cpp
  4. +5
    -1
      modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp
  5. +4
    -0
      modules/juce_gui_basics/widgets/juce_Slider.cpp
  6. +2
    -0
      modules/juce_gui_basics/widgets/juce_Slider.h
  7. +239
    -259
      modules/juce_gui_basics/widgets/juce_TextEditor.cpp
  8. +13
    -12
      modules/juce_gui_basics/widgets/juce_TextEditor.h

+ 2
- 2
extras/Projucer/Builds/LinuxMakefile/Makefile View File

@@ -37,7 +37,7 @@ ifeq ($(CONFIG),Debug)
JUCE_CPPFLAGS_APP := -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=0
JUCE_TARGET_APP := Projucer
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -g -ggdb -O0 -std=c++11 $(CFLAGS)
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -g -ggdb -O0 $(CFLAGS)
JUCE_CXXFLAGS += $(CXXFLAGS) $(JUCE_CFLAGS) -std=c++11 $(CXXFLAGS)
JUCE_LDFLAGS += $(TARGET_ARCH) -L$(JUCE_BINDIR) -L$(JUCE_LIBDIR) $(shell pkg-config --libs freetype2 libcurl x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0) -ldl -lpthread -lrt $(LDFLAGS)
@@ -58,7 +58,7 @@ ifeq ($(CONFIG),Release)
JUCE_CPPFLAGS_APP := -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=0
JUCE_TARGET_APP := Projucer
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -O3 -std=c++11 $(CFLAGS)
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -O3 $(CFLAGS)
JUCE_CXXFLAGS += $(CXXFLAGS) $(JUCE_CFLAGS) -std=c++11 $(CXXFLAGS)
JUCE_LDFLAGS += $(TARGET_ARCH) -L$(JUCE_BINDIR) -L$(JUCE_LIBDIR) -fvisibility=hidden $(shell pkg-config --libs freetype2 libcurl x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0) -ldl -lpthread -lrt $(LDFLAGS)


+ 2
- 2
extras/Projucer/Projucer.jucer View File

@@ -86,8 +86,8 @@
<MODULEPATH id="juce_core" path="../../modules"/>
</MODULEPATHS>
</VS2017>
<LINUX_MAKE targetFolder="Builds/LinuxMakefile" extraCompilerFlags="-std=c++11"
extraLinkerFlags="" bigIcon="OCyr5F" smallIcon="" vstFolder="">
<LINUX_MAKE targetFolder="Builds/LinuxMakefile" extraCompilerFlags="" extraLinkerFlags=""
bigIcon="OCyr5F" smallIcon="" vstFolder="">
<CONFIGURATIONS>
<CONFIGURATION name="Debug" libraryPath="" isDebug="1" optimisation="1" targetName="Projucer"
headerPath=""/>


+ 0
- 4
extras/Projucer/Source/Project Saving/jucer_ProjectExporter.cpp View File

@@ -350,10 +350,6 @@ void ProjectExporter::addVSTPathsIfPluginOrHost()
void ProjectExporter::addCommonAudioPluginSettings()
{
if (isLinux()
&& (shouldBuildTargetType (ProjectType::Target::VSTPlugIn) || shouldBuildTargetType (ProjectType::Target::VST3PlugIn)))
makefileExtraLinkerFlags.add ("-Wl,--no-undefined");
if (shouldBuildTargetType (ProjectType::Target::AAXPlugIn))
addAAXFoldersToPath();


+ 5
- 1
modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp View File

@@ -100,7 +100,11 @@
using namespace juce;
const int32_t juceChunkType = 'juce';
#ifndef JucePlugin_AAX_Chunk_Identifier
#define JucePlugin_AAX_Chunk_Identifier 'juce'
#endif
const int32_t juceChunkType = JucePlugin_AAX_Chunk_Identifier;
const int maxAAXChannels = 8;
//==============================================================================


+ 4
- 0
modules/juce_gui_basics/widgets/juce_Slider.cpp View File

@@ -1602,6 +1602,10 @@ void Slider::mouseUp (const MouseEvent&) { pimpl->mouseUp(); }
void Slider::mouseMove (const MouseEvent&) { pimpl->mouseMove(); }
void Slider::mouseExit (const MouseEvent&) { pimpl->mouseExit(); }
// If popup display is enabled and set to show on mouse hover, this makes sure
// it is shown when dragging the mouse over a slider and releasing
void Slider::mouseEnter (const MouseEvent&) { pimpl->mouseMove(); }
void Slider::modifierKeysChanged (const ModifierKeys& modifiers)
{
if (isEnabled())


+ 2
- 0
modules/juce_gui_basics/widgets/juce_Slider.h View File

@@ -910,6 +910,8 @@ public:
void mouseMove (const MouseEvent&) override;
/** @internal */
void mouseExit (const MouseEvent&) override;
/** @internal */
void mouseEnter (const MouseEvent&) override;
private:
//==============================================================================


+ 239
- 259
modules/juce_gui_basics/widgets/juce_TextEditor.cpp
File diff suppressed because it is too large
View File


+ 13
- 12
modules/juce_gui_basics/widgets/juce_TextEditor.h View File

@@ -475,8 +475,10 @@ public:
*/
void setScrollToShowCursor (bool shouldScrollToShowCaret);
/** Sets the line spacing of the TextEditor.
/** Modifies the horizontal justification of the text within the editor window. */
void setJustification (Justification newJustification);
/** Sets the line spacing of the TextEditor.
The default (and minimum) value is 1.0 and values > 1.0 will increase the line spacing as a
multiple of the line height e.g. for double-spacing call this method with an argument of 2.0.
*/
@@ -680,17 +682,17 @@ protected:
private:
//==============================================================================
class Iterator;
JUCE_PUBLIC_IN_DLL_BUILD (class UniformTextSection)
class TextHolderComponent;
class InsertAction;
class RemoveAction;
friend class InsertAction;
friend class RemoveAction;
struct Iterator;
struct TextHolderComponent;
struct TextEditorViewport;
struct InsertAction;
struct RemoveAction;
ScopedPointer<Viewport> viewport;
TextHolderComponent* textHolder;
BorderSize<int> borderSize { 1, 1, 1, 3 };
Justification justification { Justification::left };
bool readOnly = false;
bool caretVisible = true;
@@ -743,10 +745,10 @@ private:
void coalesceSimilarSections();
void splitSection (int sectionIndex, int charToSplitAt);
void clearInternal (UndoManager*);
void insert (const String&, int insertIndex, const Font&, const Colour, UndoManager*, int newCaretPos);
void insert (const String&, int insertIndex, const Font&, Colour, UndoManager*, int newCaretPos);
void reinsert (int insertIndex, const OwnedArray<UniformTextSection>&);
void remove (Range<int> range, UndoManager*, int caretPositionToMoveTo);
void getCharPosition (int index, float& x, float& y, float& lineHeight) const;
void remove (Range<int>, UndoManager*, int caretPositionToMoveTo);
void getCharPosition (int index, Point<float>&, float& lineHeight) const;
void updateCaretPosition();
void updateValueFromText();
void textWasChangedByValue();
@@ -754,11 +756,10 @@ private:
int findWordBreakAfter (int position) const;
int findWordBreakBefore (int position) const;
bool moveCaretWithTransaction (int newPos, bool selecting);
friend class TextHolderComponent;
friend class TextEditorViewport;
void drawContent (Graphics&);
void updateTextHolderSize();
float getWordWrapWidth() const;
float getJustificationWidth() const;
void timerCallbackInt();
void repaintText (Range<int>);
void scrollByLines (int deltaLines);


Loading…
Cancel
Save