diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-07-03 12:04:32 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-07-03 12:04:32 +0000 |
| commit | 567bcd1f0863aa9dd6400a76275d4ac355a0d4f5 (patch) | |
| tree | 990dee5ec6d00633e3bfb75dd29d15cc8a543090 /src/qmmpui/uihelper.h | |
| parent | 26e900705f9c00b0775be0910fd0ae056328d550 (diff) | |
| download | qmmp-567bcd1f0863aa9dd6400a76275d4ac355a0d4f5.tar.gz qmmp-567bcd1f0863aa9dd6400a76275d4ac355a0d4f5.tar.bz2 qmmp-567bcd1f0863aa9dd6400a76275d4ac355a0d4f5.zip | |
added some api fuctions
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2262 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/uihelper.h')
| -rw-r--r-- | src/qmmpui/uihelper.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qmmpui/uihelper.h b/src/qmmpui/uihelper.h index efc623bb7..ec33250e8 100644 --- a/src/qmmpui/uihelper.h +++ b/src/qmmpui/uihelper.h @@ -25,6 +25,9 @@ #include <QList> #include <QPointer> #include <QStringList> +#include <QApplication> +#include <qmmpui/playlistmanager.h> +#include <qmmpui/playlistmodel.h> class QAction; class QMenu; @@ -82,6 +85,11 @@ public: * @param parent Parent widget */ QMenu *createMenu(MenuType type, const QString &title = QString(), QWidget *parent = 0); + + void addFile(QWidget *parent = qApp->activeWindow(), + PlayListModel *model = PlayListManager::instance()->selectedPlayList()); + void addDirectory(QWidget *parent = qApp->activeWindow(), + PlayListModel *model = PlayListManager::instance()->selectedPlayList()); /*! * Returns a pointer to the object's instance. */ @@ -118,6 +126,7 @@ private: QList <QAction*> m_playlistActions; QPointer<QMenu> m_toolsMenu; QPointer<QMenu> m_playlistMenu; + QString m_lastDir; static UiHelper* m_instance; }; |
