class QSignalMapper;
class PLModel;
+class MLModel;
class QKeyEvent;
class QWheelEvent;
class QStackedLayout;
public:
StandardPLPanel( PlaylistWidget *, intf_thread_t *,
- playlist_item_t *, PLSelector *, PLModel * );
+ playlist_item_t *, PLSelector *, PLModel *, MLModel * );
virtual ~StandardPLPanel();
- enum { TREE_VIEW = 0,
- ICON_VIEW,
+ enum { ICON_VIEW = 0,
+ TREE_VIEW ,
LIST_VIEW,
PICTUREFLOW_VIEW,
VIEW_COUNT };
- const int getViewNumber();
+ int currentViewIndex() const;
protected:
-
PLModel *model;
+ MLModel *mlmodel;
virtual void wheelEvent( QWheelEvent *e );
+
private:
intf_thread_t *p_intf;
void createIconView();
void createListView();
void createCoverView();
+ void changeModel ( bool b_ml );
bool eventFilter ( QObject * watched, QEvent * event );
public slots:
- void setRoot( playlist_item_t * );
+ void setRoot( playlist_item_t *, bool );
void browseInto( const QModelIndex& );
- void browseInto( );
private slots:
void deleteSelection();
void handleExpansion( const QModelIndex& );
- void handleRootChange();
void activate( const QModelIndex & );
+
+ void browseInto();
void browseInto( input_item_t * );
void gotoPlayingItem();
static const QString viewNames[ StandardPLPanel::VIEW_COUNT ]
- = { qtr( "Detailed View" ),
- qtr( "Icon View" ),
+ = { qtr( "Icon View" ),
+ qtr( "Detailed View" ),
qtr( "List View" ),
qtr( "PictureFlow View ") };