Miam-Player  0.8.0
A nice music player
AddressBar Class Reference

The AddressBar class is the place where subfolders (instance of AddressBarButton) will be appended. More...

#include <addressbar.h>

Inheritance diagram for AddressBar:

Public Slots

void init (const QDir &initDir)
 

Signals

void aboutToChangePath (const QDir &)
 

Public Member Functions

 AddressBar (QWidget *parent=nullptr)
 
void findAndHighlightButton (const QPoint &p)
 
QDir currentDir () const
 
bool isDown () const
 
void setDown (bool down)
 
bool hasHiddenFolders () const
 

Static Public Member Functions

static QString getVolumeInfo (const QString &drive)
 This is an exception in this source code to define a function depending if Q_OS_WIN exists or not. More...
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *) override
 
virtual void paintEvent (QPaintEvent *) override
 
virtual void resizeEvent (QResizeEvent *event) override
 

Detailed Description

The AddressBar class is the place where subfolders (instance of AddressBarButton) will be appended.

The path to a folder is splitted into folders. When there is not enough space to display the entire path, then first folders next to root are visually removed and stacked into a menu. When one triggers the root item, previously saved items are displayed in reverse order.

Author
Matthieu Bachelier
See also
AddressBarMenu

Constructor & Destructor Documentation

§ AddressBar()

AddressBar::AddressBar ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

§ aboutToChangePath

void AddressBar::aboutToChangePath ( const QDir &  )
signal

§ currentDir()

QDir AddressBar::currentDir ( ) const
inline

§ findAndHighlightButton()

void AddressBar::findAndHighlightButton ( const QPoint &  p)

Called by the popup menu when one is moving the mouse cursor.

§ getVolumeInfo()

QString AddressBar::getVolumeInfo ( const QString &  drive)
static

This is an exception in this source code to define a function depending if Q_OS_WIN exists or not.

§ hasHiddenFolders()

bool AddressBar::hasHiddenFolders ( ) const
inline

§ init

void AddressBar::init ( const QDir &  initDir)
slot

Init with an absolute path. Also used as a callback to a view.

§ isDown()

bool AddressBar::isDown ( ) const
inline

§ mousePressEvent()

void AddressBar::mousePressEvent ( QMouseEvent *  )
overrideprotectedvirtual

§ paintEvent()

void AddressBar::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

§ resizeEvent()

void AddressBar::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

§ setDown()

void AddressBar::setDown ( bool  down)
inline

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