mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Cleaned up some obscure compiler warnings and added some JSON unit tests.
This commit is contained in:
parent
796247483a
commit
2009753eac
41 changed files with 298 additions and 178 deletions
|
|
@ -65,18 +65,18 @@ class TempDialogWindow : public DialogWindow
|
|||
{
|
||||
public:
|
||||
TempDialogWindow (const String& title,
|
||||
Component* contentComponent,
|
||||
Component* contentComponent_,
|
||||
Component* componentToCentreAround,
|
||||
const Colour& colour,
|
||||
const bool escapeKeyTriggersCloseButton,
|
||||
const bool escapeKeyTriggersCloseButton_,
|
||||
const bool shouldBeResizable,
|
||||
const bool useBottomRightCornerResizer)
|
||||
: DialogWindow (title, colour, escapeKeyTriggersCloseButton, true)
|
||||
: DialogWindow (title, colour, escapeKeyTriggersCloseButton_, true)
|
||||
{
|
||||
if (! JUCEApplication::isStandaloneApp())
|
||||
setAlwaysOnTop (true); // for a plugin, make it always-on-top because the host windows are often top-level
|
||||
|
||||
setContentNonOwned (contentComponent, true);
|
||||
setContentNonOwned (contentComponent_, true);
|
||||
centreAroundComponent (componentToCentreAround, getWidth(), getHeight());
|
||||
setResizable (shouldBeResizable, useBottomRightCornerResizer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue