73 bool escapeKeyTriggersCloseButton,
74 bool addToDesktop =
true,
75 float desktopScale = 1.0f);
97 Colour dialogBackgroundColour = Colours::lightgrey;
113 bool escapeKeyTriggersCloseButton =
true;
115 bool useNativeTitleBar =
true;
117 bool resizable =
true;
119 bool useBottomRightCornerResizer =
false;
145 #if JUCE_MODAL_LOOPS_PERMITTED
196 static void showDialog (
const String& dialogTitle,
200 bool escapeKeyTriggersCloseButton,
201 bool shouldBeResizable =
false,
202 bool useBottomRightCornerResizer =
false);
204 #if JUCE_MODAL_LOOPS_PERMITTED
242 static int showModalDialog (
const String& dialogTitle,
246 bool escapeKeyTriggersCloseButton,
247 bool shouldBeResizable =
false,
248 bool useBottomRightCornerResizer =
false);
256 virtual bool escapeKeyPressed();
264 void resized()
override;
266 bool keyPressed (
const KeyPress&)
override;
268 float getDesktopScaleFactor()
const override {
return desktopScale * Desktop::getInstance().getGlobalScaleFactor(); }
271 float desktopScale = 1.0f;
272 bool escapeKeyTriggersCloseButton;
Represents a colour, also including a transparency value.
The base class for all JUCE user-interface objects.
A dialog-box style window.
~DialogWindow() override
Destructor.
float getDesktopScaleFactor() const override
Returns the default scale factor to use for this component when it is placed on the desktop.
A resizable window with a title bar and maximise, minimise and close buttons.
Represents a key press, including any modifier keys that are needed.
Holds a pointer to an object which can optionally be deleted when this pointer goes out of scope.
This class defines a collection of settings to be used to open a DialogWindow.
OptionalScopedPointer< Component > content
The content component to show in the window.
String dialogTitle
The title to give the window.