openshot-audio  0.1.2
Public Member Functions | Static Public Member Functions | List of all members
KeyMappingEditorComponent::TopLevelItem Class Reference
Inheritance diagram for KeyMappingEditorComponent::TopLevelItem:
TreeViewItem Button::Listener ChangeListener

Public Member Functions

 TopLevelItem (KeyMappingEditorComponent &kec)
 
 ~TopLevelItem ()
 
bool mightContainSubItems () override
 
String getUniqueName () const override
 
void changeListenerCallback (ChangeBroadcaster *) override
 
void buttonClicked (Button *) override
 
- Public Member Functions inherited from TreeViewItem
 TreeViewItem ()
 
virtual ~TreeViewItem ()
 
int getNumSubItems () const noexcept
 
TreeViewItemgetSubItem (int index) const noexcept
 
void clearSubItems ()
 
void addSubItem (TreeViewItem *newItem, int insertPosition=-1)
 
template<class ElementComparator >
void addSubItemSorted (ElementComparator &comparator, TreeViewItem *newItem)
 
void removeSubItem (int index, bool deleteItem=true)
 
template<class ElementComparator >
void sortSubItems (ElementComparator &comparator)
 
TreeViewgetOwnerView () const noexcept
 
TreeViewItemgetParentItem () const noexcept
 
bool isOpen () const noexcept
 
void setOpen (bool shouldBeOpen)
 
bool isSelected () const noexcept
 
void setSelected (bool shouldBeSelected, bool deselectOtherItemsFirst, NotificationType shouldNotify=sendNotification)
 
Rectangle< intgetItemPosition (bool relativeToTreeViewTopLeft) const noexcept
 
void treeHasChanged () const noexcept
 
void repaintItem () const
 
int getRowNumberInTree () const noexcept
 
bool areAllParentsOpen () const noexcept
 
void setLinesDrawnForSubItems (bool shouldDrawLines) noexcept
 
virtual void itemOpennessChanged (bool isNowOpen)
 
virtual int getItemWidth () const
 
virtual int getItemHeight () const
 
virtual bool canBeSelected () const
 
virtual ComponentcreateItemComponent ()
 
virtual void paintItem (Graphics &g, int width, int height)
 
virtual void paintOpenCloseButton (Graphics &, const Rectangle< float > &area, Colour backgroundColour, bool isMouseOver)
 
virtual void paintHorizontalConnectingLine (Graphics &, const Line< float > &line)
 
virtual void paintVerticalConnectingLine (Graphics &, const Line< float > &line)
 
virtual void itemClicked (const MouseEvent &e)
 
virtual void itemDoubleClicked (const MouseEvent &e)
 
virtual void itemSelectionChanged (bool isNowSelected)
 
virtual String getTooltip ()
 
virtual var getDragSourceDescription ()
 
virtual bool isInterestedInFileDrag (const StringArray &files)
 
virtual void filesDropped (const StringArray &files, int insertIndex)
 
virtual bool isInterestedInDragSource (const DragAndDropTarget::SourceDetails &dragSourceDetails)
 
virtual void itemDropped (const DragAndDropTarget::SourceDetails &dragSourceDetails, int insertIndex)
 
void setDrawsInLeftMargin (bool canDrawInLeftMargin) noexcept
 
void setDrawsInRightMargin (bool canDrawInRightMargin) noexcept
 
XmlElementgetOpennessState () const
 
void restoreOpennessState (const XmlElement &xml)
 
int getIndexInParent () const noexcept
 
bool isLastOfSiblings () const noexcept
 
String getItemIdentifierString () const
 
- Public Member Functions inherited from Button::Listener
virtual ~Listener ()
 
virtual void buttonStateChanged (Button *)
 

Static Public Member Functions

static void resetToDefaultsCallback (int result, KeyMappingEditorComponent *owner)
 

Constructor & Destructor Documentation

KeyMappingEditorComponent::TopLevelItem::TopLevelItem ( KeyMappingEditorComponent kec)
inline
KeyMappingEditorComponent::TopLevelItem::~TopLevelItem ( )
inline

Member Function Documentation

void KeyMappingEditorComponent::TopLevelItem::buttonClicked ( Button )
inlineoverridevirtual

Called when the button is clicked.

Implements Button::Listener.

void KeyMappingEditorComponent::TopLevelItem::changeListenerCallback ( ChangeBroadcaster source)
inlineoverridevirtual

Your subclass should implement this method to receive the callback.

Parameters
sourcethe ChangeBroadcaster that triggered the callback.

Implements ChangeListener.

String KeyMappingEditorComponent::TopLevelItem::getUniqueName ( ) const
inlineoverridevirtual

Returns a string to uniquely identify this item.

If you're planning on using the TreeView::getOpennessState() method, then these strings will be used to identify which nodes are open. The string should be unique amongst the item's sibling items, but it's ok for there to be duplicates at other levels of the tree.

If you're not going to store the state, then it's ok not to bother implementing this method.

Reimplemented from TreeViewItem.

bool KeyMappingEditorComponent::TopLevelItem::mightContainSubItems ( )
inlineoverridevirtual

Tells the tree whether this item can potentially be opened.

If your item could contain sub-items, this should return true; if it returns false then the tree will not try to open the item. This determines whether or not the item will be drawn with a 'plus' button next to it.

Implements TreeViewItem.

static void KeyMappingEditorComponent::TopLevelItem::resetToDefaultsCallback ( int  result,
KeyMappingEditorComponent owner 
)
inlinestatic

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