LMMS
Loading...
Searching...
No Matches
juce_FileChooserDialogBox.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
73{
74public:
75 //==============================================================================
97 const String& instructions,
98 FileBrowserComponent& browserComponent,
100 Colour backgroundColour,
101 Component* parentComponent = nullptr);
102
104 ~FileChooserDialogBox() override;
105
106 //==============================================================================
107 #if JUCE_MODAL_LOOPS_PERMITTED
115 bool show (int width = 0, int height = 0);
116
124 bool showAt (int x, int y, int width, int height);
125 #endif
126
130 void centreWithDefaultSize (Component* componentToCentreAround = nullptr);
131
132 //==============================================================================
141 {
142 titleTextColourId = 0x1000850,
143 };
144
145private:
146 class ContentComponent;
149
150 void closeButtonPressed();
151 void selectionChanged() override;
152 void fileClicked (const File&, const MouseEvent&) override;
153 void fileDoubleClicked (const File&) override;
154 void browserRootChanged (const File&) override;
155 int getDefaultWidth() const;
156
157 void okButtonPressed();
158 void createNewFolder();
160
163
165};
166
167} // namespace juce
Definition juce_Colour.h:38
Definition juce_Component.h:2287
Definition juce_Component.h:36
Component * parentComponent
Definition juce_Component.h:2535
Definition juce_FileBrowserComponent.h:45
Definition juce_FileBrowserListener.h:38
Definition juce_FileChooserDialogBox.cpp:30
int getDefaultWidth() const
Definition juce_FileChooserDialogBox.cpp:154
ContentComponent * content
Definition juce_FileChooserDialogBox.h:147
void centreWithDefaultSize(Component *componentToCentreAround=nullptr)
Definition juce_FileChooserDialogBox.cpp:149
void closeButtonPressed()
Definition juce_FileChooserDialogBox.cpp:163
void fileDoubleClicked(const File &) override
Definition juce_FileChooserDialogBox.cpp:176
const bool warnAboutOverwritingExistingFiles
Definition juce_FileChooserDialogBox.h:148
void createNewFolderConfirmed(const String &name)
Definition juce_FileChooserDialogBox.cpp:245
ColourIds
Definition juce_FileChooserDialogBox.h:141
@ titleTextColourId
Definition juce_FileChooserDialogBox.h:142
static void createNewFolderCallback(int result, FileChooserDialogBox *, Component::SafePointer< AlertWindow >)
Definition juce_FileChooserDialogBox.cpp:214
FileChooserDialogBox(const String &title, const String &instructions, FileBrowserComponent &browserComponent, bool warnAboutOverwritingExistingFiles, Colour backgroundColour, Component *parentComponent=nullptr)
Definition juce_FileChooserDialogBox.cpp:92
void createNewFolder()
Definition juce_FileChooserDialogBox.cpp:224
void okButtonPressed()
Definition juce_FileChooserDialogBox.cpp:191
static void okToOverwriteFileCallback(int result, FileChooserDialogBox *)
Definition juce_FileChooserDialogBox.cpp:185
void selectionChanged() override
Definition juce_FileChooserDialogBox.cpp:168
void browserRootChanged(const File &) override
Definition juce_FileChooserDialogBox.cpp:183
void fileClicked(const File &, const MouseEvent &) override
Definition juce_FileChooserDialogBox.cpp:182
Definition juce_File.h:45
Definition juce_MouseEvent.h:39
ResizableWindow(const String &name, bool addToDesktop)
Definition juce_ResizableWindow.cpp:29
Definition juce_String.h:53
int y
Definition inflate.c:1588
unsigned x[BMAX+1]
Definition inflate.c:1586
static const char * title
Definition pugl.h:1747
static const char * name
Definition pugl.h:1582
static int int height
Definition pugl.h:1594
static int width
Definition pugl.h:1593
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
int result
Definition process.c:1455