Miam-Player  0.8.0
A nice music player
AddressBarMenu Class Reference

The AddressBarMenu class is like a popup menu which displays subdirectories. More...

#include <addressbarmenu.h>

Inheritance diagram for AddressBarMenu:

Public Types

enum  SeparatorEnum { Separator = Qt::UserRole + 1 }
 

Public Slots

void clear ()
 
void show ()
 

Public Member Functions

 AddressBarMenu (AddressBar *addressBar)
 
bool eventFilter (QObject *, QEvent *e)
 
bool hasSeparator () const
 
void insertSeparator ()
 
void moveOrHide (const AddressBarButton *b)
 

Protected Member Functions

virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void paintEvent (QPaintEvent *)
 

Detailed Description

The AddressBarMenu class is like a popup menu which displays subdirectories.

When this menu is opened, it shows every subfolders under the current highlighted button. Items are layed out in a list, with a scrollbar if lots of subdirectories are present. If one is moving the cursor from one button to another one, then the content of this menu is updated with the previous / next highlighted button. Folders are painted with the icon provided by your operating system, and disabled if it's not readable (like an external drive not ready nor mounted).

Author
Matthieu Bachelier

Member Enumeration Documentation

Enumerator
Separator 

Constructor & Destructor Documentation

AddressBarMenu::AddressBarMenu ( AddressBar addressBar)
explicit

Member Function Documentation

void AddressBarMenu::clear ( )
slot
bool AddressBarMenu::eventFilter ( QObject *  ,
QEvent *  e 
)

XXX: wtf notify() is not working?

bool AddressBarMenu::hasSeparator ( ) const
inline
void AddressBarMenu::insertSeparator ( )
void AddressBarMenu::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Redefined to force update the viewport.

void AddressBarMenu::moveOrHide ( const AddressBarButton b)
void AddressBarMenu::paintEvent ( QPaintEvent *  )
protectedvirtual

Redefined to be able to display items with the current theme.

void AddressBarMenu::show ( )
slot

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