Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

nowplaying.h 1.45 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/***************************************************************************
    copyright            : (C) 2004 Nathan Toone
    email                : nathan@toonetown.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef NOWPLAYING_H
#define NOWPLAYING_H

#include <qwidget.h>
19 20 21

class QPushButton;
class QSplitter;
22 23 24 25 26 27

class NowPlaying : public QWidget
{
    Q_OBJECT

public:
28
    NowPlaying(QSplitter *parent, const char *name = 0);
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    virtual ~NowPlaying();

private:
    void setupActions();
    void setupLayout();
    void readConfig();
    void saveConfig();

public slots:
    void slotRefresh();
    void slotClear();

private slots:
    void slotButtonPress();

protected:
    virtual void resizeEvent(QResizeEvent *ev);
46
    virtual void mousePressEvent(QMouseEvent *e);
47 48 49 50 51 52

private:
    QPushButton *m_button;
};

#endif