#ifndef SYMBOLLISTVIEW_H
#define SYMBOLLISTVIEW_H

#include "mostQtHeaders.h"

class SymbolListView : public QListView
{
	Q_OBJECT
public:
	explicit SymbolListView(QWidget *parent = Q_NULLPTR);

	void setSymbolSize(int size);

	QSize sizeHint() const;
	QSize minimumSizeHint() const;

	void contextMenuEvent(QContextMenuEvent *event);

signals:
	void addToFavorites(const QString &id);
	void removeFromFavorites(const QString &id);

protected slots:
	void emitAddToFavorites();
	void emitRemoveFromFavorites();

private:
	int m_symbolSize;
	int m_gridSize;
};

#endif // SYMBOLLISTVIEW_H
