Changeset 91 for branches/v2.9_Lars/mediafolder
- Timestamp:
- Oct 1, 2023, 4:30:02 PM (23 months ago)
- Location:
- branches/v2.9_Lars
- Files:
-
- 25 edited
- 23 copied
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/v2.9_Lars
- Property svn:mergeinfo changed
/branches/v2.9 (added) merged: 7-39
- Property svn:mergeinfo changed
-
branches/v2.9_Lars/mediafolder/Help/makefile
r4 r91 15 15 16 16 mediafldr.hlp: mediafldr.ipf mediafldr049.ipf mediafldr031.ipf mediafldr039.ipf \ 17 mediafldr_ecs.ipf mediafldr049_ecs.ipf mediafldr031_ecs.ipf mediafldr039_ecs.ipf 17 mediafldr033.ipf mediafldr034.ipf \ 18 mediafldr_ecs.ipf mediafldr049_ecs.ipf mediafldr031_ecs.ipf mediafldr039_ecs.ipf \ 19 mediafldr033_ecs.ipf 18 20 ifdef ECS_COMPILE 19 21 ipfc mediafldr_ecs.ipf mediafldr.hlp … … 21 23 ipfc mediafldr031_ecs.ipf mediafldr031.hlp 22 24 ipfc mediafldr039_ecs.ipf mediafldr039.hlp 23 ipfc mediafldr088_ecs.ipf mediafldr088.hlp 25 ipfc mediafldr088_ecs.ipf mediafldr088.hlp 26 ipfc mediafldr033_ecs.ipf mediafldr033.hlp 24 27 else 25 28 ipfc mediafldr.ipf … … 27 30 ipfc mediafldr031.ipf 28 31 ipfc mediafldr039.ipf 29 ipfc mediafldr088.ipf 32 ipfc mediafldr088.ipf 33 ipfc mediafldr033.ipf 34 ipfc mediafldr034.ipf 30 35 endif 31 36 … … 43 48 44 49 distribution: 45 -
branches/v2.9_Lars/mediafolder/Help/mediafldr.ipf
r2 r91 1 1 :userdoc. 2 2 3 :docprof .4 5 :title.Help for Media Folder distribution 6 7 :h1 res=100.Help for Media Player 8 : p.9 This object is a Media-Folder. Put any audio file into it 10 for playing. Specify the order of the tracks using drag and drop. 11 Th e usual play controls are available like play, stop or volume.12 :p. 13 More information and updates: 14 :p.15 :link reftype=launch 16 object='netscape.exe' 17 data='http://www.os2world.com/cdwriting'. 18 http&colon.//www.os2world.com/cdwriting:elink. 19 .br 20 :link reftype=launch 21 object='netscape.exe' 22 data='http://www.geocities.com/SiliconValley/Sector/5785/'. 23 http&colon.//www.geocities.com/SiliconValley/Sector/5785/:elink. 24 :p. 3 :docprof toc=123456. 4 5 :title.Help for Media Folder distribution 6 7 .* ---------------------------------------------------------------------------- 8 :h1 res=100 name=mplayer 9 x=left y=bottom width=100% height=100%.Media player 10 11 This object is a Media folder. Drag one or more audio files into it for 12 playing. To reorder, ensure that View | Sort > Always maintain sort order option 13 is deselected, as well as any other sort options which might affect manual 14 ordering, and drag and drop tracks into the folder as desired. 15 16 :p.Use the buttons or :link reftype=hd refid=mkeyboard.Keyboard:elink. to 17 control playback. The Repeat checkbox will cause the currently selected track to 18 continuously replay. The Random checkbox will select tracks arbitrarily, unless 19 the Repeat checkbox has been set. 20 21 :p.More information and updates&colon. 22 23 :p.https&colon.//trac.netlabs.org/cwmmclasses/wiki 24 25 25 :nt. 26 :p. 27 For playing of MP3 files you need the MMIOMP3 procedure written 28 by Russell O'Connor. 29 :p. 30 Get it from 31 :p. 32 :link reftype=launch 33 object='netscape.exe' 34 data='http://www.math.berkeley.edu/~roconnor/'. 35 http&colon.//www.math.berkeley.edu/~roconnor/:elink. 26 A suitable MP3 MMIOProc is required in order to play MP3 files, as is a suitable 27 MMIOProc for Ogg (Vorbis and FLAC) files. These are included in the MMAudio Pak 28 2, available from&colon. 29 30 :p.http&colon.//r6.ca/MMAudioPak/ 31 32 :p.(Ogg formats are supported by default in ArcaOS 5.x and above.) 36 33 :ent. 37 :p. 38 :hp2.Keyboard control:ehp2. 39 :p. 40 Use the following keys to control the media folder. The buttons in the upper part 41 of the folder must have the focus when using the keys. Use :hp2.TAB:ehp2. to switch 42 the focus from the container to the buttons. 43 :p. 44 :ul. 45 :li.:hp8.B:ehp8.ack 46 :li.:hp8.S:ehp8.top 47 :li.:hp8.P:ehp8.ause 48 :li.P:hp8.l:ehp8.ay 49 :li.:hp8.N:ehp8.ext 50 :li.:hp8.R:ehp8.epeat 34 35 .* ---------------------------------------------------------------------------- 36 :h2 res=110 name=mview 37 x=left y=bottom width=100% height=100%.View options 38 39 By default, Media folders are displayed in Details view, listing track- 40 specific details for each file or object which has been added to the main 41 folder. 42 43 :p.To switch to Compact view, select View | Compact from the main menu. In this 44 mode, the folder content is hidden, however, 45 :link reftype=hd refid=mlaunchpad.Launchpad:elink. buttons will be visible. 46 47 :note text='Tip:'.Select files to play contiguously, reordering folder content 48 if necessary, click :hp2.Play:ehp2., and then change the view to Compact. 49 50 .* ---------------------------------------------------------------------------- 51 :h2 res=120 name=mkeyboard 52 x=left y=bottom width=100% height=100%.Keyboard control 53 54 Use the following keys to control the Media folder. The buttons in the upper 55 part of the folder must have focus when using these keys. Use 56 :hp2.<.Tab>.:ehp2. to switch the focus from the container to the buttons. 57 58 :ul compact. 59 :li.:hp2.B:ehp2.ack 60 :li.:hp2.S:ehp2.top 61 :li.:hp2.P:ehp2.ause 62 :li.P:hp2.l:ehp2.ay 63 :li.:hp2.N:ehp2.ext 64 :li.:hp2.R:ehp2.epeat 65 :li.R:hp2.a:ehp2.ndom 51 66 :eul. 52 67 53 :h1 res=200.Help for CD-Player 54 :p. 55 This object is a CD player with FreeDB support. Tracktitles and other information 56 are queried from a FreeDB server if an internet connection is available. 57 :p. 58 More information and updates: 59 :p. 60 :link reftype=launch 61 object='netscape.exe' 62 data='http://www.os2world.com/cdwriting'. 63 http&colon.//www.os2world.com/cdwriting:elink. 64 .br 65 :link reftype=launch 66 object='netscape.exe' 67 data='http://www.geocities.com/SiliconValley/Sector/5785/'. 68 http&colon.//www.geocities.com/SiliconValley/Sector/5785/:elink. 69 :p. 68 .* ---------------------------------------------------------------------------- 69 :h2 res=130 name=mvolume 70 x=left y=bottom width=100% height=100%.Volume slider 71 72 Below the player buttons is the Volume slider. This controls the volume level 73 for playback, within the limits set by the Master volume control for the system. 74 75 .* ---------------------------------------------------------------------------- 76 :h2 res=140 name=mtrackpos 77 x=left y=bottom width=100% height=100%.Track position slider 78 79 To the right of the player buttons is the Track position slider. Drag the 80 slider forward or back to reposition the playback point of the current file. 81 82 .* ---------------------------------------------------------------------------- 83 :h2 res=150 name=mlaunchpad 84 x=left y=bottom width=100% height=100%.Launchpad 85 86 Toward the lower left of the player folder is a square box. Drag and drop a 87 media file on the Launchpad to add it to the palette. The filename is displayed 88 in the button's tooltip. Drag and drop additional files in between existing 89 items in the Launchpad or to the right of the last item. Click any one of these 90 to begin playing it. 91 92 :p.The Launchpad is common across all Media, CD player, and M3U playlist 93 folders. 94 95 :note.When play is started in this manner, the 96 :link reftype=hd refid=mtrackpos.Track position slider:elink. does not reflect 97 the current playback state, and the player buttons do not control playback. Use 98 the button's context menu to control playback, instead. 99 100 :warning.While it is possible to add MP3, Ogg, and other digital media files to 101 the Launchpad, do not add CD tracks here. CD tracks will not be playable from 102 the Launchpad. 103 104 .* ---------------------------------------------------------------------------- 105 :h1 res=200 name=cplayer 106 x=left y=bottom width=100% height=100%.CD player 107 108 This object is a CD player with CDDB support. Track titles and other metadata 109 are queried from a configured FreeDB-compatible server if an internet connection 110 is available. 111 112 :p.More information and updates&colon. 113 114 :p.https&colon.//trac.netlabs.org/cwmmclasses/wiki 115 70 116 :nt. 71 To use FreeDB servers you have to install the appropriate package and you must 72 specify an email address. Use the configuration object to do so. 117 Most CDDB servers follow the FreeDB practice of requiring a valid email address 118 for access. Use the FreeDB Client configuration object in the Multimedia folder 119 to set this. 73 120 :ent. 74 :p. 75 :hp2.Keyboard control:ehp2. 76 :p. 77 Use the following keys to control the player. The buttons in the upper part 78 of the window must have the focus when using the keys. Use :hp2.TAB:ehp2. to switch 79 the focus from the container to the buttons. 80 :p. 81 :ul. 82 :li.:hp8.B:ehp8.ack 83 :li.:hp8.S:ehp8.top 84 :li.:hp8.P:ehp8.ause 85 :li.P:hp8.l:ehp8.ay 86 :li.:hp8.N:ehp8.ext 87 :li.:hp8.R:ehp8.epeat 121 122 .* ---------------------------------------------------------------------------- 123 :h2 res=210 name=cview 124 x=left y=bottom width=100% height=100%.View options 125 126 By default, the CD player is displayed in Details view, listing details for each 127 track on the mounted disc. 128 129 :p.To switch to Compact view, select View | Compact from the main menu. In this 130 mode, the folder content is hidden, however, 131 :link reftype=hd refid=claunchpad.Launchpad:elink. buttons will be visible. 132 133 :note text='Tip:'.Select the first track to be played, click :hp2.Play:ehp2., and 134 then change the view to Compact. 135 136 .* ---------------------------------------------------------------------------- 137 :h2 res=220 name=ckeyboard 138 x=left y=bottom width=100% height=100%.Keyboard control 139 140 Use the following keys to control the CD Player. The buttons in the upper 141 part of the player must have focus when using these keys. Use 142 :hp2.<.Tab>.:ehp2. to switch the focus from the container to the buttons. 143 144 :ul compact. 145 :li.:hp2.B:ehp2.ack 146 :li.:hp2.S:ehp2.top 147 :li.:hp2.P:ehp2.ause 148 :li.P:hp2.l:ehp2.ay 149 :li.:hp2.N:ehp2.ext 150 :li.:hp2.R:ehp2.epeat 88 151 :eul. 89 152 90 :h1 res=300.Help for playlist editor 91 :p. 92 Use the playlist editor to create or modify M3U playlists. These playlists 93 are for example used by portable MP3 players. Such a playlist file is a text file 94 containing the filenames of every track to be played. 95 :p. 96 Weitere Informationen und Updates: 97 :p. 98 :link reftype=launch 99 object='netscape.exe' 100 data='http://www.os2world.com/cdwriting'. 101 http&colon.//www.os2world.com/cdwriting:elink. 102 .br 103 :link reftype=launch 104 object='netscape.exe' 105 data='http://www.geocities.com/SiliconValley/Sector/5785/'. 106 http&colon.//www.geocities.com/SiliconValley/Sector/5785/:elink. 107 153 .* ---------------------------------------------------------------------------- 154 :h2 res=230 name=cvolume 155 x=left y=bottom width=100% height=100%.Volume slider 156 157 Below the player buttons is the Volume slider. This controls the volume level 158 for playback, within the limits set by the Master volume control for the system. 159 160 .* ---------------------------------------------------------------------------- 161 :h2 res=240 name=ctrackpos 162 x=left y=bottom width=100% height=100%.Track position slider 163 164 To the right of the player buttons is the Track position slider. Drag the 165 slider forward or back to reposition the playback point of the current track. 166 167 .* ---------------------------------------------------------------------------- 168 :h2 res=250 name=claunchpad 169 x=left y=bottom width=100% height=100%.Launchpad 170 171 Toward the lower left of the player folder is a square box. Drag and drop a 172 media file on the Launchpad to add it to the palette. The filename is displayed 173 in the button's tooltip. Drag and drop additional files in between existing 174 items in the Launchpad or to the right of the last item. Click any one of these 175 to begin playing it. 176 177 :p.The Launchpad is common across all Media, CD player, and M3U playlist 178 folders. 179 180 :note.When play is started in this manner, the 181 :link reftype=hd refid=mtrackpos.Track position slider:elink. does not reflect 182 the current playback state, and the player buttons do not control playback. Use 183 the button's context menu to control playback, instead. 184 185 :warning.While it is possible to add MP3, Ogg, and other digital media files to 186 the Launchpad, do not add CD tracks here. CD tracks will not be playable from 187 the Launchpad. 188 189 .* ---------------------------------------------------------------------------- 190 :h1 res=300 name=peditor 191 x=left y=bottom width=100% height=100%.Playlist editor 192 193 Use the Playlist editor to modify M3U playlists. An M3U playlist is a text 194 file which contains paths (URLs) to the tracks it references. 195 196 :p.M3U (Moving Picture Experts Group Audio Layer 3 Uniform Resource Locator) is 197 a :hp1.de facto:ehp1. standard, generally recognized by most MP3 players. 198 199 :p.To add tracks, simply drag and drop them into the editor. To reorder, ensure 200 that :hp1.Always maintain sort order:ehp1. option on the :hp2.Sort:ehp2. submenu 201 is deselected, as well as any other sort options which might affect manual 202 ordering, and drag and drop the tracks as desired. Save the playlist by 203 selecting :hp2.File | Save:ehp2. from the menu. 204 205 :p.To create a new playlist, drag the M3U playlist template from the Multimedia 206 Templates folder to a suitable location on the desktop. 207 208 :p.More information and updates&colon. 209 210 :p.https&colon.//trac.netlabs.org/cwmmclasses/wiki 211 212 .* ---------------------------------------------------------------------------- 213 :h2 res=350 name=plaunchpad 214 x=left y=bottom width=100% height=100%.Launchpad 215 216 Toward the lower left of the M3U playlist editor is a square box. Drag and drop 217 a media file on the Launchpad to add it to the palette. The filename is 218 displayed in the button's tooltip. Drag and drop additional files in between 219 existing items in the Launchpad or to the right of the last item. Click any one 220 of these to begin playing it. 221 222 :p.The Launchpad is common across all Media, CD player, and M3U playlist 223 folders. 224 225 :note.Use the button's context menu to control playback. 226 227 :warning.While it is possible to add MP3, Ogg, and other digital media files to 228 the Launchpad, do not add CD tracks here. CD tracks will not be playable from 229 the Launchpad. 108 230 109 231 :euserdoc. 110 -
branches/v2.9_Lars/mediafolder/c/cddb/cddb.cpp
r40 r91 88 88 delete(tempTrack); 89 89 } 90 90 91 91 if(nextCddb)delete nextCddb; 92 92 … … 129 129 if(tempTrack) { 130 130 /* Yes, add the rest of the title to that what we already have */ 131 strncat(tempTrack->trackname, track->trackname, sizeof(tempTrack->trackname)-strlen(tempTrack->trackname)-1); 131 strncat(tempTrack->trackname, track->trackname, sizeof(tempTrack->trackname)-strlen(tempTrack->trackname)-1); 132 132 delete(track); 133 133 return; … … 136 136 tempTrack=firstTrack; 137 137 while(tempTrack->nextTrack) { 138 tempTrack=tempTrack->nextTrack; 138 tempTrack=tempTrack->nextTrack; 139 139 } 140 140 tempTrack->nextTrack=track; 141 return; 141 return; 142 142 } 143 143 … … 152 152 return tempTrack; 153 153 154 tempTrack=tempTrack->nextTrack; 154 tempTrack=tempTrack->nextTrack; 155 155 } 156 156 … … 169 169 170 170 #if 0 171 /* now defined in printHelper.cpp 171 /* now defined in printHelper.cpp 172 172 or cddbhelper.cpp. By choosing the right module to link to, it's possible 173 173 to redirect the messages without changing this module. Used for different … … 191 191 fileHandle=open("cddb.out",O_APPEND|O_TEXT|O_WRONLY); 192 192 if(fileHandle==-1) { 193 printError( "Cannot open cddb.out");193 printError((char *)"Cannot open cddb.out"); 194 194 return; 195 195 } … … 205 205 206 206 int readResponse(int s, char * buffer,int size) 207 { 207 { 208 208 int a; 209 209 int rc; 210 210 211 211 rc=1; 212 212 for(a=0;a<size&&rc>0;a++) { … … 217 217 } 218 218 if(rc==-1) 219 return CDDB_ERROR; 220 } 221 219 return CDDB_ERROR; 220 } 221 222 222 return CDDB_ERROR; 223 223 } … … 237 237 case '3': return CDDB_MORE; 238 238 case '4': 239 printError( "CDDB server error");239 printError((char *)"CDDB server error"); 240 240 return CDDB_ERROR; 241 241 case '5': 242 printError( "CDDB client error");242 printError((char *)"CDDB client error"); 243 243 return CDDB_ERROR; 244 244 default: 245 printError( "Unknown error");245 printError((char *)"Unknown error"); 246 246 break; 247 247 } … … 258 258 /* Handshaking */ 259 259 if(verbose) 260 printError( "Handshaking... ");260 printError((char *)"Handshaking... "); 261 261 sprintf(buffer,"cddb hello %s %s %s %s\n",username,hostname,clientname,version); 262 if(verbose==2) 262 if(verbose==2) 263 263 printError(buffer); 264 264 rc=write(s,buffer,strlen(buffer)); 265 265 if(rc==-1) { 266 printError( "Handshaking: cannot write to CDDB server");267 return -1; 268 } 269 if(verbose) 270 printError( "done\n");271 if(verbose==2) 272 printError( "Response: ");273 266 printError((char *)"Handshaking: cannot write to CDDB server"); 267 return -1; 268 } 269 if(verbose) 270 printError((char *)"done\n"); 271 if(verbose==2) 272 printError((char *)"Response: "); 273 274 274 rc=readResponse(s,buffer,sizeof(buffer)); 275 275 if(rc==CDDB_ERROR) { 276 printError( "Handshaking: cannot get response");277 return -1; 278 } 279 if(verbose==2) 276 printError((char *)"Handshaking: cannot get response"); 277 return -1; 278 } 279 if(verbose==2) 280 280 printErrorCR(buffer); 281 281 282 282 if(check_cddb_code(buffer)==CDDB_ERROR) 283 283 return -1; … … 297 297 do { 298 298 if(verbose) 299 printError( "\nSetting protocol level... ");299 printError((char *)"\nSetting protocol level... "); 300 300 sprintf(buffer,"proto %d\n",iProtLevel); 301 301 printError(buffer); 302 302 rc=write(s,buffer,strlen(buffer)); 303 303 if(rc==-1) { 304 printError( "Protocol: cannot write to CDDB server");304 printError((char *)"Protocol: cannot write to CDDB server"); 305 305 return -1; 306 306 } 307 307 if(verbose) 308 printError( "done\n");308 printError((char *)"done\n"); 309 309 if(verbose==2) 310 printError( "Response: ");311 310 printError((char *)"Response: "); 311 312 312 rc=readResponse(s,buffer,sizeof(buffer)); 313 313 if(rc==CDDB_ERROR) { 314 printError( "Set protocol: cannot get response");314 printError((char *)"Set protocol: cannot get response"); 315 315 return -1; 316 316 } 317 317 if(verbose==2) 318 318 printErrorCR(buffer); 319 319 320 320 /* Check cddb code */ 321 321 if(check_cddb_code(buffer)==CDDB_ERROR) { … … 326 326 break; 327 327 /* protocol not supported. Decrement level and try again. */ 328 iProtLevel--; 328 iProtLevel--; 329 329 }while(iProtLevel>0); 330 330 331 331 return 0; 332 332 } … … 343 343 do { 344 344 rc=readResponse(s,buffer,sizeof(buffer)); /* Get next line */ 345 345 346 346 if(rc==CDDB_ERROR) 347 347 return root; /* return what we have so far */ … … 351 351 352 352 /* A new cddb instance for every match */ 353 Cddb=new cddb( "","","",1); /* One fuzzy match or one of several matches */353 Cddb=new cddb((char *)"",(char *)"",(char *)"",1); /* One fuzzy match or one of several matches */ 354 354 /* Get the data for this match */ 355 355 sscanf(buffer, " %20s %x %100[^/\r\n] / %100[^\r\n]", Cddb->category,&Cddb->discid,Cddb->artist,Cddb->title); … … 359 359 else 360 360 root->linkCddb(Cddb); 361 361 362 362 }while(true); 363 363 … … 383 383 /* Sending query */ 384 384 if(verbose) 385 printError( "Sending query cmd... ");385 printError((char *)"Sending query cmd... "); 386 386 /* Build cmd-line */ 387 387 sprintf(buffer,"cddb query %08x %d",cddbInfo->discid,cddbInfo->numTracks); … … 389 389 rc=snprintf(track,sizeof(track)," %d",cddbInfo->startSector[a]); 390 390 if(rc==EOF||rc>=sizeof(track)) { 391 printError( "Query: buffer overrun while formatting track offsets.\nPlease report this bug.\n");391 printError((char *)"Query: buffer overrun while formatting track offsets.\nPlease report this bug.\n"); 392 392 return 0; 393 393 } 394 394 if(sizeof(buffer)-strlen(buffer) <= strlen(track)) { 395 printError( "Query: buffer overrun while adding track offsets to command.\nPlease report this bug.\n");395 printError((char *)"Query: buffer overrun while adding track offsets to command.\nPlease report this bug.\n"); 396 396 return 0; 397 397 } … … 401 401 rc=snprintf(track,sizeof(track), " %d\n",cddbInfo->discLength); 402 402 if(rc==EOF||rc>=sizeof(track)) { 403 printError( "Query: buffer overrun while formatting disclength.\nPlease report this bug.\n");403 printError((char *)"Query: buffer overrun while formatting disclength.\nPlease report this bug.\n"); 404 404 return 0; 405 405 } 406 406 if(sizeof(buffer)-strlen(buffer) <= strlen(track)) { 407 printError( "Query: buffer overrun while adding disclength to command.\nPlease report this bug.\n");407 printError((char *)"Query: buffer overrun while adding disclength to command.\nPlease report this bug.\n"); 408 408 return 0; 409 409 } … … 415 415 rc=write(s,buffer,strlen(buffer)); 416 416 if(rc==-1) { 417 printError( "Query: cannot write to CDDB server");417 printError((char *)"Query: cannot write to CDDB server"); 418 418 return 0; 419 419 } 420 420 if(verbose) 421 printError( " done\n");422 if(verbose==2) 423 printError( "Response: ");424 421 printError((char *)" done\n"); 422 if(verbose==2) 423 printError((char *)"Response: "); 424 425 425 rc=readResponse(s,buffer,sizeof(buffer)); 426 426 //rc=read(s,buffer,sizeof(buffer)-1); 427 427 if(rc==CDDB_ERROR) { 428 printError( "Query: cannot get response");428 printError((char *)"Query: cannot get response"); 429 429 return 0; 430 430 } … … 440 440 { 441 441 case 200: /* exact match */ 442 Cddb=new cddb( "","","");442 Cddb=new cddb((char *)"",(char *)"",(char *)""); 443 443 444 444 sscanf(buffer+4, "%20s %x %100[^/\r\n] / %100[^\r\n]", Cddb->category,&Cddb->discid,Cddb->artist,Cddb->title); … … 457 457 /* We shouldn't reach this */ 458 458 return 0; 459 } 459 } 460 460 461 461 /* Reads the CDDB banner from the server after connecting */ … … 471 471 rc=readResponse(s,buffer,sizeof(buffer)); 472 472 if(rc==CDDB_ERROR) { 473 printError( "Cannot read CDDB-Banner");473 printError((char *)"Cannot read CDDB-Banner"); 474 474 return -1; 475 475 } … … 493 493 int iTrack=0; 494 494 int iTemp=0; 495 495 496 496 do{ 497 497 rc=readResponse(s,buffer,sizeof(buffer)); 498 498 if(rc==CDDB_ERROR) { 499 printError( "Read request: cannot get response");499 printError((char *)"Read request: cannot get response"); 500 500 return CDDB_ERROR; 501 501 } … … 504 504 if(buffer[0]!='.') 505 505 printData(buffer); 506 506 507 507 if(buffer[0]=='#') /* This is a comment */ 508 508 { } … … 511 511 if(buffer[0]=='.') /* End of data */ 512 512 return CDDB_OK; /* Done */ 513 513 514 514 //printf("Found data: %s\n",buffer); 515 515 sscanf(buffer,"%20[^0-9=]",key); … … 524 524 }while(rc==CDDB_MORE); 525 525 526 return CDDB_OK; 526 527 } 527 528 … … 534 535 535 536 /* Build cmd-line */ 536 sprintf(buffer,"cddb read %s %08x\n",Cddb->category,Cddb->discid); 537 if(verbose) 538 printError( "\nSending read cmd... ");537 sprintf(buffer,"cddb read %s %08x\n",Cddb->category,Cddb->discid); 538 if(verbose) 539 printError((char *)"\nSending read cmd... "); 539 540 if(verbose==2) 540 541 printError(buffer); 541 542 542 543 rc=write(s,buffer,strlen(buffer)); 543 544 if(rc==-1) { 544 printError( "Read request: cannot write to CDDB server");545 return -1; 546 } 547 if(verbose) 548 printError( "done\n");549 if(verbose==2) 550 printError( "Response: ");551 545 printError((char *)"Read request: cannot write to CDDB server"); 546 return -1; 547 } 548 if(verbose) 549 printError((char *)"done\n"); 550 if(verbose==2) 551 printError((char *)"Response: "); 552 552 553 rc=readResponse(s,buffer,sizeof(buffer)); 553 554 if(rc==CDDB_ERROR) { 554 printError( "Read request: cannot get response");555 return -1; 556 } 557 if(verbose==2) 555 printError((char *)"Read request: cannot get response"); 556 return -1; 557 } 558 if(verbose==2) 558 559 printError(buffer); 559 560 if(check_cddb_code(buffer)==CDDB_ERROR) 560 561 return CDDB_ERROR; 561 562 562 /* Get the data */ 563 /* Get the data */ 563 564 read_and_parse(s,Cddb); 564 return CDDB_OK; 565 return CDDB_OK; 565 566 } 566 567 … … 577 578 /* Creating socket */ 578 579 if(verbose) 579 printError( "Creating socket... ");580 printError((char *)"Creating socket... "); 580 581 s=socket(AF_INET,SOCK_STREAM,0); 581 582 if(s==-1) { 582 printError( "Cannot create socket!");583 printError((char *)"Cannot create socket!"); 583 584 return -1; 584 585 } 585 586 *skt=s; 586 587 if(verbose) 587 printError( "Socket created\n");588 printError((char *)"Socket created\n"); 588 589 589 590 /* Querying host */ 590 591 if(verbose) 591 printError( "Querying host... ");592 printError((char *)"Querying host... "); 592 593 he = gethostbyname(host); 593 594 if(he==NULL) { 594 printError( "Cannot get host address.\ngethostbyname() returned error: ");595 printError((char *)"Cannot get host address.\ngethostbyname() returned error: "); 595 596 switch (h_errno) 596 597 { 597 598 case HOST_NOT_FOUND: 598 printError( "Host not found\n");599 printError((char *)"Host not found\n"); 599 600 break; 600 601 case TRY_AGAIN: 601 printError( "Temporary error. Try again later.\n");602 printError((char *)"Temporary error. Try again later.\n"); 602 603 break; 603 604 case NO_DATA: 604 printError( "Name valid but name server has no associated address.\n");605 printError((char *)"Name valid but name server has no associated address.\n"); 605 606 break; 606 607 case NO_RECOVERY: 607 printError( "Unrecoverable error.\n");608 printError((char *)"Unrecoverable error.\n"); 608 609 break; 609 610 default: 610 printError( "Unknown error\n");611 printError((char *)"Unknown error\n"); 611 612 } 612 613 /* Close the socket */ 613 614 close(s); 614 615 return -1; 615 } 616 617 if(verbose) 618 printError( "Host found.\n");616 } 617 618 if(verbose) 619 printError((char *)"Host found.\n"); 619 620 620 621 621 622 /* Connecting to host */ 622 623 if(verbose) 623 printError( "Connecting to host... ");624 printError((char *)"Connecting to host... "); 624 625 memset(&sa_in,0, sizeof(struct sockaddr_in)); 625 626 … … 634 635 { 635 636 case EBADF: 636 printError( "No valid socket descriptor");637 printError((char *)"No valid socket descriptor"); 637 638 break; 638 639 case EISCONN: 639 printError( "The socket is already connected\n");640 printError((char *)"The socket is already connected\n"); 640 641 break; 641 642 case ETIMEDOUT: 642 printError( "No connection. Timed out.\n");643 printError((char *)"No connection. Timed out.\n"); 643 644 break; 644 645 case ECONNREFUSED: 645 printError( "Connection refused by host.\n");646 printError((char *)"Connection refused by host.\n"); 646 647 break; 647 648 case EADDRNOTAVAIL: 648 printError( "Address not avaiable.\n");649 printError((char *)"Address not avaiable.\n"); 649 650 break; 650 651 651 652 default: 652 printError( "General failure: Cannot connect to host\n");653 printError((char *)"General failure: Cannot connect to host\n"); 653 654 } 654 655 close(s); … … 656 657 } 657 658 if(verbose) 658 printError( "connected.\n");659 printError((char *)"connected.\n"); 659 660 return 0; 660 661 } -
branches/v2.9_Lars/mediafolder/c/cddb/printhelper.cpp
r2 r91 30 30 */ 31 31 32 void externprintError(char* errorString)32 void printError(char* errorString) 33 33 { 34 34 fprintf(stderr,"%s",errorString); 35 35 } 36 36 37 void externprintErrorCR(char* errorString)37 void printErrorCR(char* errorString) 38 38 { 39 39 fprintf(stderr,"%s\n",errorString); … … 41 41 42 42 43 void externprintData(char* outString)43 void printData(char* outString) 44 44 { 45 45 int fileHandle; -
branches/v2.9_Lars/mediafolder/c/cddb/res/makefile
r53 r91 13 13 14 14 CPPFILES = 15 all: pmcddb001.dll pmcddb049.dll pmcddb031.dll pmcddb039.dll pmcddb088.dll 15 all: pmcddb001.dll pmcddb049.dll pmcddb031.dll pmcddb039.dll pmcddb088.dll pmcddb033.dll pmcddb034.dll 16 16 17 17 … … 29 29 gcc -Zdll -Zomf -I$(INC) pmcddb049.c pmcddb049.def 30 30 rc pmcddb049.res pmcddb049.dll 31 # icc $(CPPFLAGS) -I$(INC) pmcddb001.c pmcddb04á.def32 31 33 32 pmcddb049.res: pmcddb049.rc pmcddb049.dlg $(INC)\pmcddbres.h … … 37 36 gcc -Zdll -Zomf -I$(INC) pmcddb031.c pmcddb031.def 38 37 rc pmcddb031.res pmcddb031.dll 39 # icc $(CPPFLAGS) -I$(INC) pmcddb001.c pmcddb04á.def40 38 41 39 pmcddb031.res: pmcddb031.rc pmcddb031.dlg $(INC)\pmcddbres.h … … 45 43 gcc -Zdll -Zomf -I$(INC) pmcddb039.c pmcddb039.def 46 44 rc pmcddb039.res pmcddb039.dll 47 # icc $(CPPFLAGS) -I$(INC) pmcddb001.c pmcddb04á.def48 45 49 46 pmcddb039.res: pmcddb039.rc pmcddb039.dlg $(INC)\pmcddbres.h … … 57 54 rc -i $(INC) -r pmcddb088.rc 58 55 56 pmcddb033.dll: pmcddb033.c pmcddb033.res 57 gcc -Zdll -Zomf -I$(INC) pmcddb033.c pmcddb033.def 58 rc pmcddb033.res pmcddb033.dll 59 60 pmcddb033.res: pmcddb033.rc pmcddb033.dlg $(INC)\pmcddbres.h 61 rc -i $(INC) -r pmcddb033.rc 62 63 pmcddb034.dll: pmcddb034.c pmcddb034.res 64 gcc -Zdll -Zomf -I$(INC) pmcddb034.c pmcddb034.def 65 rc pmcddb034.res pmcddb034.dll 66 67 pmcddb034.res: pmcddb034.rc pmcddb034.dlg $(INC)\pmcddbres.h 68 rc -i $(INC) -r pmcddb034.rc 69 59 70 clean: 60 71 -rm *.obj … … 64 75 cleaner: 65 76 -rm *.*~ 66 67 68 -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb007.DEF
r90 r91 19 19 ; */ 20 20 21 LIBRARY PMDB00 1 INITGLOBAL21 LIBRARY PMDB007 INITINSTANCE TERMINSTANCE 22 22 DESCRIPTION '$@#(c) Chris Wohlgemuth :0.1 (12.05.02) (PMDB001.DLL)#@##1## 12.05.2002 18:17:00 ;-) ::::1::@@Resource-DLL' 23 PROTMODE 24 CODE LOADONCALL DISCARDABLE 25 DATA SINGLE SHARED DISCARDABLE 26 EXPORTS 27 queryLanguage 23 DATA MULTIPLE NONSHARED 24 EXPORTS 25 queryLanguage = _queryLanguage 28 26 -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb033.DEF
r90 r91 22 22 ; */ 23 23 24 LIBRARY PMDB033 INIT GLOBAL24 LIBRARY PMDB033 INITINSTANCE TERMINSTANCE 25 25 DESCRIPTION '$@#(c) Chris Wohlgemuth :0.1 (12.05.02) (PMDB033.DLL)#@##1## 12.05.2002 18:17:00 Mon ;-) ::::1::@@DLL Ressource' 26 PROTMODE 27 CODE LOADONCALL DISCARDABLE 28 DATA SINGLE SHARED DISCARDABLE 26 DATA MULTIPLE NONSHARED 29 27 EXPORTS 30 28 queryLanguage = _queryLanguage -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb034.DEF
r90 r91 18 18 ; */ 19 19 20 LIBRARY PMDB034 INIT GLOBAL20 LIBRARY PMDB034 INITINSTANCE TERMINSTANCE 21 21 DESCRIPTION '$@#ž Chris Wohlgemuth :0.1 (12.05.02) (PMDB034.DLL)#@##1## 12.05.2002 18:17:00 Mi ;-) ::::1::@@DLL de recursos' 22 PROTMODE 23 CODE LOADONCALL DISCARDABLE 24 DATA SINGLE SHARED DISCARDABLE 22 DATA MULTIPLE NONSHARED 25 23 EXPORTS 26 24 queryLanguage = _queryLanguage 27 25 -
branches/v2.9_Lars/mediafolder/c/cddb/res/pmcddb034.c
r90 r91 17 17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 18 18 */ 19 /*20 * French translation....: Guillaume Gay <guillaume[dot]gay[arobase]gmail[dot]com>21 * Version...............: 2020-07-2222 */23 19 24 20 #include <os2.h> … … 26 22 PSZ queryLanguage() 27 23 { 28 return " Franais (033)";24 return "Espagnol (034)"; 29 25 } -
branches/v2.9_Lars/mediafolder/c/helper/cddbhelper.cpp
r57 r91 38 38 */ 39 39 40 void externprintError(char* errorString)40 void printError(char* errorString) 41 41 { 42 42 char buffer[CCHMAXPATH] = {0}; … … 55 55 } 56 56 57 void externprintErrorCR(char* errorString)57 void printErrorCR(char* errorString) 58 58 { 59 59 fprintf(stderr,"%s\n",errorString); … … 63 63 64 64 65 void externprintData(char* outString)65 void printData(char* outString) 66 66 { 67 67 int fileHandle; 68 68 int rc; 69 69 70 /* The name cddbDataFile is defined in the main pmcddb.cpp file. It is 70 /* The name cddbDataFile is defined in the main pmcddb.cpp file. It is 71 71 the discid (this is the native format of the data hold by a cddb server) */ 72 72 fileHandle=open(cddbDataFile,O_APPEND|O_TEXT|O_WRONLY|O_CREAT,S_IWRITE); -
branches/v2.9_Lars/mediafolder/include/mediafolderres.h
r4 r91 121 121 #define IDGB_ABOUT 605 122 122 #define IDST_URL2 606 123 #define IDST_PRODCOPY2 607 123 124 124 125 #define IDSL_TEST 305 … … 127 128 128 129 #define IDPTR_ARROWWE 2 /* WE Cursor for slider controls */ 129 130 131 132 133 134 135 136 -
branches/v2.9_Lars/mediafolder/prog_tutorial/hiddenfeatures.inc
r4 r91 12 12 :p. 13 13 Even if a new program isn't specified in the INI file the classes improve the default 14 behavio ur by not starting the player as part of the WPS process. So if the player crashes15 the WPS doesn't crash anymore .14 behavior by not starting the player as part of the WPS process. So if the player crashes 15 the WPS doesn't crash anymore. 16 16 17 17 … … 30 30 :p. 31 31 Even if a new program isn't specified in the INI file the classes improve the default 32 behavio ur by not starting the editor as part of the WPS process. So if the editor crashes32 behavior by not starting the editor as part of the WPS process. So if the editor crashes 33 33 the WPS doesn't crash anymore. 34 34 … … 47 47 :p. 48 48 Even if a new program isn't specified in the INI file the classes improve the default 49 behavio ur by not starting the player as part of the WPS process. So if the player crashes50 the WPS doesn't crash anymore .49 behavior by not starting the player as part of the WPS process. So if the player crashes 50 the WPS doesn't crash anymore. 51 51 52 52 … … 64 64 :p. 65 65 Even if a new program isn't specified in the INI file the classes improve the default 66 behavio ur by not starting the player as part of the WPS process. So if the player crashes67 the WPS doesn't crash anymore .66 behavior by not starting the player as part of the WPS process. So if the player crashes 67 the WPS doesn't crash anymore. 68 68 69 69 … … 81 81 :p. 82 82 Even if a new program isn't specified in the INI file the classes improve the default 83 behavio ur by not starting the player as part of the WPS process. So if the default player crashes83 behavior by not starting the player as part of the WPS process. So if the default player crashes 84 84 the WPS doesn't crash, too. 85 85 … … 108 108 :ent. 109 109 :p. 110 Default behavio ur is to create a new MEdia folder and fill it with the tracks specified in the111 M3U file. Using this setting it's possible to use another M P3player.110 Default behavior is to create a new Media folder and fill it with the tracks specified in the 111 M3U file. Using this setting it's possible to use another M3U player. 112 112 113 113 … … 126 126 :p. 127 127 Even if a new program isn't specified in the INI file the classes improve the default 128 behavio ur by not starting the editor as part of the WPS process. So if the editor crashes129 the WPS doesn't crash anymore. 128 behavior by not starting the editor as part of the WPS process. So if the editor crashes 129 the WPS doesn't crash anymore. 130 130 131 131 -
branches/v2.9_Lars/mediafolder/prog_tutorial/mediafldrprog.ipf
r4 r91 3 3 :docprof. 4 4 5 :title.Programming tutorial for Multimedia classes 5 :title.Programming tutorial for Multimedia classes 6 6 7 7 :h1 res=100.Introduction … … 13 13 For use of the REXX interface 14 14 :p. 15 :link reftype=launch 16 object='netscape.exe' 17 data='http://www.os2world.com/cdwriting'. 18 WPS-Wizard V0.2.0:elink. (http&colon.//www.os2world.com/cdwriting) 19 :p. 20 or above must be installed. 15 WPS-Wizard V0.2.0 (http&colon.//www.os2world.com/cdwriting) 16 :p. 17 or above must be installed. 21 18 22 19 :h1 res=200 … … 29 26 :li.:link reftype=hd res=211.MEDIAFLDRPLAY:elink. Start playing 30 27 :li.:link reftype=hd res=215.MEDIAFLDRPLAYFIRST:elink. Start first track 31 :li.:link reftype=hd res=212.MEDIAFLDRPREV:elink. Skip to previ us track32 :li.:link reftype=hd res=216.MEDIAFLDRREPEAT:elink. Set repeat .28 :li.:link reftype=hd res=212.MEDIAFLDRPREV:elink. Skip to previous track 29 :li.:link reftype=hd res=216.MEDIAFLDRREPEAT:elink. Set repeat 33 30 :li.:link reftype=hd res=213.MEDIAFLDRSTOP:elink. Stop playing 34 31 :li.:link reftype=hd res=214.MEDIAFLDRVOLUME:elink. Set volume … … 146 143 :p. 147 144 Set the track name of the audio file. This information is saved in the EA of the file. For 148 MP3 files this information i dalso saved in the ID3 tag.145 MP3 files this information is also saved in the ID3 tag. 149 146 :xmp. 150 147 /* REXX - This command adds the track name to the audio file */ … … 225 222 Reread the audio information from the file and update internal object data. 226 223 :xmp. 227 /* REXX - This command adds the genreof the audio file */224 /* REXX - This command rereads the information of the audio file */ 228 225 229 226 rc=SysSetObjectData('x&colon.\path_to_folder\audio_file.ext','MMREFRESH=1') … … 234 231 group=2 235 232 .MMAUDIOCOPYTAGTO 236 :p. 237 Reread the audio information from the file and update internal object data. 238 :xmp. 239 /* REXX - This command adds the genre of the audio file */ 233 234 Read the audio information from the file tag and copies it to another file. 235 236 :xmp. 237 /* REXX - This command copies the file tag information to another audio file */ 240 238 241 239 rc=SysSetObjectData('x&colon.\path_to_folder\audio_file.ext','MMAUDIOCOPYTAGTO=x&colon.\path_to_folder\another_file.ext') … … 311 309 param2 /* Second method parameter */ 312 310 :p. 313 rc=MFldrCallFunc(methodName, Object, 311 rc=MFldrCallFunc(methodName, Object, 314 312 param1, param2, ...); 315 313 :exmp. … … 421 419 param2 /* Second method parameter */ 422 420 :p. 423 rc=MMCallFunc(methodName, Object, 421 rc=MMCallFunc(methodName, Object, 424 422 param1, param2, ...); 425 423 :exmp. … … 517 515 :li.:link reftype=hd res=420.Disable audio file checking:elink. 518 516 :li.:link reftype=hd res=421.Disable ID3 tag reading:elink. 519 :li.:link reftype=hd res=422.Set time for message box display:elink. 517 :li.:link reftype=hd res=422.Replace M3U editor:elink. 518 :li.:link reftype=hd res=423.Replace M3U player:elink. 520 519 :eul. 521 520 -
branches/v2.9_Lars/mediafolder/prog_tutorial/newmethods.inc
r2 r91 121 121 .cwPauseAudioFile - Remarks 122 122 :p. 123 The frame handle of the media folder is given to the s kript as a parameter123 The frame handle of the media folder is given to the script as a parameter 124 124 when started. 125 125 … … 177 177 .cwPlayAudioFile - Remarks 178 178 :p. 179 The frame handle of the media folder is given to the s kript as a parameter179 The frame handle of the media folder is given to the script as a parameter 180 180 when started. The flag parameter may have one of the following values. 181 181 … … 292 292 .cwSetStatusLineText - Remarks 293 293 :p. 294 If the text parameter is 0 the folder shows it 's standard294 If the text parameter is 0 the folder shows its standard 295 295 status line text. 296 296 … … 348 348 .cwStopAudioFile - Remarks 349 349 :p. 350 The frame handle of the media folder is given to the s kript as a parameter350 The frame handle of the media folder is given to the script as a parameter 351 351 when started. 352 352 … … 407 407 .cwmmQueryTrackInfo - Remarks 408 408 :p. 409 The object must be an instance of :hp2.CWAudio:ehp2. or of one of it 's409 The object must be an instance of :hp2.CWAudio:ehp2. or of one of its 410 410 subclasses (:hp2.CWMP3:ehp2., :hp2.MMWAV:ehp2....). This method was introduced 411 411 by :hp2.CWAudio:ehp2.. Since V0.2.5 of the classes the class names are :hp2.MMAudio:ehp2. … … 446 446 :li.IDINFO_BITRATE 11 447 447 .br 448 Bitrate in Hz (numeric value). This flag is only valid for instances of class MMMP3 and 449 MMOGG. For other classes the return value is undefined. New with V0.2.7. 448 Bitrate in KB per second (numeric value). This flag is only valid for instances 449 of class MMMP3 and MMOGG. For other classes the return value is undefined. New 450 with V0.2.7. 450 451 :eul. 451 452 … … 524 525 :pd.Image format. 525 526 :eparml. 526 :pt.:hp2.info:ehp2. (numeric)527 :pd.The queried information as a string.528 527 :eparml. 529 528 530 531 532 533 -
branches/v2.9_Lars/mediafolder/res/de/about_de.dlg
r74 r91 14 14 CTEXT MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87, 15 15 186, 12, DT_VCENTER | NOT WS_GROUP 16 CTEXT "Copyright (c) netlabs.org 2020", 17 IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP 16 18 CTEXT "Graphiken von Klaus Staedtler-Przyborski", 17 19 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 18 20 NOT WS_GROUP 21 CTEXT "https://trac.netlabs.org/cwmmclasses", IDST_URL1, 22 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 23 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 19 24 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 20 25 END -
branches/v2.9_Lars/mediafolder/res/en/about_en.dlg
r90 r91 1 #define VER_STRING "Media -Ordner V" \1 #define VER_STRING "Media Folder v" \ 2 2 MFLDR_VERSION \ 3 3 BUILD_STRING … … 11 11 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 12 12 12, DT_VCENTER | NOT WS_GROUP 13 CTEXT MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87, 14 186, 12, DT_VCENTER | NOT WS_GROUP 15 CTEXT "Graphics by Klaus Staedtler-Przyborski", 16 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 13 CTEXT MFLDR_AUTHOR, 14 IDST_PRODCOPY, 10, 87, 186, 12, DT_VCENTER | NOT WS_GROUP 15 CTEXT "Copyright (c) netlabs.org 2020", 16 IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP 17 CTEXT "Graphics by Klaus Staedtler-Przyborski", 18 IDST_PRODGRAPHICS, 10, 46, 186, 17, DT_WORDBREAK | 17 19 NOT WS_GROUP 20 CTEXT "https://trac.netlabs.org/cwmmclasses", IDST_URL1, 21 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 18 23 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 19 24 END 20 25 END 21 22 -
branches/v2.9_Lars/mediafolder/res/en/mediafolder_en.dlg
r2 r91 41 41 GROUPBOX "Toolbar", IDGB_TOOLBAR, 9, 24, 181, 127, NOT 42 42 WS_GROUP 43 AUTOCHECKBOX "~Enable fly 43 AUTOCHECKBOX "~Enable fly-over help", IDCB_ENABLETBFLYOVER, 16, 44 44 129, 152, 10 45 45 SPINBUTTON IDSB_TBFLYOVERDELAY, 97, 115, 40, 12, 46 46 SPBS_NUMERICONLY | SPBS_MASTER | SPBS_FASTSPIN | 47 47 WS_GROUP 48 GROUPBOX "Fly over colours and font", IDGB_COLORANDFONT, 15,48 GROUPBOX "Fly-over colors and font", IDGB_COLORANDFONT, 15, 49 49 30, 168, 76, NOT WS_GROUP 50 LTEXT " Klick button for colour- or fontpalette. "50 LTEXT "Click button for color or font palette. " 51 51 " 52 Press <CTRL> during drag 'n drop to change the text colour.",52 Hold <Ctrl> during drag'n'drop to change the text color.", 53 53 IDST_TEXTDEMOFIELD, 23, 35, 95, 57, DT_WORDBREAK 54 54 PRESPARAMS PP_FOREGROUNDCOLOR, 0x000000FFL 55 55 PRESPARAMS PP_BACKGROUNDCOLOR, 0x00FFFFFFL 56 PUSHBUTTON "~Colo ur...", IDPB_COLORPALETTE, 129, 72, 45, 1456 PUSHBUTTON "~Color...", IDPB_COLORPALETTE, 129, 72, 45, 14 57 57 PUSHBUTTON "~Font...", IDPB_FONTPALETTE, 129, 49, 45, 14 58 58 PUSHBUTTON "~Undo", IDPB_COLORUNDO, 16, 7, 52, 14 … … 100 100 END 101 101 END 102 103 -
branches/v2.9_Lars/mediafolder/res/en/mediafolder_en.rc
r4 r91 15 15 BEGIN 16 16 MENUITEM "" , ID_MENUSEPARATOR, MIS_SEPARATOR 17 MENUITEM "~Product Information",ID_ABOUTITEM 17 MENUITEM "~Product Information",ID_ABOUTITEM 18 18 END 19 19 #else … … 21 21 BEGIN 22 22 MENUITEM "" , ID_MENUSEPARATOR, MIS_SEPARATOR 23 MENUITEM "~Media Folder Information",ID_ABOUTITEM 23 MENUITEM "~Media Folder Information",ID_ABOUTITEM 24 24 END 25 25 #endif … … 45 45 BEGIN 46 46 MENUITEM "~Save" , ID_MENUITEMSAVE 47 MENUITEM "" , ID_MENUSEPARATOR, MIS_SEPARATOR 47 MENUITEM "" , ID_MENUSEPARATOR, MIS_SEPARATOR 48 48 MENUITEM "~Exit" , ID_MENUITEMEXIT 49 49 END … … 53 53 BEGIN 54 54 IDSTR_CLOSETITLE "Confirmation" 55 IDSTR_CLOSETEXT "There's currently a songplaying. Do you really want to stop playing and close the player?"55 IDSTR_CLOSETEXT "There's currently an audio file playing. Do you really want to stop playing and close the player?" 56 56 IDSTRSETTING_TOOLBAR "Toolbar" 57 IDSTRS_NOFONTPALETTE "Can't open the font palette. It may have lost it 's ID. Check your INI files."58 IDSTRS_NOCOLORPALETTE "Can't open the color palette. It may have lost it 's ID. Check your INI files."57 IDSTRS_NOFONTPALETTE "Can't open the font palette. It may have lost its ID. Check your INI files." 58 IDSTRS_NOCOLORPALETTE "Can't open the color palette. It may have lost its ID. Check your INI files." 59 59 IDSTRS_MEDIAFLDRSETTINGS "Media-Folder setup" 60 60 #ifdef ECS -
branches/v2.9_Lars/mediafolder/res/es/about_es.dlg
r28 r91 9 9 BEGIN 10 10 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 11 ; CTEXT "Carpeta de medios v0.2.9", IDST_PRODNAME, 36, 107, 135,12 11 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 13 12 12, DT_VCENTER | NOT WS_GROUP 14 CTEXT "Copyright ž Chris Wohlgemuth 2002-2003",13 CTEXT MFLDR_AUTHOR, 15 14 IDST_PRODCOPY, 10, 87, 186, 12, DT_VCENTER | NOT WS_GROUP 16 15 CTEXT "Copyright ž netlabs.org 2020", … … 22 21 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 23 22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 24 ; CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,25 ; 30, 186, 16, DT_WORDBREAK26 ; PRESPARAMS PP_FONTNAMESIZE, "8.Helv"27 23 DEFPUSHBUTTON "~Bien", DID_OK, 83, 3, 40, 14 28 24 END -
branches/v2.9_Lars/mediafolder/res/es/create_res_es_def.CMD
r34 r91 57 57 def=def||'0d'x||'0a'x 58 58 59 def=def||"LIBRARY MFLDR_E N INITGLOBAL"||'0d'x||'0a'x59 def=def||"LIBRARY MFLDR_ES INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x 60 60 def=def||"DESCRIPTION '$@#ž C. Wohlgemuth " 61 61 def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||" #@##1## "||DATE("E")||" "||TIME("N")||" Mi ;-) ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@DLL de recursos para Carpeta de medios v"||theVersion||" -espa€ol-'"||'0d'x||'0a'x 62 def=def||"PROTMODE"||'0d'x||'0a'x 63 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x 64 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x 62 def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x 65 63 def=def||"EXPORTS "||'0d'x||'0a'x 66 64 def=def||" queryLanguage"||'0d'x||'0a'x -
branches/v2.9_Lars/mediafolder/res/es/mediafolder_es.c
r90 r91 17 17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 18 18 */ 19 /*20 * French translation....: Guillaume Gay <guillaume[dot]gay[arobase]gmail[dot]com>21 * Version...............: 2020-07-2322 */23 19 #include <os2.h> 24 20 25 21 PSZ queryLanguage() 26 22 { 27 return " Franais";23 return "Espagnol"; 28 24 } -
branches/v2.9_Lars/mediafolder/res/fr/about_fr.dlg
r26 r91 9 9 BEGIN 10 10 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 11 ; CTEXT "Media-Folder V0.2.9", IDST_PRODNAME, 36, 107, 135,12 11 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 13 12 12, DT_VCENTER | NOT WS_GROUP 14 CTEXT "Copyright (c) Chris Wohlgemuth 2002-2003",13 CTEXT MFLDR_AUTHOR, 15 14 IDST_PRODCOPY, 10, 87, 186, 12, DT_VCENTER | NOT WS_GROUP 16 15 CTEXT "Copyright (c) netlabs.org 2020", … … 22 21 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 23 22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 24 ; CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,25 ; 30, 186, 16, DT_WORDBREAK26 ; PRESPARAMS PP_FONTNAMESIZE, "8.Helv"27 23 DEFPUSHBUTTON "~OK", DID_OK, 83, 3, 40, 14 28 24 END -
branches/v2.9_Lars/mediafolder/res/fr/create_res_fr_def.CMD
r26 r91 89 89 def=def||'0d'x||'0a'x 90 90 91 def=def||"LIBRARY MFLDR_FR INIT GLOBAL"||'0d'x||'0a'x91 def=def||"LIBRARY MFLDR_FR INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x 92 92 def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth " 93 93 def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||" #@##1## "||DATE("E")||" "||TIME("N")||" My ;-) ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||" resource DLL -english-'"||'0d'x||'0a'x 94 def=def||"PROTMODE"||'0d'x||'0a'x 95 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x 96 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x 94 def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x 97 95 def=def||"EXPORTS "||'0d'x||'0a'x 98 96 def=def||" queryLanguage"||'0d'x||'0a'x -
branches/v2.9_Lars/mediafolder/res/it/about_it.dlg
r90 r91 13 13 CTEXT MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87, 14 14 186, 12, DT_VCENTER | NOT WS_GROUP 15 CTEXT "Copyright (c) netlabs.org 2020", 16 IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP 15 17 CTEXT "Graphics by Klaus Staedtler-Przyborski", 16 18 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 17 19 NOT WS_GROUP 20 CTEXT "https://trac.netlabs.org/cwmmclasses", IDST_URL1, 21 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 18 23 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 19 24 END -
branches/v2.9_Lars/mediafolder/res/it/mediafolder_it.rc
r4 r91 78 78 79 79 #ifdef ECS 80 rcinclude "about_ecs_ en.dlg"80 rcinclude "about_ecs_it.dlg" 81 81 #else 82 rcinclude "about_ en.dlg"82 rcinclude "about_it.dlg" 83 83 #endif 84 84 -
branches/v2.9_Lars/mediafolder/res/makefile
r74 r91 6 6 CC = icc 7 7 CPPFLAGS = /Ge- /Gm+ /G4 /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG) 8 INC = ..\ include8 INC = ..\\include 9 9 INC2 = ../include 10 10 DEFS = -
branches/v2.9_Lars/mediafolder/res/nl/about_nl.dlg
r90 r91 13 13 CTEXT MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87, 14 14 186, 12, DT_VCENTER | NOT WS_GROUP 15 CTEXT "Copyright (c) netlabs.org 2020", 16 IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP 15 17 CTEXT "Graphics door Klaus Staedtler-Przyborski", 16 18 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 17 19 NOT WS_GROUP 20 CTEXT "https://trac.netlabs.org/cwmmclasses", IDST_URL1, 21 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 18 23 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 19 24 END -
branches/v2.9_Lars/mediafolder/res/ru/about_ru.dlg
r37 r91 9 9 BEGIN 10 10 GROUPBOX "", IDGB_ABOUT, 3, 21, 200, 108 11 ; CTEXT "Media-Folder V0.2.9", IDST_PRODNAME, 36, 107, 135,12 11 CTEXT VER_STRING, IDST_PRODNAME, 10, 107, 187, 13 12 12, DT_VCENTER | NOT WS_GROUP 14 CTEXT "Copyright (c) Chris Wohlgemuth 2002-2003",13 CTEXT MFLDR_AUTHOR, 15 14 IDST_PRODCOPY, 10, 87, 186, 12, DT_VCENTER | NOT WS_GROUP 16 15 CTEXT "Copyright (c) netlabs.org 2020", … … 22 21 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 23 22 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 24 ; CTEXT "http://www.os2world.com/cdwriting", IDST_URL2, 10,25 ; 30, 186, 16, DT_WORDBREAK26 ; PRESPARAMS PP_FONTNAMESIZE, "8.Helv"27 23 DEFPUSHBUTTON "~ª", DID_OK, 83, 3, 40, 14 28 24 END -
branches/v2.9_Lars/mediafolder/res/ru/create_res_ru_def.CMD
r37 r91 116 116 def=def||'0d'x||'0a'x 117 117 118 def=def||"LIBRARY MFLDR_ EN INITGLOBAL"||'0d'x||'0a'x118 def=def||"LIBRARY MFLDR_RU INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x 119 119 def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth " 120 120 def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||" #@##1## "||DATE("E")||" "||TIME("N")||" ;-) ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@¥áãàá ï DLL Media-Folder V"||theVersion||" -àãá᪚©-'"||'0d'x||'0a'x 121 def=def||"PROTMODE"||'0d'x||'0a'x 122 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x 123 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x 121 def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x 124 122 def=def||"EXPORTS "||'0d'x||'0a'x 125 123 def=def||" queryLanguage"||'0d'x||'0a'x -
branches/v2.9_Lars/mediafolder/res/ru/mediafolder_ru.c
r90 r91 17 17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 18 18 */ 19 /*20 * French translation....: Guillaume Gay <guillaume[dot]gay[arobase]gmail[dot]com>21 * Version...............: 2020-07-2322 */23 19 #include <os2.h> 24 20 25 21 PSZ queryLanguage() 26 22 { 27 return " Franais";23 return "Russian"; 28 24 } -
branches/v2.9_Lars/mediafolder/res/tw/mediafolder_tw.dlg
r90 r91 114 114 CTEXT MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87, 115 115 186, 12, DT_VCENTER | NOT WS_GROUP 116 CTEXT "Copyright (c) netlabs.org 2020", 117 IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP 116 118 CTEXT "Graphics by Klaus Staedtler-Przyborski", 117 119 IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK | 118 120 NOT WS_GROUP 121 CTEXT "https://trac.netlabs.org/cwmmclasses", IDST_URL1, 122 10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP 123 PRESPARAMS PP_FONTNAMESIZE, "8.Helv" 119 124 DEFPUSHBUTTON "~Ok", DID_OK, 83, 3, 40, 14 120 125 END
Note:
See TracChangeset
for help on using the changeset viewer.