openshot-audio
0.1.6
|
#include <juce_ToolbarItemPalette.h>
Public Member Functions | |
ToolbarItemPalette (ToolbarItemFactory &factory, Toolbar &toolbar) | |
~ToolbarItemPalette () | |
void | resized () override |
![]() | |
DragAndDropContainer () | |
virtual | ~DragAndDropContainer () |
void | startDragging (const var &sourceDescription, Component *sourceComponent, Image dragImage=Image::null, bool allowDraggingToOtherJuceWindows=false, const Point< int > *imageOffsetFromMouse=nullptr) |
bool | isDragAndDropActive () const |
var | getCurrentDragDescription () const |
void | setCurrentDragImage (const Image &newImage) |
Friends | |
class | Toolbar |
Additional Inherited Members | |
![]() | |
static DragAndDropContainer * | findParentDragContainerFor (Component *childComponent) |
static bool | performExternalDragDropOfFiles (const StringArray &files, bool canMoveFiles) |
static bool | performExternalDragDropOfText (const String &text) |
![]() | |
virtual bool | shouldDropFilesWhenDraggedExternally (const DragAndDropTarget::SourceDetails &sourceDetails, StringArray &files, bool &canMoveFiles) |
virtual void | dragOperationStarted () |
virtual void | dragOperationEnded () |
A component containing a list of toolbar items, which the user can drag onto a toolbar to add them.
You can use this class directly, but it's a lot easier to call Toolbar::showCustomisationDialog(), which automatically shows one of these in a dialog box with lots of extra controls.
ToolbarItemPalette::ToolbarItemPalette | ( | ToolbarItemFactory & | factory, |
Toolbar & | toolbar | ||
) |
Creates a palette of items for a given factory, with the aim of adding them to the specified toolbar.
The ToolbarItemFactory::getAllToolbarItemIds() method is used to create the set of items that are shown in this palette.
The toolbar and factory must not be deleted while this object exists.
ToolbarItemPalette::~ToolbarItemPalette | ( | ) |
Destructor.
|
override |
|
friend |