#include <uihelper.h>
List of all members.
Public Types |
| enum | MenuType { TOOLS_MENU = 0,
PLAYLIST_MENU
} |
Public Slots |
| void | toggleVisibility () |
| void | exit () |
Signals |
| void | toggleVisibilityCalled () |
Public Member Functions |
| | UiHelper (QObject *parent=0) |
| | ~UiHelper () |
| bool | visibilityControl () |
| void | addAction (QAction *action, MenuType type=TOOLS_MENU) |
| void | removeAction (QAction *action) |
| QList< QAction * > | actions (MenuType type=TOOLS_MENU) |
| 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()) |
| void | addUrl (QWidget *parent=qApp->activeWindow(), PlayListModel *model=PlayListManager::instance()->selectedPlayList()) |
| void | loadPlayList (QWidget *parent=qApp->activeWindow(), PlayListModel *model=PlayListManager::instance()->selectedPlayList()) |
| void | savePlayList (QWidget *parent=qApp->activeWindow(), PlayListModel *model=PlayListManager::instance()->selectedPlayList()) |
| void | jumpToTrack (QWidget *parent=qApp->activeWindow(), PlayListModel *model=PlayListManager::instance()->selectedPlayList()) |
| void | about (QWidget *parent=0) |
Static Public Member Functions |
| static UiHelper * | instance () |
Detailed Description
The UiHelper class provides simple api to access general plugins and some gui features.
- Author:
- Ilya Kotov <forkotov02@hotmail.ru>
Member Enumeration Documentation
Enum of menu type
- Enumerator:
| TOOLS_MENU |
tools menu
|
| PLAYLIST_MENU |
playlist context menu
|
Constructor & Destructor Documentation
Object constructor,
- Parameters:
-
Member Function Documentation
| void about |
( |
QWidget * |
parent = 0 | ) |
|
Shows about dialog
- Parameters:
-
Returns a list of actions of the menu type type
Adds the newly created action to the menu with type type. Menu with type type should be created first.
- Parameters:
-
| action | Pointer of action. |
| type | Menu type. |
Opens 'Add Directory' dialog
- Parameters:
-
| parent | Parent widget |
| model | Destination playlist model |
Opens 'Add File' dialog
- Parameters:
-
| parent | Parent widget |
| model | Destination playlist model |
Opens 'Add URL' dialog
- Parameters:
-
| parent | Parent widget |
| model | Destination playlist model |
| QMenu* createMenu |
( |
MenuType |
type, |
|
|
const QString & |
title = QString(), |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Creates menu with type type
- Parameters:
-
| type | Menu type. |
| title | Menu title. |
| parent | Parent widget |
Tells the player to exit.
Returns a pointer to the object's instance.
Opens 'Jump To Track' dialog
- Parameters:
-
| parent | Parent widget |
| model | Destination playlist model |
Opens 'Load Playlist' dialog
- Parameters:
-
| parent | Parent widget |
| model | Destination playlist model |
Removes action action from created menus.
Opens 'Save Playlist' dialog
- Parameters:
-
| parent | Parent widget |
| model | Destination playlist model |
Toggles player window visibility.
Emitted when some general plugin requires to toggle visibility. Use it to show/hide player's window.
Returns true if one of the general plugin can change visibility, otherwise returns false
The documentation for this class was generated from the following file:
- /usr/src/RPM/BUILD/qmmp-0.8-svn/src/qmmpui/uihelper.h