![]() |
![]() |
![]() |
RhythmCat Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#include <rc-ui-listview.h> struct RCUiCatalogView; struct RCUiCatalogViewClass; enum RCUiListViewPlaylistColumnFlags; struct RCUiPlaylistView; struct RCUiPlaylistViewClass; void rc_ui_listview_catalog_delete_items (); gboolean rc_ui_listview_catalog_get_cursor (GtkTreeIter *iter
); GtkTreeModel * rc_ui_listview_catalog_get_model (); void rc_ui_listview_catalog_new_playlist (); void rc_ui_listview_catalog_rename_playlist (); void rc_ui_listview_catalog_select (GtkTreeIter *iter
); void rc_ui_listview_catalog_set_pango_attributes (const PangoAttrList *list
); GtkWidget * rc_ui_listview_get_catalog_widget (); GtkWidget * rc_ui_listview_get_playlist_widget (); void rc_ui_listview_playlist_delete_items (); gboolean rc_ui_listview_playlist_get_column_display_mode (); gboolean rc_ui_listview_playlist_get_cursor (GtkTreeIter *iter
); guint rc_ui_listview_playlist_get_enabled_columns (); GtkTreeModel * rc_ui_listview_playlist_get_model (); void rc_ui_listview_playlist_refresh (); void rc_ui_listview_playlist_select (GtkTreeIter *iter
); void rc_ui_listview_playlist_select_all (); void rc_ui_listview_playlist_set_column_display_mode (gboolean mode
); void rc_ui_listview_playlist_set_enabled_columns (guint column_flags
,guint enable_flags
); void rc_ui_listview_playlist_set_pango_attributes (const PangoAttrList *list
); void rc_ui_listview_playlist_set_title_format (const gchar *format
); void rc_ui_listview_refresh ();
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkTreeView +----RCUiCatalogView
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkTreeView +----RCUiPlaylistView
RCUiCatalogView implements AtkImplementorIface, GtkBuildable and GtkScrollable.
RCUiPlaylistView implements AtkImplementorIface, GtkBuildable and GtkScrollable.
This module provides the catalog and playlist list view widgets for the player. They show catalog and playlist in the main window.
typedef enum { RC_UI_LISTVIEW_PLAYLIST_COLUMN_ARTIST = 1<<0, RC_UI_LISTVIEW_PLAYLIST_COLUMN_ALBUM = 1<<1, RC_UI_LISTVIEW_PLAYLIST_COLUMN_TRACK = 1<<2, RC_UI_LISTVIEW_PLAYLIST_COLUMN_YEAR = 1<<3, RC_UI_LISTVIEW_PLAYLIST_COLUMN_FTYPE = 1<<4, RC_UI_LISTVIEW_PLAYLIST_COLUMN_RATING = 1<<5, RC_UI_LISTVIEW_PLAYLIST_COLUMN_GENRE = 1<<6 } RCUiListViewPlaylistColumnFlags;
The enum type for control the visibility of some columns in the playlist.
the artist column | |
the album column | |
the track number column | |
the year column | |
the file type (format) column | |
the rating column | |
the genre column |
struct RCUiPlaylistView;
The data structure used for RCUiPlaylistView class.
void rc_ui_listview_catalog_delete_items ();
Delete the selected playlist(s) in the catalog.
gboolean rc_ui_listview_catalog_get_cursor (GtkTreeIter *iter
);
Get the GtkTreeIter of the selected playlist item in the catalog.
|
the uninitialized GtkTreeIter |
Returns : |
TRUE, if iter was set. |
GtkTreeModel * rc_ui_listview_catalog_get_model ();
Get the GtkTreeModel used in the current catalog list view.
Returns : |
The GtkTreeModel. [transfer none] |
void rc_ui_listview_catalog_new_playlist ();
Create a new playlist in the catalog.
void rc_ui_listview_catalog_rename_playlist
();
Rename a list (make the name of the selected playlist editable).
void rc_ui_listview_catalog_select (GtkTreeIter *iter
);
Select the playlist in the catalog.
|
the iter to the playlist in the catalog |
void rc_ui_listview_catalog_set_pango_attributes
(const PangoAttrList *list
);
Set the pango attribute for the catalog list view.
|
the pango attribute list |
GtkWidget * rc_ui_listview_get_catalog_widget ();
Get the catalog list view widget. If the widget is not initialized yet, it will be initialized.
Returns : |
the catalog widget. [transfer none] |
GtkWidget * rc_ui_listview_get_playlist_widget ();
Get the playlist list view widget. If the widget is not initialized yet, it will be initialized.
Returns : |
the playlist widget. [transfer none] |
void rc_ui_listview_playlist_delete_items
();
Delete the selected item(s) in the selected playlist.
gboolean rc_ui_listview_playlist_get_column_display_mode ();
Get the column display mode.
Returns : |
The column display mode. |
gboolean rc_ui_listview_playlist_get_cursor (GtkTreeIter *iter
);
Get the GtkTreeIter of the selected music item in the playlist.
|
the uninitialized GtkTreeIter |
Returns : |
TRUE, if iter was set. |
guint rc_ui_listview_playlist_get_enabled_columns ();
Get the visibility of the artist column and album column.
Returns : |
The flags of the columns. |
GtkTreeModel * rc_ui_listview_playlist_get_model ();
Get the GtkTreeModel used in the current playlist list view.
Returns : |
The GtkTreeModel. [transfer none] |
void rc_ui_listview_playlist_refresh ();
Refresh the metadata of all music in the selected playlist.
void rc_ui_listview_playlist_select (GtkTreeIter *iter
);
Select the music in the playlist.
|
the iter to the playlist in the catalog |
void rc_ui_listview_playlist_select_all ();
Select all items in the selected playlist.
void rc_ui_listview_playlist_set_column_display_mode
(gboolean mode
);
Set the column display mode, set it to FALSE to use single title column mode, set it to TRUE to show metadata in more than one columns and the list header.
|
the column display mode |
void rc_ui_listview_playlist_set_enabled_columns (guint column_flags
,guint enable_flags
);
Enable or disable (set the visibility of) some columns by the given flags. Notice that this function will only take effects if the display mode is set to TRUE.
|
the columns to set |
|
set the columns state |
void rc_ui_listview_playlist_set_pango_attributes
(const PangoAttrList *list
);
Set the pango attribute for the playlist list view.
|
the pango attribute list |
void rc_ui_listview_playlist_set_title_format
(const gchar *format
);
Set the format string of the title column in the playlist, using %TITLE as title string, %ARTIST as artist string, %ALBUM as album string. Notice that %TITLE should be always included in the string.
|
the format string |