* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include "qt4.hpp"
#include "dialogs_provider.hpp"
-#include "playlist_model.hpp"
+#include "components/playlist/playlist_model.hpp"
#include "components/playlist/panels.hpp"
#include "util/customwidgets.hpp"
BUTTONACT( repeatButton, toggleRepeat() );
buttons->addWidget( repeatButton );
+ /* Goto */
+ gotoPlayingButton = new QPushButton( "X" , this );
+ gotoPlayingButton->setToolTip( qtr( "Show the current item" ));
+ BUTTONACT( gotoPlayingButton, gotoPlayingItem() );
+ buttons->addWidget( gotoPlayingButton );
+
/* A Spacer and the search possibilities */
QSpacerItem *spacer = new QSpacerItem( 10, 20 );
buttons->addItem( spacer );
randomButton->setToolTip( prev ? qtr( I_PL_NORANDOM ) : qtr(I_PL_RANDOM ) );
}
+void StandardPLPanel::gotoPlayingItem()
+{
+ view->scrollTo( view->currentIndex() );
+}
+
void StandardPLPanel::handleExpansion( const QModelIndex &index )
{
if( model->isCurrent( index ) )
CONNECT( ContextUpdateMapper, mapped( int ), model, viewchanged( int ) );
ADD_META_ACTION( TITLE );
- ADD_META_ACTION( ARTIST );
ADD_META_ACTION( DURATION );
- ADD_META_ACTION( COLLECTION );
+ ADD_META_ACTION( ARTIST );
ADD_META_ACTION( GENRE );
+ ADD_META_ACTION( COLLECTION );
ADD_META_ACTION( SEQ_NUM );
- ADD_META_ACTION( RATING );
ADD_META_ACTION( DESCRIPTION );
+ ADD_META_ACTION( RATING );
+ ADD_META_ACTION( TRACKID );
#undef ADD_META_ACTION
model->removeItem( i_id );
}
-/* Delete and Suppr key remove the selection
+/* Delete and Suppr key remove the selection
FilterKey function and code function */
void StandardPLPanel::keyPressEvent( QKeyEvent *e )
{