openshot-audio
0.1.6
|
#include <juce_FileSearchPathListComponent.h>
Public Types | |
enum | ColourIds { backgroundColourId = 0x1004100 } |
![]() | |
enum | FocusChangeType { focusChangedByMouseClick, focusChangedByTabKey, focusChangedDirectly } |
Additional Inherited Members | |
![]() | |
static Component *JUCE_CALLTYPE | getCurrentlyFocusedComponent () noexcept |
static void JUCE_CALLTYPE | unfocusAllComponents () |
static void JUCE_CALLTYPE | beginDragAutoRepeat (int millisecondsBetweenCallbacks) |
static bool JUCE_CALLTYPE | isMouseButtonDownAnywhere () noexcept |
static int JUCE_CALLTYPE | getNumCurrentlyModalComponents () noexcept |
static Component *JUCE_CALLTYPE | getCurrentlyModalComponent (int index=0) noexcept |
![]() | |
virtual ComponentPeer * | createNewPeer (int styleFlags, void *nativeWindowToAttachTo) |
![]() | |
SettableTooltipClient () | |
Shows a set of file paths in a list, allowing them to be added, removed or re-ordered.
A set of colour IDs to use to change the colour of various aspects of the label.
These constants can be used either via the Component::setColour(), or LookAndFeel::setColour() methods.
Enumerator | |
---|---|
backgroundColourId | The background colour to fill the component with. Make this transparent if you don't want the background to be filled. |
FileSearchPathListComponent::FileSearchPathListComponent | ( | ) |
Creates an empty FileSearchPathListComponent.
FileSearchPathListComponent::~FileSearchPathListComponent | ( | ) |
Destructor.
|
overridevirtual |
Called when the button is clicked.
Implements Button::Listener.
|
overridevirtual |
Override this to be informed when the delete key is pressed.
If no rows are selected when they press the key, this won't be called.
lastRowSelected | the last row that had been selected when they pressed the key - if there are multiple selections, this might not be very useful |
Reimplemented from ListBoxModel.
|
overridevirtual |
Callback to indicate that the user has dropped the files onto this component.
When the user drops the files, this get called, and you can use the files in whatever way is appropriate.
Note that after this is called, the fileDragExit method may not be called, so you should clean up in here if there's anything you need to do when the drag finishes.
files | the set of (absolute) pathnames of the files that the user is dragging |
x | the mouse x position, relative to this component |
y | the mouse y position, relative to this component |
Implements FileDragAndDropTarget.
|
overridevirtual |
This has to return the number of items in the list.
Implements ListBoxModel.
|
inlinenoexcept |
Returns the path as it is currently shown.
|
overridevirtual |
Callback to check whether this target is interested in the set of files being offered.
Note that this will be called repeatedly when the user is dragging the mouse around over your component, so don't do anything time-consuming in here, like opening the files to have a look inside them!
files | the set of (absolute) pathnames of the files that the user is dragging |
Implements FileDragAndDropTarget.
|
overridevirtual |
This can be overridden to react to the user double-clicking on a row.
Reimplemented from ListBoxModel.
|
overridevirtual |
Components can override this method to draw their content.
The paint() method gets called when a region of a component needs redrawing, either because the component's repaint() method has been called, or because something has happened on the screen that means a section of a window needs to be redrawn.
Any child components will draw themselves over whatever this method draws. If you need to paint over the top of your child components, you can also implement the paintOverChildren() method to do this.
If you want to cause a component to redraw itself, this is done asynchronously - calling the repaint() method marks a region of the component as "dirty", and the paint() method will automatically be called sometime later, by the message thread, to paint any bits that need refreshing. In Juce (and almost all modern UI frameworks), you never redraw something synchronously.
You should never need to call this method directly - to take a snapshot of the component you could use createComponentSnapshot() or paintEntireComponent().
g | the graphics context that must be used to do the drawing operations. |
Reimplemented from Component.
|
overridevirtual |
This method must be implemented to draw a row of the list. Note that the rowNumber value may be greater than the number of rows in your list, so be careful that you don't assume it's less than getNumRows().
Implements ListBoxModel.
|
overridevirtual |
Called when this component's size has been changed.
A component can implement this method to do things such as laying out its child components when its width or height changes.
The method is called synchronously as a result of the setBounds or setSize methods, so repeatedly changing a components size will repeatedly call its resized method (unlike things like repainting, where multiple calls to repaint are coalesced together).
If the component is a top-level window on the desktop, its size could also be changed by operating-system factors beyond the application's control.
Reimplemented from Component.
|
overridevirtual |
Override this to be informed when the return key is pressed.
If no rows are selected when they press the key, this won't be called.
lastRowSelected | the last row that had been selected when they pressed the key - if there are multiple selections, this might not be very useful |
Reimplemented from ListBoxModel.
|
overridevirtual |
Override this to be informed when rows are selected or deselected.
This will be called whenever a row is selected or deselected. If a range of rows is selected all at once, this will just be called once for that event.
lastRowSelected | the last row that the user selected. If no rows are currently selected, this may be -1. |
Reimplemented from ListBoxModel.
Sets a file or directory to be the default starting point for the browser to show.
This is only used if the current file hasn't been set.
void FileSearchPathListComponent::setPath | ( | const FileSearchPath & | newPath | ) |
Changes the current path.