openshot-audio  0.1.7
Public Member Functions | Friends | List of all members
ToolbarItemPalette Class Reference

#include <juce_ToolbarItemPalette.h>

Inheritance diagram for ToolbarItemPalette:
DragAndDropContainer

Public Member Functions

 ToolbarItemPalette (ToolbarItemFactory &factory, Toolbar &toolbar)
 
 ~ToolbarItemPalette ()
 
void resized () override
 
- Public Member Functions inherited from DragAndDropContainer
 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 Public Member Functions inherited from DragAndDropContainer
static DragAndDropContainerfindParentDragContainerFor (Component *childComponent)
 
static bool performExternalDragDropOfFiles (const StringArray &files, bool canMoveFiles)
 
static bool performExternalDragDropOfText (const String &text)
 
- Protected Member Functions inherited from DragAndDropContainer
virtual bool shouldDropFilesWhenDraggedExternally (const DragAndDropTarget::SourceDetails &sourceDetails, StringArray &files, bool &canMoveFiles)
 
virtual void dragOperationStarted ()
 
virtual void dragOperationEnded ()
 

Detailed Description

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.

See Also
Toolbar

Constructor & Destructor Documentation

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.

Member Function Documentation

void ToolbarItemPalette::resized ( )
override

Friends And Related Function Documentation

friend class Toolbar
friend

The documentation for this class was generated from the following files: