mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Removed some superfluous consts from definitions
This commit is contained in:
parent
1eea4766ce
commit
7d45d498b9
47 changed files with 120 additions and 119 deletions
|
|
@ -152,7 +152,7 @@ struct CustomLookAndFeel : public LookAndFeel_V4
|
||||||
|
|
||||||
void drawLinearSliderThumb (Graphics& g, int x, int y, int width, int height,
|
void drawLinearSliderThumb (Graphics& g, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle style, Slider& slider) override
|
Slider::SliderStyle style, Slider& slider) override
|
||||||
{
|
{
|
||||||
auto sliderRadius = (float) (getSliderThumbRadius (slider) - 2);
|
auto sliderRadius = (float) (getSliderThumbRadius (slider) - 2);
|
||||||
|
|
||||||
|
|
@ -194,7 +194,7 @@ struct CustomLookAndFeel : public LookAndFeel_V4
|
||||||
|
|
||||||
void drawLinearSlider (Graphics& g, int x, int y, int width, int height,
|
void drawLinearSlider (Graphics& g, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle style, Slider& slider) override
|
Slider::SliderStyle style, Slider& slider) override
|
||||||
{
|
{
|
||||||
g.fillAll (slider.findColour (Slider::backgroundColourId));
|
g.fillAll (slider.findColour (Slider::backgroundColourId));
|
||||||
|
|
||||||
|
|
@ -354,7 +354,7 @@ struct SquareLookAndFeel : public CustomLookAndFeel
|
||||||
|
|
||||||
void drawLinearSliderThumb (Graphics& g, int x, int y, int width, int height,
|
void drawLinearSliderThumb (Graphics& g, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle style, Slider& slider) override
|
Slider::SliderStyle style, Slider& slider) override
|
||||||
{
|
{
|
||||||
auto sliderRadius = (float) getSliderThumbRadius (slider);
|
auto sliderRadius = (float) getSliderThumbRadius (slider);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void drawLinearSlider (Graphics& g, int x, int y, int width, int height,
|
void drawLinearSlider (Graphics& g, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle style, Slider& slider) override
|
Slider::SliderStyle style, Slider& slider) override
|
||||||
{
|
{
|
||||||
ignoreUnused (style, minSliderPos, maxSliderPos);
|
ignoreUnused (style, minSliderPos, maxSliderPos);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ namespace build_tools
|
||||||
const String& utf8PointerVariable,
|
const String& utf8PointerVariable,
|
||||||
const StringArray& strings,
|
const StringArray& strings,
|
||||||
const StringArray& codeToExecute,
|
const StringArray& codeToExecute,
|
||||||
const int indentLevel);
|
int indentLevel);
|
||||||
|
|
||||||
String unixStylePath (const String& path);
|
String unixStylePath (const String& path);
|
||||||
String windowsStylePath (const String& path);
|
String windowsStylePath (const String& path);
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace build_tools
|
||||||
Image getBestIconForSize (const Icons& icons,
|
Image getBestIconForSize (const Icons& icons,
|
||||||
int size,
|
int size,
|
||||||
bool returnNullIfNothingBigEnough);
|
bool returnNullIfNothingBigEnough);
|
||||||
Image rescaleImageForIcon (Drawable& d, const int size);
|
Image rescaleImageForIcon (Drawable& d, int size);
|
||||||
|
|
||||||
RelativePath createXcassetsFolderFromIcons (const Icons& icons,
|
RelativePath createXcassetsFolderFromIcons (const Icons& icons,
|
||||||
const File& targetFolder,
|
const File& targetFolder,
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ public:
|
||||||
int getDefaultHeight() const noexcept { return defaultHeight; }
|
int getDefaultHeight() const noexcept { return defaultHeight; }
|
||||||
|
|
||||||
static int64 getComponentId (Component* comp);
|
static int64 getComponentId (Component* comp);
|
||||||
static void setComponentId (Component* comp, const int64 newID);
|
static void setComponentId (Component* comp, int64 newID);
|
||||||
|
|
||||||
static RelativePositionedRectangle getComponentPosition (Component* comp);
|
static RelativePositionedRectangle getComponentPosition (Component* comp);
|
||||||
static void setComponentPosition (Component* comp,
|
static void setComponentPosition (Component* comp,
|
||||||
|
|
|
||||||
|
|
@ -38,14 +38,14 @@ public:
|
||||||
String getTypeName() const;
|
String getTypeName() const;
|
||||||
|
|
||||||
JucerDocument* createCopy();
|
JucerDocument* createCopy();
|
||||||
Component* createTestComponent (const bool alwaysFillBackground);
|
Component* createTestComponent (bool alwaysFillBackground);
|
||||||
|
|
||||||
int getNumPaintRoutines() const;
|
int getNumPaintRoutines() const;
|
||||||
StringArray getPaintRoutineNames() const;
|
StringArray getPaintRoutineNames() const;
|
||||||
PaintRoutine* getPaintRoutine (const int index) const;
|
PaintRoutine* getPaintRoutine (int index) const;
|
||||||
|
|
||||||
void setStatePaintRoutineEnabled (const int index, bool b);
|
void setStatePaintRoutineEnabled (int index, bool b);
|
||||||
bool isStatePaintRoutineEnabled (const int index) const;
|
bool isStatePaintRoutineEnabled (int index) const;
|
||||||
|
|
||||||
int chooseBestEnabledPaintRoutine (int paintRoutineWanted) const;
|
int chooseBestEnabledPaintRoutine (int paintRoutineWanted) const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,11 @@ public:
|
||||||
String getTypeName() const;
|
String getTypeName() const;
|
||||||
|
|
||||||
JucerDocument* createCopy();
|
JucerDocument* createCopy();
|
||||||
Component* createTestComponent (const bool alwaysFillBackground);
|
Component* createTestComponent (bool alwaysFillBackground);
|
||||||
|
|
||||||
int getNumPaintRoutines() const { return 1; }
|
int getNumPaintRoutines() const { return 1; }
|
||||||
StringArray getPaintRoutineNames() const { return StringArray ("Graphics"); }
|
StringArray getPaintRoutineNames() const { return StringArray ("Graphics"); }
|
||||||
PaintRoutine* getPaintRoutine (const int index) const { return index == 0 ? backgroundGraphics.get() : nullptr; }
|
PaintRoutine* getPaintRoutine (int index) const { return index == 0 ? backgroundGraphics.get() : nullptr; }
|
||||||
|
|
||||||
ComponentLayout* getComponentLayout() const { return components.get(); }
|
ComponentLayout* getComponentLayout() const { return components.get(); }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -167,8 +167,8 @@ public:
|
||||||
ElementFillPositionProperty (ColouredElement* const owner_,
|
ElementFillPositionProperty (ColouredElement* const owner_,
|
||||||
const String& name,
|
const String& name,
|
||||||
ComponentPositionDimension dimension_,
|
ComponentPositionDimension dimension_,
|
||||||
const bool isStart_,
|
bool isStart_,
|
||||||
const bool isForStroke_)
|
bool isForStroke_)
|
||||||
: PositionPropertyBase (owner_, name, dimension_, false, false,
|
: PositionPropertyBase (owner_, name, dimension_, false, false,
|
||||||
owner_->getDocument()->getComponentLayout()),
|
owner_->getDocument()->getComponentLayout()),
|
||||||
listener (owner_),
|
listener (owner_),
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ class ColouredElement : public PaintElement
|
||||||
public:
|
public:
|
||||||
ColouredElement (PaintRoutine* owner,
|
ColouredElement (PaintRoutine* owner,
|
||||||
const String& name,
|
const String& name,
|
||||||
const bool showOutline_,
|
bool showOutline_,
|
||||||
const bool showJointAndEnd_);
|
bool showJointAndEnd_);
|
||||||
|
|
||||||
~ColouredElement() override;
|
~ColouredElement() override;
|
||||||
|
|
||||||
|
|
@ -50,18 +50,18 @@ public:
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
const JucerFillType& getFillType() noexcept;
|
const JucerFillType& getFillType() noexcept;
|
||||||
void setFillType (const JucerFillType& newType, const bool undoable);
|
void setFillType (const JucerFillType& newType, bool undoable);
|
||||||
|
|
||||||
bool isStrokeEnabled() const noexcept;
|
bool isStrokeEnabled() const noexcept;
|
||||||
void enableStroke (bool enable, const bool undoable);
|
void enableStroke (bool enable, bool undoable);
|
||||||
|
|
||||||
const StrokeType& getStrokeType() noexcept;
|
const StrokeType& getStrokeType() noexcept;
|
||||||
void setStrokeType (const PathStrokeType& newType, const bool undoable);
|
void setStrokeType (const PathStrokeType& newType, bool undoable);
|
||||||
void setStrokeFill (const JucerFillType& newType, const bool undoable);
|
void setStrokeFill (const JucerFillType& newType, bool undoable);
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
Rectangle<int> getCurrentBounds (const Rectangle<int>& parentArea) const override;
|
Rectangle<int> getCurrentBounds (const Rectangle<int>& parentArea) const override;
|
||||||
void setCurrentBounds (const Rectangle<int>& newBounds, const Rectangle<int>& parentArea, const bool undoable) override;
|
void setCurrentBounds (const Rectangle<int>& newBounds, const Rectangle<int>& parentArea, bool undoable) override;
|
||||||
|
|
||||||
void createSiblingComponents() override;
|
void createSiblingComponents() override;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,13 +50,13 @@ public:
|
||||||
virtual void setInitialBounds (int parentWidth, int parentHeight);
|
virtual void setInitialBounds (int parentWidth, int parentHeight);
|
||||||
|
|
||||||
virtual Rectangle<int> getCurrentBounds (const Rectangle<int>& activeArea) const;
|
virtual Rectangle<int> getCurrentBounds (const Rectangle<int>& activeArea) const;
|
||||||
virtual void setCurrentBounds (const Rectangle<int>& newBounds, const Rectangle<int>& activeArea, const bool undoable);
|
virtual void setCurrentBounds (const Rectangle<int>& newBounds, const Rectangle<int>& activeArea, bool undoable);
|
||||||
|
|
||||||
const RelativePositionedRectangle& getPosition() const;
|
const RelativePositionedRectangle& getPosition() const;
|
||||||
void setPosition (const RelativePositionedRectangle& newPosition, const bool undoable);
|
void setPosition (const RelativePositionedRectangle& newPosition, bool undoable);
|
||||||
void setPaintElementBounds (const Rectangle<int>& newBounds, const bool undoable);
|
void setPaintElementBounds (const Rectangle<int>& newBounds, bool undoable);
|
||||||
void setPaintElementBoundsAndProperties (PaintElement* elementToPosition, const Rectangle<int>& newBounds,
|
void setPaintElementBoundsAndProperties (PaintElement* elementToPosition, const Rectangle<int>& newBounds,
|
||||||
PaintElement* referenceElement, const bool undoable);
|
PaintElement* referenceElement, bool undoable);
|
||||||
|
|
||||||
void updateBounds (const Rectangle<int>& activeArea);
|
void updateBounds (const Rectangle<int>& activeArea);
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ protected:
|
||||||
Rectangle<int> getCurrentAbsoluteBounds() const;
|
Rectangle<int> getCurrentAbsoluteBounds() const;
|
||||||
void getCurrentAbsoluteBoundsDouble (double& x, double& y, double& w, double& h) const;
|
void getCurrentAbsoluteBoundsDouble (double& x, double& y, double& w, double& h) const;
|
||||||
|
|
||||||
virtual void selectionChanged (const bool isSelected);
|
virtual void selectionChanged (bool isSelected);
|
||||||
|
|
||||||
virtual void createSiblingComponents();
|
virtual void createSiblingComponents();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,13 +35,13 @@ public:
|
||||||
PaintElementGroup (PaintRoutine*);
|
PaintElementGroup (PaintRoutine*);
|
||||||
~PaintElementGroup() override;
|
~PaintElementGroup() override;
|
||||||
|
|
||||||
void ungroup (const bool);
|
void ungroup (bool);
|
||||||
|
|
||||||
static void groupSelected (PaintRoutine* const);
|
static void groupSelected (PaintRoutine* const);
|
||||||
|
|
||||||
int getNumElements() const noexcept;
|
int getNumElements() const noexcept;
|
||||||
|
|
||||||
PaintElement* getElement (const int index) const noexcept;
|
PaintElement* getElement (int index) const noexcept;
|
||||||
int indexOfElement (const PaintElement* element) const noexcept;
|
int indexOfElement (const PaintElement* element) const noexcept;
|
||||||
|
|
||||||
bool containsElement (const PaintElement* element) const;
|
bool containsElement (const PaintElement* element) const;
|
||||||
|
|
@ -49,7 +49,7 @@ public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void setInitialBounds (int, int) override;
|
void setInitialBounds (int, int) override;
|
||||||
Rectangle<int> getCurrentBounds (const Rectangle<int>&) const override;
|
Rectangle<int> getCurrentBounds (const Rectangle<int>&) const override;
|
||||||
void setCurrentBounds (const Rectangle<int>&, const Rectangle<int>&, const bool) override;
|
void setCurrentBounds (const Rectangle<int>&, const Rectangle<int>&, bool) override;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void draw (Graphics&, const ComponentLayout*, const Rectangle<int>&) override;
|
void draw (Graphics&, const ComponentLayout*, const Rectangle<int>&) override;
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ public:
|
||||||
String newResource, oldResource;
|
String newResource, oldResource;
|
||||||
};
|
};
|
||||||
|
|
||||||
void setResource (const String&, const bool);
|
void setResource (const String&, bool);
|
||||||
|
|
||||||
String getResource() const;
|
String getResource() const;
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ public:
|
||||||
class SetOpacityAction : public PaintElementUndoableAction <PaintElementImage>
|
class SetOpacityAction : public PaintElementUndoableAction <PaintElementImage>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SetOpacityAction (PaintElementImage* const, const double);
|
SetOpacityAction (PaintElementImage* const, double);
|
||||||
|
|
||||||
bool perform();
|
bool perform();
|
||||||
bool undo();
|
bool undo();
|
||||||
|
|
@ -82,7 +82,7 @@ public:
|
||||||
double newOpacity, oldOpacity;
|
double newOpacity, oldOpacity;
|
||||||
};
|
};
|
||||||
|
|
||||||
void setOpacity (double, const bool);
|
void setOpacity (double, bool);
|
||||||
double getOpacity() const noexcept;
|
double getOpacity() const noexcept;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
@ -94,7 +94,7 @@ public:
|
||||||
class SetStretchModeAction : public PaintElementUndoableAction <PaintElementImage>
|
class SetStretchModeAction : public PaintElementUndoableAction <PaintElementImage>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SetStretchModeAction (PaintElementImage* const, const StretchMode);
|
SetStretchModeAction (PaintElementImage* const, StretchMode);
|
||||||
|
|
||||||
bool perform();
|
bool perform();
|
||||||
bool undo();
|
bool undo();
|
||||||
|
|
@ -105,7 +105,7 @@ public:
|
||||||
|
|
||||||
StretchMode getStretchMode() const noexcept;
|
StretchMode getStretchMode() const noexcept;
|
||||||
|
|
||||||
void setStretchMode (const StretchMode, const bool);
|
void setStretchMode (StretchMode, bool);
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
XmlElement* createXml() const override;
|
XmlElement* createXml() const override;
|
||||||
|
|
|
||||||
|
|
@ -47,15 +47,15 @@ public:
|
||||||
|
|
||||||
int getNumPoints() const;
|
int getNumPoints() const;
|
||||||
|
|
||||||
void changePointType (const Path::Iterator::PathElementType newType,
|
void changePointType (Path::Iterator::PathElementType newType,
|
||||||
const Rectangle<int>& parentArea,
|
const Rectangle<int>& parentArea,
|
||||||
const bool undoable);
|
bool undoable);
|
||||||
|
|
||||||
void deleteFromPath();
|
void deleteFromPath();
|
||||||
void getEditableProperties (Array<PropertyComponent*>& props, bool multipleSelected);
|
void getEditableProperties (Array<PropertyComponent*>& props, bool multipleSelected);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PathPoint withChangedPointType (const Path::Iterator::PathElementType newType,
|
PathPoint withChangedPointType (Path::Iterator::PathElementType newType,
|
||||||
const Rectangle<int>& parentArea) const;
|
const Rectangle<int>& parentArea) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -150,7 +150,7 @@ class PathPointComponent : public ElementSiblingComponent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PathPointComponent (PaintElementPath* const path_,
|
PathPointComponent (PaintElementPath* const path_,
|
||||||
const int index, const int pointNumber);
|
int index, int pointNumber);
|
||||||
|
|
||||||
~PathPointComponent();
|
~PathPointComponent();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public:
|
||||||
return PaintElement::getCurrentBounds (parentArea); // bypass the ColouredElement implementation
|
return PaintElement::getCurrentBounds (parentArea); // bypass the ColouredElement implementation
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCurrentBounds (const Rectangle<int>& newBounds, const Rectangle<int>& parentArea, const bool undoable) override
|
void setCurrentBounds (const Rectangle<int>& newBounds, const Rectangle<int>& parentArea, bool undoable) override
|
||||||
{
|
{
|
||||||
PaintElement::setCurrentBounds (newBounds, parentArea, undoable); // bypass the ColouredElement implementation
|
PaintElement::setCurrentBounds (newBounds, parentArea, undoable); // bypass the ColouredElement implementation
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -220,8 +220,8 @@ public:
|
||||||
|
|
||||||
/** Same functionality as updateFrom(), but taking doubles instead of ints.
|
/** Same functionality as updateFrom(), but taking doubles instead of ints.
|
||||||
*/
|
*/
|
||||||
void updateFromDouble (const double newX, const double newY,
|
void updateFromDouble (double newX, double newY,
|
||||||
const double newW, const double newH,
|
double newW, double newH,
|
||||||
const Rectangle<int>& target) noexcept
|
const Rectangle<int>& target) noexcept
|
||||||
{
|
{
|
||||||
updatePosAndSize (x, w, newX, newW, xMode, wMode, target.getX(), target.getWidth());
|
updatePosAndSize (x, w, newX, newW, xMode, wMode, target.getX(), target.getWidth());
|
||||||
|
|
@ -334,7 +334,7 @@ public:
|
||||||
/** Sets the raw value of the x coordinate.
|
/** Sets the raw value of the x coordinate.
|
||||||
See getX() for the meaning of this value.
|
See getX() for the meaning of this value.
|
||||||
*/
|
*/
|
||||||
void setX (const double newX) noexcept { x = newX; }
|
void setX (double newX) noexcept { x = newX; }
|
||||||
|
|
||||||
/** Returns the anchoring mode for the y coordinate.
|
/** Returns the anchoring mode for the y coordinate.
|
||||||
To change any of the modes, use setModes().
|
To change any of the modes, use setModes().
|
||||||
|
|
@ -364,7 +364,7 @@ public:
|
||||||
/** Sets the raw value of the y coordinate.
|
/** Sets the raw value of the y coordinate.
|
||||||
See getY() for the meaning of this value.
|
See getY() for the meaning of this value.
|
||||||
*/
|
*/
|
||||||
void setY (const double newY) noexcept { y = newY; }
|
void setY (double newY) noexcept { y = newY; }
|
||||||
|
|
||||||
/** Returns the mode used to calculate the width.
|
/** Returns the mode used to calculate the width.
|
||||||
To change any of the modes, use setModes().
|
To change any of the modes, use setModes().
|
||||||
|
|
@ -383,7 +383,7 @@ public:
|
||||||
|
|
||||||
See getWidth() for the details about what this value means.
|
See getWidth() for the details about what this value means.
|
||||||
*/
|
*/
|
||||||
void setWidth (const double newWidth) noexcept { w = newWidth; }
|
void setWidth (double newWidth) noexcept { w = newWidth; }
|
||||||
|
|
||||||
/** Returns the mode used to calculate the height.
|
/** Returns the mode used to calculate the height.
|
||||||
To change any of the modes, use setModes().
|
To change any of the modes, use setModes().
|
||||||
|
|
@ -402,7 +402,7 @@ public:
|
||||||
|
|
||||||
See getHeight() for the details about what this value means.
|
See getHeight() for the details about what this value means.
|
||||||
*/
|
*/
|
||||||
void setHeight (const double newHeight) noexcept { h = newHeight; }
|
void setHeight (double newHeight) noexcept { h = newHeight; }
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** If the size and position are constance, and wouldn't be affected by changes
|
/** If the size and position are constance, and wouldn't be affected by changes
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
TestComponent (JucerDocument* const ownerDocument,
|
TestComponent (JucerDocument* const ownerDocument,
|
||||||
JucerDocument* const loadedDocument,
|
JucerDocument* const loadedDocument,
|
||||||
const bool alwaysFillBackground);
|
bool alwaysFillBackground);
|
||||||
|
|
||||||
~TestComponent() override;
|
~TestComponent() override;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,8 @@ public:
|
||||||
void clear();
|
void clear();
|
||||||
bool add (const String& name, const File& file);
|
bool add (const String& name, const File& file);
|
||||||
void add (const String& name, const String& originalFileName, const MemoryBlock& data);
|
void add (const String& name, const String& originalFileName, const MemoryBlock& data);
|
||||||
void remove (const int index);
|
void remove (int index);
|
||||||
bool reload (const int index);
|
bool reload (int index);
|
||||||
void browseForResource (const String& title, const String& wildcard,
|
void browseForResource (const String& title, const String& wildcard,
|
||||||
const File& fileToStartFrom, const String& resourceToReplace,
|
const File& fileToStartFrom, const String& resourceToReplace,
|
||||||
std::function<void (String)> callback);
|
std::function<void (String)> callback);
|
||||||
|
|
|
||||||
|
|
@ -50,20 +50,20 @@ public:
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void clearComponents();
|
void clearComponents();
|
||||||
void removeComponent (Component* comp, const bool undoable);
|
void removeComponent (Component* comp, bool undoable);
|
||||||
|
|
||||||
Component* addNewComponent (ComponentTypeHandler* const type, int x, int y);
|
Component* addNewComponent (ComponentTypeHandler* const type, int x, int y);
|
||||||
Component* addComponentFromXml (const XmlElement& xml, const bool undoable);
|
Component* addComponentFromXml (const XmlElement& xml, bool undoable);
|
||||||
|
|
||||||
Component* findComponentWithId (const int64 componentId) const;
|
Component* findComponentWithId (int64 componentId) const;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void componentToFront (Component* comp, const bool undoable);
|
void componentToFront (Component* comp, bool undoable);
|
||||||
void componentToBack (Component* comp, const bool undoable);
|
void componentToBack (Component* comp, bool undoable);
|
||||||
|
|
||||||
void setComponentPosition (Component* comp, const RelativePositionedRectangle& newPos, const bool undoable);
|
void setComponentPosition (Component* comp, const RelativePositionedRectangle& newPos, bool undoable);
|
||||||
void setComponentBoundsAndProperties (Component* comp, const Rectangle<int>& newBounds, Component* referenceComponent, const bool undoable);
|
void setComponentBoundsAndProperties (Component* comp, const Rectangle<int>& newBounds, Component* referenceComponent, bool undoable);
|
||||||
void updateStoredComponentPosition (Component* comp, const bool undoable);
|
void updateStoredComponentPosition (Component* comp, bool undoable);
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
Component* getComponentRelativePosTarget (Component* comp, int whichDimension) const;
|
Component* getComponentRelativePosTarget (Component* comp, int whichDimension) const;
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ public:
|
||||||
String& getCallbackCode (const String& requiredParentClass,
|
String& getCallbackCode (const String& requiredParentClass,
|
||||||
const String& returnType,
|
const String& returnType,
|
||||||
const String& prototype,
|
const String& prototype,
|
||||||
const bool hasPrePostUserSections);
|
bool hasPrePostUserSections);
|
||||||
|
|
||||||
void removeCallback (const String& returnType, const String& prototype);
|
void removeCallback (const String& returnType, const String& prototype);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ public:
|
||||||
String getVariableInitialisers() const { return variableInitialisers; }
|
String getVariableInitialisers() const { return variableInitialisers; }
|
||||||
void setVariableInitialisers (const String& newInitlialisers);
|
void setVariableInitialisers (const String& newInitlialisers);
|
||||||
|
|
||||||
void setFixedSize (const bool isFixed);
|
void setFixedSize (bool isFixed);
|
||||||
bool isFixedSize() const noexcept { return fixedSize; }
|
bool isFixedSize() const noexcept { return fixedSize; }
|
||||||
|
|
||||||
void setInitialSize (int w, int h);
|
void setInitialSize (int w, int h);
|
||||||
|
|
@ -94,9 +94,9 @@ public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
virtual int getNumPaintRoutines() const = 0;
|
virtual int getNumPaintRoutines() const = 0;
|
||||||
virtual StringArray getPaintRoutineNames() const = 0;
|
virtual StringArray getPaintRoutineNames() const = 0;
|
||||||
virtual PaintRoutine* getPaintRoutine (const int index) const = 0;
|
virtual PaintRoutine* getPaintRoutine (int index) const = 0;
|
||||||
virtual ComponentLayout* getComponentLayout() const = 0;
|
virtual ComponentLayout* getComponentLayout() const = 0;
|
||||||
virtual Component* createTestComponent (const bool alwaysFillBackground) = 0;
|
virtual Component* createTestComponent (bool alwaysFillBackground) = 0;
|
||||||
virtual void addExtraClassProperties (PropertyPanel&);
|
virtual void addExtraClassProperties (PropertyPanel&);
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
@ -105,23 +105,23 @@ public:
|
||||||
StringArray& methods,
|
StringArray& methods,
|
||||||
StringArray& initialContents) const;
|
StringArray& initialContents) const;
|
||||||
|
|
||||||
void setOptionalMethodEnabled (const String& methodSignature, const bool enable);
|
void setOptionalMethodEnabled (const String& methodSignature, bool enable);
|
||||||
bool isOptionalMethodEnabled (const String& methodSignature) const noexcept;
|
bool isOptionalMethodEnabled (const String& methodSignature) const noexcept;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
BinaryResources& getResources() noexcept { return resources; }
|
BinaryResources& getResources() noexcept { return resources; }
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void setSnappingGrid (const int numPixels, const bool active, const bool shown);
|
void setSnappingGrid (int numPixels, bool active, const bool shown);
|
||||||
|
|
||||||
int getSnappingGridSize() const noexcept { return snapGridPixels; }
|
int getSnappingGridSize() const noexcept { return snapGridPixels; }
|
||||||
bool isSnapActive (const bool disableIfCtrlKeyDown) const noexcept;
|
bool isSnapActive (bool disableIfCtrlKeyDown) const noexcept;
|
||||||
bool isSnapShown() const noexcept { return snapShown; }
|
bool isSnapShown() const noexcept { return snapShown; }
|
||||||
|
|
||||||
int snapPosition (int pos) const noexcept;
|
int snapPosition (int pos) const noexcept;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void setComponentOverlayOpacity (const float alpha);
|
void setComponentOverlayOpacity (float alpha);
|
||||||
float getComponentOverlayOpacity() const noexcept { return componentOverlayOpacity; }
|
float getComponentOverlayOpacity() const noexcept { return componentOverlayOpacity; }
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace ObjectTypes
|
||||||
extern const char* const* const elementTypeNames;
|
extern const char* const* const elementTypeNames;
|
||||||
extern const int numElementTypes;
|
extern const int numElementTypes;
|
||||||
|
|
||||||
PaintElement* createNewElement (const int index, PaintRoutine* owner);
|
PaintElement* createNewElement (int index, PaintRoutine* owner);
|
||||||
PaintElement* createNewImageElement (PaintRoutine* owner);
|
PaintElement* createNewImageElement (PaintRoutine* owner);
|
||||||
PaintElement* createElementForXml (const XmlElement* const e, PaintRoutine* const owner);
|
PaintElement* createElementForXml (const XmlElement* const e, PaintRoutine* const owner);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ public:
|
||||||
void getCommandInfo (CommandID, ApplicationCommandInfo&) override;
|
void getCommandInfo (CommandID, ApplicationCommandInfo&) override;
|
||||||
bool perform (const InvocationInfo&) override;
|
bool perform (const InvocationInfo&) override;
|
||||||
|
|
||||||
bool isSaveCommand (const CommandID id);
|
bool isSaveCommand (CommandID);
|
||||||
|
|
||||||
void paint (Graphics&) override;
|
void paint (Graphics&) override;
|
||||||
void resized() override;
|
void resized() override;
|
||||||
|
|
@ -125,7 +125,7 @@ private:
|
||||||
void showTranslationTool();
|
void showTranslationTool();
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void showProjectPanel (const int index);
|
void showProjectPanel (int index);
|
||||||
bool canSelectedProjectBeLaunch();
|
bool canSelectedProjectBeLaunch();
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
|
||||||
|
|
@ -77,8 +77,8 @@ public:
|
||||||
ProgressBar::Style getDefaultProgressBarStyle (const ProgressBar&) override;
|
ProgressBar::Style getDefaultProgressBarStyle (const ProgressBar&) override;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
static Path getArrowPath (Rectangle<float> arrowZone, const int direction,
|
static Path getArrowPath (Rectangle<float> arrowZone, int direction,
|
||||||
const bool filled, const Justification justification);
|
bool filled, Justification justification);
|
||||||
static Path getChoiceComponentArrowPath (Rectangle<float> arrowZone);
|
static Path getChoiceComponentArrowPath (Rectangle<float> arrowZone);
|
||||||
|
|
||||||
static Font getPropertyComponentFont() { return { 14.0f, Font::FontStyleFlags::bold }; }
|
static Font getPropertyComponentFont() { return { 14.0f, Font::FontStyleFlags::bold }; }
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@ public:
|
||||||
public:
|
public:
|
||||||
inline NonInterleaved() = default;
|
inline NonInterleaved() = default;
|
||||||
inline NonInterleaved (const NonInterleaved&) = default;
|
inline NonInterleaved (const NonInterleaved&) = default;
|
||||||
inline NonInterleaved (const int) noexcept {}
|
inline NonInterleaved (int) noexcept {}
|
||||||
inline void copyFrom (const NonInterleaved&) noexcept {}
|
inline void copyFrom (const NonInterleaved&) noexcept {}
|
||||||
template <class SampleFormatType> inline void advanceData (SampleFormatType& s) noexcept { s.advance(); }
|
template <class SampleFormatType> inline void advanceData (SampleFormatType& s) noexcept { s.advance(); }
|
||||||
template <class SampleFormatType> inline void advanceDataBy (SampleFormatType& s, int numSamples) noexcept { s.skip (numSamples); }
|
template <class SampleFormatType> inline void advanceDataBy (SampleFormatType& s, int numSamples) noexcept { s.skip (numSamples); }
|
||||||
|
|
|
||||||
|
|
@ -134,15 +134,15 @@ private:
|
||||||
std::byte byte2;
|
std::byte byte2;
|
||||||
};
|
};
|
||||||
|
|
||||||
static PacketX2 processNoteOnOrOff (const HelperValues helpers);
|
static PacketX2 processNoteOnOrOff (HelperValues helpers);
|
||||||
static PacketX2 processPolyPressure (const HelperValues helpers);
|
static PacketX2 processPolyPressure (HelperValues helpers);
|
||||||
|
|
||||||
bool processControlChange (const HelperValues helpers, PacketX2& packet);
|
bool processControlChange (HelperValues helpers, PacketX2& packet);
|
||||||
|
|
||||||
PacketX2 processProgramChange (const HelperValues helpers) const;
|
PacketX2 processProgramChange (HelperValues helpers) const;
|
||||||
|
|
||||||
static PacketX2 processChannelPressure (const HelperValues helpers);
|
static PacketX2 processChannelPressure (HelperValues helpers);
|
||||||
static PacketX2 processPitchBend (const HelperValues helpers);
|
static PacketX2 processPitchBend (HelperValues helpers);
|
||||||
|
|
||||||
class PnAccumulator
|
class PnAccumulator
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ public:
|
||||||
|
|
||||||
This is useful for offline rendering.
|
This is useful for offline rendering.
|
||||||
*/
|
*/
|
||||||
bool waitForNextAudioBlockReady (const AudioSourceChannelInfo& info, const uint32 timeout);
|
bool waitForNextAudioBlockReady (const AudioSourceChannelInfo& info, uint32 timeout);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ public:
|
||||||
// to store the plug-in list at a point in time and use it when calling these methods.
|
// to store the plug-in list at a point in time and use it when calling these methods.
|
||||||
[[deprecated]] void addToMenu (PopupMenu& menu, SortMethod sortMethod, const String& currentlyTickedPluginID = {}) const;
|
[[deprecated]] void addToMenu (PopupMenu& menu, SortMethod sortMethod, const String& currentlyTickedPluginID = {}) const;
|
||||||
[[deprecated]] int getIndexChosenByMenu (int menuResultCode) const;
|
[[deprecated]] int getIndexChosenByMenu (int menuResultCode) const;
|
||||||
[[deprecated]] std::unique_ptr<PluginTree> createTree (const SortMethod sortMethod) const;
|
[[deprecated]] std::unique_ptr<PluginTree> createTree (SortMethod sortMethod) const;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ public:
|
||||||
|
|
||||||
The deviceIndex is an index into the array returned by findAvailableDevices().
|
The deviceIndex is an index into the array returned by findAvailableDevices().
|
||||||
*/
|
*/
|
||||||
static AudioCDBurner* openDevice (const int deviceIndex);
|
static AudioCDBurner* openDevice (int deviceIndex);
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
~AudioCDBurner();
|
~AudioCDBurner();
|
||||||
|
|
@ -158,7 +158,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
AudioCDBurner (const int deviceIndex);
|
AudioCDBurner (int deviceIndex);
|
||||||
|
|
||||||
class Pimpl;
|
class Pimpl;
|
||||||
std::unique_ptr<Pimpl> pimpl;
|
std::unique_ptr<Pimpl> pimpl;
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ public:
|
||||||
@returns a new AudioCDReader object, or nullptr if it couldn't be created. The
|
@returns a new AudioCDReader object, or nullptr if it couldn't be created. The
|
||||||
caller will be responsible for deleting the object returned.
|
caller will be responsible for deleting the object returned.
|
||||||
*/
|
*/
|
||||||
static AudioCDReader* createReaderForCD (const int index);
|
static AudioCDReader* createReaderForCD (int index);
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
|
|
@ -126,7 +126,7 @@ public:
|
||||||
@returns an array of sample positions of any index points found (not including
|
@returns an array of sample positions of any index points found (not including
|
||||||
the index that marks the start of the track)
|
the index that marks the start of the track)
|
||||||
*/
|
*/
|
||||||
Array<int> findIndexesInTrack (const int trackNumber);
|
Array<int> findIndexesInTrack (int trackNumber);
|
||||||
|
|
||||||
/** Returns the CDDB id number for the CD.
|
/** Returns the CDDB id number for the CD.
|
||||||
It's not a great way of identifying a disc, but it's traditional.
|
It's not a great way of identifying a disc, but it's traditional.
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public:
|
||||||
@param initialSize the size of block to create
|
@param initialSize the size of block to create
|
||||||
@param initialiseToZero whether to clear the memory or just leave it uninitialised
|
@param initialiseToZero whether to clear the memory or just leave it uninitialised
|
||||||
*/
|
*/
|
||||||
MemoryBlock (const size_t initialSize,
|
MemoryBlock (size_t initialSize,
|
||||||
bool initialiseToZero = false);
|
bool initialiseToZero = false);
|
||||||
|
|
||||||
/** Creates a copy of another memory block. */
|
/** Creates a copy of another memory block. */
|
||||||
|
|
@ -138,7 +138,7 @@ public:
|
||||||
uninitialised
|
uninitialised
|
||||||
@see ensureSize
|
@see ensureSize
|
||||||
*/
|
*/
|
||||||
void setSize (const size_t newSize,
|
void setSize (size_t newSize,
|
||||||
bool initialiseNewSpaceToZero = false);
|
bool initialiseNewSpaceToZero = false);
|
||||||
|
|
||||||
/** Increases the block's size only if it's smaller than a given size.
|
/** Increases the block's size only if it's smaller than a given size.
|
||||||
|
|
@ -150,7 +150,7 @@ public:
|
||||||
uninitialised
|
uninitialised
|
||||||
@see setSize
|
@see setSize
|
||||||
*/
|
*/
|
||||||
void ensureSize (const size_t minimumSize,
|
void ensureSize (size_t minimumSize,
|
||||||
bool initialiseNewSpaceToZero = false);
|
bool initialiseNewSpaceToZero = false);
|
||||||
|
|
||||||
/** Frees all the blocks data, setting its size to 0. */
|
/** Frees all the blocks data, setting its size to 0. */
|
||||||
|
|
|
||||||
|
|
@ -568,7 +568,8 @@ Time& Time::operator-= (RelativeTime delta) noexcept { millisSinceEpoc
|
||||||
Time operator+ (Time time, RelativeTime delta) noexcept { Time t (time); return t += delta; }
|
Time operator+ (Time time, RelativeTime delta) noexcept { Time t (time); return t += delta; }
|
||||||
Time operator- (Time time, RelativeTime delta) noexcept { Time t (time); return t -= delta; }
|
Time operator- (Time time, RelativeTime delta) noexcept { Time t (time); return t -= delta; }
|
||||||
Time operator+ (RelativeTime delta, Time time) noexcept { Time t (time); return t += delta; }
|
Time operator+ (RelativeTime delta, Time time) noexcept { Time t (time); return t += delta; }
|
||||||
const RelativeTime operator- (Time time1, Time time2) noexcept { return RelativeTime::milliseconds (time1.toMilliseconds() - time2.toMilliseconds()); }
|
|
||||||
|
RelativeTime operator- (Time time1, Time time2) noexcept { return RelativeTime::milliseconds (time1.toMilliseconds() - time2.toMilliseconds()); }
|
||||||
|
|
||||||
bool operator== (Time time1, Time time2) noexcept { return time1.toMilliseconds() == time2.toMilliseconds(); }
|
bool operator== (Time time1, Time time2) noexcept { return time1.toMilliseconds() == time2.toMilliseconds(); }
|
||||||
bool operator!= (Time time1, Time time2) noexcept { return time1.toMilliseconds() != time2.toMilliseconds(); }
|
bool operator!= (Time time1, Time time2) noexcept { return time1.toMilliseconds() != time2.toMilliseconds(); }
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@ JUCE_API Time operator+ (RelativeTime delta, Time time) noexcept;
|
||||||
/** Subtracts a RelativeTime from a Time. */
|
/** Subtracts a RelativeTime from a Time. */
|
||||||
JUCE_API Time operator- (Time time, RelativeTime delta) noexcept;
|
JUCE_API Time operator- (Time time, RelativeTime delta) noexcept;
|
||||||
/** Returns the relative time difference between two times. */
|
/** Returns the relative time difference between two times. */
|
||||||
JUCE_API const RelativeTime operator- (Time time1, Time time2) noexcept;
|
JUCE_API RelativeTime operator- (Time time1, Time time2) noexcept;
|
||||||
|
|
||||||
/** Compares two Time objects. */
|
/** Compares two Time objects. */
|
||||||
JUCE_API bool operator== (Time time1, Time time2) noexcept;
|
JUCE_API bool operator== (Time time1, Time time2) noexcept;
|
||||||
|
|
|
||||||
|
|
@ -469,7 +469,7 @@ public:
|
||||||
By default a Graphics object will be set to mediumRenderingQuality.
|
By default a Graphics object will be set to mediumRenderingQuality.
|
||||||
@see Graphics::drawImage, Graphics::drawImageTransformed, Graphics::drawImageWithin
|
@see Graphics::drawImage, Graphics::drawImageTransformed, Graphics::drawImageWithin
|
||||||
*/
|
*/
|
||||||
void setImageResamplingQuality (const ResamplingQuality newQuality);
|
void setImageResamplingQuality (ResamplingQuality newQuality);
|
||||||
|
|
||||||
/** Draws an image.
|
/** Draws an image.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ public:
|
||||||
void fillRectList (const RectangleList<float>&) override;
|
void fillRectList (const RectangleList<float>&) override;
|
||||||
void fillPath (const Path&, const AffineTransform&) override;
|
void fillPath (const Path&, const AffineTransform&) override;
|
||||||
void drawImage (const Image&, const AffineTransform&) override;
|
void drawImage (const Image&, const AffineTransform&) override;
|
||||||
void drawLine (const Line <float>&) override;
|
void drawLine (const Line<float>&) override;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
const Font& getFont() override;
|
const Font& getFont() override;
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ private:
|
||||||
OwnedArray<GlyphInfo> glyphs;
|
OwnedArray<GlyphInfo> glyphs;
|
||||||
short lookupTable[128];
|
short lookupTable[128];
|
||||||
|
|
||||||
GlyphInfo* findGlyph (const juce_wchar character, bool loadIfNeeded) noexcept;
|
GlyphInfo* findGlyph (juce_wchar character, bool loadIfNeeded) noexcept;
|
||||||
|
|
||||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CustomTypeface)
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CustomTypeface)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -575,9 +575,9 @@ public:
|
||||||
*/
|
*/
|
||||||
void addBubble (Rectangle<float> bodyArea,
|
void addBubble (Rectangle<float> bodyArea,
|
||||||
Rectangle<float> maximumArea,
|
Rectangle<float> maximumArea,
|
||||||
const Point<float> arrowTipPosition,
|
Point<float> arrowTipPosition,
|
||||||
const float cornerSize,
|
float cornerSize,
|
||||||
const float arrowBaseWidth);
|
float arrowBaseWidth);
|
||||||
|
|
||||||
/** Adds another path to this one.
|
/** Adds another path to this one.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ public:
|
||||||
struct JUCE_API InvocationInfo
|
struct JUCE_API InvocationInfo
|
||||||
{
|
{
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
InvocationInfo (const CommandID commandID);
|
InvocationInfo (CommandID commandID);
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** The UID of the command that should be performed. */
|
/** The UID of the command that should be performed. */
|
||||||
|
|
@ -195,15 +195,15 @@ public:
|
||||||
@see perform, ApplicationCommandManager::invoke
|
@see perform, ApplicationCommandManager::invoke
|
||||||
*/
|
*/
|
||||||
bool invoke (const InvocationInfo& invocationInfo,
|
bool invoke (const InvocationInfo& invocationInfo,
|
||||||
const bool asynchronously);
|
bool asynchronously);
|
||||||
|
|
||||||
/** Invokes a given command directly on this target.
|
/** Invokes a given command directly on this target.
|
||||||
|
|
||||||
This is just an easy way to call invoke() without having to fill out the InvocationInfo
|
This is just an easy way to call invoke() without having to fill out the InvocationInfo
|
||||||
structure.
|
structure.
|
||||||
*/
|
*/
|
||||||
bool invokeDirectly (const CommandID commandID,
|
bool invokeDirectly (CommandID commandID,
|
||||||
const bool asynchronously);
|
bool asynchronously);
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Searches this target and all subsequent ones for the first one that can handle
|
/** Searches this target and all subsequent ones for the first one that can handle
|
||||||
|
|
@ -212,14 +212,14 @@ public:
|
||||||
This will use getNextCommandTarget() to determine the chain of targets to try
|
This will use getNextCommandTarget() to determine the chain of targets to try
|
||||||
after this one.
|
after this one.
|
||||||
*/
|
*/
|
||||||
ApplicationCommandTarget* getTargetForCommand (const CommandID commandID);
|
ApplicationCommandTarget* getTargetForCommand (CommandID commandID);
|
||||||
|
|
||||||
/** Checks whether this command can currently be performed by this target.
|
/** Checks whether this command can currently be performed by this target.
|
||||||
|
|
||||||
This will return true only if a call to getCommandInfo() doesn't set the
|
This will return true only if a call to getCommandInfo() doesn't set the
|
||||||
isDisabled flag to indicate that the command is inactive.
|
isDisabled flag to indicate that the command is inactive.
|
||||||
*/
|
*/
|
||||||
bool isCommandActive (const CommandID commandID);
|
bool isCommandActive (CommandID commandID);
|
||||||
|
|
||||||
/** If this object is a Component, this method will search upwards in its current
|
/** If this object is a Component, this method will search upwards in its current
|
||||||
UI hierarchy for the next parent component that implements the
|
UI hierarchy for the next parent component that implements the
|
||||||
|
|
|
||||||
|
|
@ -234,8 +234,8 @@ private:
|
||||||
|
|
||||||
OwnedArray<KeyPressTime> keysDown;
|
OwnedArray<KeyPressTime> keysDown;
|
||||||
|
|
||||||
void invokeCommand (const CommandID, const KeyPress&, const bool isKeyDown,
|
void invokeCommand (CommandID, const KeyPress&, bool isKeyDown,
|
||||||
const int millisecsSinceKeyPressed, Component* originator) const;
|
int millisecsSinceKeyPressed, Component* originator) const;
|
||||||
|
|
||||||
KeyPressMappingSet& operator= (const KeyPressMappingSet&);
|
KeyPressMappingSet& operator= (const KeyPressMappingSet&);
|
||||||
JUCE_LEAK_DETECTOR (KeyPressMappingSet)
|
JUCE_LEAK_DETECTOR (KeyPressMappingSet)
|
||||||
|
|
|
||||||
|
|
@ -2626,7 +2626,7 @@ private:
|
||||||
void internalMouseEnter (MouseInputSource, Point<float>, Time);
|
void internalMouseEnter (MouseInputSource, Point<float>, Time);
|
||||||
void internalMouseExit (MouseInputSource, Point<float>, Time);
|
void internalMouseExit (MouseInputSource, Point<float>, Time);
|
||||||
void internalMouseDown (MouseInputSource, const detail::PointerState&, Time);
|
void internalMouseDown (MouseInputSource, const detail::PointerState&, Time);
|
||||||
void internalMouseUp (MouseInputSource, const detail::PointerState&, Time, const ModifierKeys oldModifiers);
|
void internalMouseUp (MouseInputSource, const detail::PointerState&, Time, ModifierKeys oldModifiers);
|
||||||
void internalMouseDrag (MouseInputSource, const detail::PointerState&, Time);
|
void internalMouseDrag (MouseInputSource, const detail::PointerState&, Time);
|
||||||
void internalMouseMove (MouseInputSource, Point<float>, Time);
|
void internalMouseMove (MouseInputSource, Point<float>, Time);
|
||||||
void internalMouseWheel (MouseInputSource, Point<float>, Time, const MouseWheelDetails&);
|
void internalMouseWheel (MouseInputSource, Point<float>, Time, const MouseWheelDetails&);
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
int getSliderThumbRadius (Slider&) override;
|
int getSliderThumbRadius (Slider&) override;
|
||||||
Button* createSliderButton (Slider&, bool isIncrement) override;
|
Button* createSliderButton (Slider&, bool isIncrement) override;
|
||||||
|
|
|
||||||
|
|
@ -243,19 +243,19 @@ public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
void drawLinearSliderBackground (Graphics&, int x, int y, int width, int height,
|
void drawLinearSliderBackground (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
void drawLinearSliderOutline (Graphics&, int x, int y, int width, int height,
|
void drawLinearSliderOutline (Graphics&, int x, int y, int width, int height,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
|
|
||||||
void drawLinearSliderThumb (Graphics&, int x, int y, int width, int height,
|
void drawLinearSliderThumb (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
void drawRotarySlider (Graphics&, int x, int y, int width, int height,
|
void drawRotarySlider (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle,
|
float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle,
|
||||||
|
|
|
||||||
|
|
@ -76,11 +76,11 @@ public:
|
||||||
|
|
||||||
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
void drawLinearSliderBackground (Graphics&, int x, int y, int width, int height,
|
void drawLinearSliderBackground (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
void drawConcertinaPanelHeader (Graphics&, const Rectangle<int>& area, bool isMouseOver, bool isMouseDown,
|
void drawConcertinaPanelHeader (Graphics&, const Rectangle<int>& area, bool isMouseOver, bool isMouseDown,
|
||||||
ConcertinaPanel&, Component&) override;
|
ConcertinaPanel&, Component&) override;
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ public:
|
||||||
|
|
||||||
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
void drawLinearSlider (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPos, float minSliderPos, float maxSliderPos,
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
||||||
const Slider::SliderStyle, Slider&) override;
|
Slider::SliderStyle, Slider&) override;
|
||||||
|
|
||||||
void drawRotarySlider (Graphics&, int x, int y, int width, int height,
|
void drawRotarySlider (Graphics&, int x, int y, int width, int height,
|
||||||
float sliderPosProportional, float rotaryStartAngle,
|
float sliderPosProportional, float rotaryStartAngle,
|
||||||
|
|
|
||||||
|
|
@ -924,7 +924,7 @@ public:
|
||||||
float sliderPos,
|
float sliderPos,
|
||||||
float minSliderPos,
|
float minSliderPos,
|
||||||
float maxSliderPos,
|
float maxSliderPos,
|
||||||
const Slider::SliderStyle,
|
Slider::SliderStyle,
|
||||||
Slider&) = 0;
|
Slider&) = 0;
|
||||||
|
|
||||||
virtual void drawLinearSliderBackground (Graphics&,
|
virtual void drawLinearSliderBackground (Graphics&,
|
||||||
|
|
@ -932,12 +932,12 @@ public:
|
||||||
float sliderPos,
|
float sliderPos,
|
||||||
float minSliderPos,
|
float minSliderPos,
|
||||||
float maxSliderPos,
|
float maxSliderPos,
|
||||||
const Slider::SliderStyle style,
|
Slider::SliderStyle,
|
||||||
Slider&) = 0;
|
Slider&) = 0;
|
||||||
|
|
||||||
virtual void drawLinearSliderOutline (Graphics&,
|
virtual void drawLinearSliderOutline (Graphics&,
|
||||||
int x, int y, int width, int height,
|
int x, int y, int width, int height,
|
||||||
const Slider::SliderStyle,
|
Slider::SliderStyle,
|
||||||
Slider&) = 0;
|
Slider&) = 0;
|
||||||
|
|
||||||
virtual void drawLinearSliderThumb (Graphics&,
|
virtual void drawLinearSliderThumb (Graphics&,
|
||||||
|
|
@ -945,7 +945,7 @@ public:
|
||||||
float sliderPos,
|
float sliderPos,
|
||||||
float minSliderPos,
|
float minSliderPos,
|
||||||
float maxSliderPos,
|
float maxSliderPos,
|
||||||
const Slider::SliderStyle,
|
Slider::SliderStyle,
|
||||||
Slider&) = 0;
|
Slider&) = 0;
|
||||||
|
|
||||||
virtual int getSliderThumbRadius (Slider&) = 0;
|
virtual int getSliderThumbRadius (Slider&) = 0;
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ public:
|
||||||
This is used by the ToolbarItemPalette and related classes for making the items draggable,
|
This is used by the ToolbarItemPalette and related classes for making the items draggable,
|
||||||
and is unlikely to be of much use in end-user-code.
|
and is unlikely to be of much use in end-user-code.
|
||||||
*/
|
*/
|
||||||
void setEditingMode (const ToolbarEditingMode newMode);
|
void setEditingMode (ToolbarEditingMode newMode);
|
||||||
|
|
||||||
/** Returns the current editing mode of this component.
|
/** Returns the current editing mode of this component.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ public:
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void swapBuffers() const noexcept { eglSwapBuffers (display, surface.get()); }
|
void swapBuffers() const noexcept { eglSwapBuffers (display, surface.get()); }
|
||||||
bool setSwapInterval (const int) { return false; }
|
bool setSwapInterval (int) { return false; }
|
||||||
int getSwapInterval() const { return 0; }
|
int getSwapInterval() const { return 0; }
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,8 @@ public:
|
||||||
This method does not check the range and results in undefined behaviour
|
This method does not check the range and results in undefined behaviour
|
||||||
in case i < 0 or i >= size().
|
in case i < 0 or i >= size().
|
||||||
*/
|
*/
|
||||||
OSCArgument& operator[] (const int i) noexcept;
|
OSCArgument& operator[] (int i) noexcept;
|
||||||
const OSCArgument& operator[] (const int i) const noexcept;
|
const OSCArgument& operator[] (int i) const noexcept;
|
||||||
|
|
||||||
/** Returns a pointer to the first OSCArgument in the OSCMessage object.
|
/** Returns a pointer to the first OSCArgument in the OSCMessage object.
|
||||||
This method is provided for compatibility with standard C++ iteration mechanisms.
|
This method is provided for compatibility with standard C++ iteration mechanisms.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue