Changeset 7a57427bbc9487342e333ce2c63f237c55f4d66e
- Timestamp:
- 09/14/06 18:44:22
(2 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1158252262 +0000
- git-parent:
[3251407d9420fbf8cf914f7e83b07a15b3ededb6]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1158252262 +0000
- Message:
Add missing actions in popup
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8a225a6 |
r7a57427 |
|
| 35 | 35 | #define I_POP_PREPARSE N_("Fetch information") |
|---|
| 36 | 36 | #define I_POP_DEL N_("Delete") |
|---|
| 37 | | #define I_POP_INFO N_("Information") |
|---|
| | 37 | #define I_POP_INFO N_("Information...") |
|---|
| 38 | 38 | #define I_POP_SORT N_("Sort") |
|---|
| 39 | 39 | #define I_POP_ADD N_("Add node") |
|---|
| | 40 | #define I_POP_STREAM N_("Stream...") |
|---|
| | 41 | #define I_POP_SAVE N_("Save...") |
|---|
| 40 | 42 | |
|---|
| 41 | 43 | /*************** Preferences *************/ |
|---|
| r897144d |
r7a57427 |
|
| 695 | 695 | QMenu *menu = new QMenu; |
|---|
| 696 | 696 | menu->addAction( qfu(I_POP_PLAY), this, SLOT( popupPlay() ) ); |
|---|
| 697 | | menu->addAction( qfu(I_POP_PREPARSE), this, SLOT( popupPreparse() ) ); |
|---|
| 698 | 697 | menu->addAction( qfu(I_POP_DEL), this, SLOT( popupDel() ) ); |
|---|
| | 698 | menu->addSeparator(); |
|---|
| | 699 | menu->addAction( qfu(I_POP_STREAM), this, SLOT( popupStream() ) ); |
|---|
| | 700 | menu->addAction( qfu(I_POP_SAVE), this, SLOT( popupSave() ) ); |
|---|
| | 701 | menu->addSeparator(); |
|---|
| 699 | 702 | menu->addAction( qfu(I_POP_INFO), this, SLOT( popupInfo() ) ); |
|---|
| 700 | 703 | if( p_item->i_children > -1 ) |
|---|
| … | … | |
| 722 | 725 | } |
|---|
| 723 | 726 | |
|---|
| | 727 | void PLModel::popupInfo() |
|---|
| | 728 | { |
|---|
| | 729 | fprintf( stderr, "Popup Info is NOT implemented\n" ); |
|---|
| | 730 | } |
|---|
| | 731 | |
|---|
| | 732 | void PLModel::popupStream() |
|---|
| | 733 | { |
|---|
| | 734 | fprintf( stderr, "Stream not implemented\n" ); |
|---|
| | 735 | } |
|---|
| | 736 | void PLModel::popupSave() |
|---|
| | 737 | { |
|---|
| | 738 | fprintf( stderr, "Save not implemented\n" ); |
|---|
| | 739 | } |
|---|
| | 740 | |
|---|
| 724 | 741 | /********************************************************************** |
|---|
| 725 | 742 | * Playlist callbacks |
|---|
| r897144d |
r7a57427 |
|
| 169 | 169 | void popupPlay(); |
|---|
| 170 | 170 | void popupDel(); |
|---|
| | 171 | void popupInfo(); |
|---|
| | 172 | void popupStream(); |
|---|
| | 173 | void popupSave(); |
|---|
| 171 | 174 | friend class PLItem; |
|---|
| 172 | 175 | }; |
|---|
| rb531cab |
r7a57427 |
|
| 56 | 56 | p_reader = xml_ReaderCreate( p_xml, p_stream ); |
|---|
| 57 | 57 | |
|---|
| 58 | | |
|---|
| 59 | 58 | if( xml_ReaderRead( p_reader ) != 1 || |
|---|
| 60 | 59 | xml_ReaderNodeType( p_reader ) != XML_READER_STARTELEM ) |
|---|
| r83f23b6 |
r7a57427 |
|
| 273 | 273 | p_new->val.f_float = f_pos; |
|---|
| 274 | 274 | p_new->i_timeToGo = i_time; |
|---|
| | 275 | p_new->psz_alternate_button = strdup( _("Cancel" ) ); |
|---|
| 275 | 276 | |
|---|
| 276 | 277 | if( psz_title ) |
|---|