![]() |
![]() |
![]() |
RhythmCat Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <rc-ui-library-model.h> enum RCUiLibraryListColumns; struct RCUiLibraryListStore; struct RCUiLibraryListStoreClass; enum RCUiLibraryPropColumns; struct RCUiLibraryPropStore; struct RCUiLibraryPropStoreClass; GtkTreeModel * rc_ui_library_list_store_new (RCLibDbLibraryQueryResult *query_result
); GtkTreeModel * rc_ui_library_prop_store_new (RCLibDbLibraryQueryResult *base
,RCLibDbQueryDataType prop_type
);
RCUiLibraryListStore implements GtkTreeModel.
RCUiLibraryPropStore implements GtkTreeModel.
"query-result" RCLibDbLibraryQueryResult* : Read / Write / Construct Only "base" RCLibDbLibraryQueryResult* : Read / Write / Construct Only "property-type" guint : Read / Write / Construct Only
This module provides 2 classes: RCUiLibraryListStore and RCUiLibraryPropStore, which implements interface GtkTreeModel. They can be used by GtkTreeView for showing and operating the data inside. RCUiLibraryListStore contains the query result list obtained from the library, and RCUiLibraryPropStore contains the property list of the query result.
typedef enum { RC_UI_LIBRARY_LIST_COLUMN_TYPE, RC_UI_LIBRARY_LIST_COLUMN_STATE, RC_UI_LIBRARY_LIST_COLUMN_FTITLE, RC_UI_LIBRARY_LIST_COLUMN_TITLE, RC_UI_LIBRARY_LIST_COLUMN_ARTIST, RC_UI_LIBRARY_LIST_COLUMN_ALBUM, RC_UI_LIBRARY_LIST_COLUMN_FTYPE, RC_UI_LIBRARY_LIST_COLUMN_GENRE, RC_UI_LIBRARY_LIST_COLUMN_LENGTH, RC_UI_LIBRARY_LIST_COLUMN_TRACK, RC_UI_LIBRARY_LIST_COLUMN_RATING, RC_UI_LIBRARY_LIST_COLUMN_YEAR, RC_UI_LIBRARY_LIST_COLUMN_PLAYING_FLAG, RC_UI_LIBRARY_LIST_COLUMN_LAST } RCUiLibraryListColumns;
The enum type for the columns in the library list store.
the type column | |
the state column | |
the title column | |
the real title column | |
the artist column | |
the album column | |
the file type (format) column | |
the genre column | |
the time length column | |
the track number column | |
the rating column | |
the year column | |
the playing flag column | |
the last column, do not use it |
struct RCUiLibraryListStore;
The data structure used for RCUiLibraryListStore class.
struct RCUiLibraryListStoreClass { };
RCUiLibraryListStoreClass class.
typedef enum { RC_UI_LIBRARY_PROP_COLUMN_NAME, RC_UI_LIBRARY_PROP_COLUMN_COUNT, RC_UI_LIBRARY_PROP_COLUMN_FLAG, RC_UI_LIBRARY_PROP_COLUMN_LAST } RCUiLibraryPropColumns;
The enum type for the columns in the library property store.
struct RCUiLibraryPropStore;
The data structure used for RCUiLibraryPropStore class.
struct RCUiLibraryPropStoreClass { };
RCUiLibraryPropStoreClass class.
GtkTreeModel * rc_ui_library_list_store_new (RCLibDbLibraryQueryResult *query_result
);
Create a new library list store.
|
the query result |
Returns : |
The new library list store, NULL if failed. [transfer full] |
GtkTreeModel * rc_ui_library_prop_store_new (RCLibDbLibraryQueryResult *base
,RCLibDbQueryDataType prop_type
);
Create a new library property store.
|
the base query result |
|
the property type |
Returns : |
The new library property store, NULL if failed. [transfer full] |
"query-result"
property "query-result" RCLibDbLibraryQueryResult* : Read / Write / Construct Only
Sets the query result object of the library list store.
"base"
property "base" RCLibDbLibraryQueryResult* : Read / Write / Construct Only
Sets the base query result object of the library property store.
"property-type"
property"property-type" guint : Read / Write / Construct Only
Sets the property type for the library property store.
Allowed values: <= 10
Default value: 3