openshot-audio  0.1.5
juce_DialogWindow.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission is granted to use this software under the terms of either:
8  a) the GPL v2 (or any later version)
9  b) the Affero GPL v3
10 
11  Details of these licenses can be found at: www.gnu.org/licenses
12 
13  JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17  ------------------------------------------------------------------------------
18 
19  To release a closed-source product which uses JUCE, commercial licenses are
20  available: visit www.juce.com for more information.
21 
22  ==============================================================================
23 */
24 
25 #ifndef JUCE_DIALOGWINDOW_H_INCLUDED
26 #define JUCE_DIALOGWINDOW_H_INCLUDED
27 
28 
29 //==============================================================================
50 {
51 public:
52  //==============================================================================
64  DialogWindow (const String& name,
65  Colour backgroundColour,
66  bool escapeKeyTriggersCloseButton,
67  bool addToDesktop = true);
68 
72  ~DialogWindow();
73 
74  //==============================================================================
82  {
84 
87 
90 
97 
103 
109  bool resizable;
112 
129  DialogWindow* launchAsync();
130 
135  DialogWindow* create();
136 
137  #if JUCE_MODAL_LOOPS_PERMITTED || DOXYGEN
138 
144  int runModal();
145  #endif
146  };
147 
148  //==============================================================================
186  static void showDialog (const String& dialogTitle,
187  Component* contentComponent,
188  Component* componentToCentreAround,
189  Colour backgroundColour,
190  bool escapeKeyTriggersCloseButton,
191  bool shouldBeResizable = false,
192  bool useBottomRightCornerResizer = false);
193 
194  #if JUCE_MODAL_LOOPS_PERMITTED || DOXYGEN
195 
232  static int showModalDialog (const String& dialogTitle,
233  Component* contentComponent,
234  Component* componentToCentreAround,
235  Colour backgroundColour,
236  bool escapeKeyTriggersCloseButton,
237  bool shouldBeResizable = false,
238  bool useBottomRightCornerResizer = false);
239  #endif
240 
241 
242 protected:
243  //==============================================================================
245  void resized() override;
247  bool keyPressed (const KeyPress&) override;
248 
249 private:
250  bool escapeKeyTriggersCloseButton;
251 
253 };
254 
255 #endif // JUCE_DIALOGWINDOW_H_INCLUDED
bool resizable
Definition: juce_DialogWindow.h:109
Definition: juce_KeyPress.h:37
#define noexcept
Definition: juce_CompilerSupport.h:141
Component * componentToCentreAround
Definition: juce_DialogWindow.h:102
bool useBottomRightCornerResizer
Definition: juce_DialogWindow.h:111
bool escapeKeyTriggersCloseButton
Definition: juce_DialogWindow.h:105
Definition: juce_DialogWindow.h:49
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_Colour.h:35
Definition: juce_DialogWindow.h:81
Definition: juce_Component.h:33
String dialogTitle
Definition: juce_DialogWindow.h:86
Definition: juce_DocumentWindow.h:52
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
Definition: juce_PlatformDefs.h:198
Colour dialogBackgroundColour
Definition: juce_DialogWindow.h:89
bool useNativeTitleBar
Definition: juce_DialogWindow.h:107
OptionalScopedPointer< Component > content
Definition: juce_DialogWindow.h:96