/[hegemonie]/hegemonie/ModelViewer/ModelController.m
ViewVC logotype

Diff of /hegemonie/ModelViewer/ModelController.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by ano, Fri Jul 25 15:44:46 2003 UTC revision 1.3 by ano, Fri Aug 1 20:21:05 2003 UTC
# Line 142  Line 142 
142      {      {
143        return [_records objectAtIndex: row];        return [_records objectAtIndex: row];
144      }      }
     
145  }  }
   
 // - (int)browser:(NSBrowser *)sender numberOfRowsInColumn:(int)column  
 // {  
 //   printf("(column , nbcolumn) = (%d,%d)\n",column, [_files count]);  
146    
147  //   if ([_files count] <= column)  - (void) open: (id)sender
148  //      {  {
149  //        printf ("sender path = %s\n", [[sender path] cString]);    [_view performClose: _view];
150                [_paletteOpenFile makeKeyAndOrderFront: _paletteOpenFile];
151  //        [_files addObject:  }
 //                  [_fileData directoryContentsAtPath: [sender path]]];  
             
 //      }  
     
 //   if (column < [_files count])  
 //     return [[_files objectAtIndex: column] count];  
   
 //   return 1;  
     
     
 // }  
   
 // - (void) browser: (NSBrowser*)sender  
 //  willDisplayCell: (id)cell  
 //         atRow: (int)row  
 //        column: (int)column  
 // {  
 //   NSMutableString *newValue = [NSMutableString new];  
   
 //   if ( column > 0 )  
 //     {  
         
 //       //          _files = [_files objectAtIndex:  
 //       //             [sender selectedRowInColumn:(column-1)]];  
         
 //       if ([_files count] <= column)  
 //      {  
             
 //        [_files addObject:  
 //                  [_fileData directoryContentsAtPath: [sender path]]];  
             
 //      }  
         
 //        else  
 //       [_files replaceObjectAtIndex: column  
 //               withObject:  
 //                 [_fileData directoryContentsAtPath:  
 //                              [sender pathToColumn: column]]];  
                   
 //                         //     [[sender selectedCellInColumn:(column-1)]  
 // //                            stringValue]]];  
         
 //     }  
     
 //   printf("row = %d\n",row);  
 //   printf("files count = %d \n", [_files count]);  
     
     
 //   [newValue appendFormat:@"%s",  
 //          [[[_files objectAtIndex: column] objectAtIndex: row]  
 //            cString]];  
     
   
 //   [cell setStringValue: newValue];  
 //   [cell setLoaded:YES];  
 // }  
   
152    
153  - (id) init  - (id) init
154  {  {
155     self = [super init];     self = [super init];
     
156     _records = [_affiche animeNames];     _records = [_affiche animeNames];
   
157     [_slide setNumberOfTickMarks:25];     [_slide setNumberOfTickMarks:25];
     
     
   //  _fileData = [NSFileManager defaultManager];  
   
 //    _files = [NSMutableArray new];  
 //    [_files addObject:  
 //           [[NSArray  alloc] initWithArray:  
 //                               [_fileData directoryContentsAtPath:@"/"]]];  
     
 //    printf("nb fichier = %d\n",[_files count]);  
     
158     [_tableAnime reloadData];     [_tableAnime reloadData];
159    
160     return self;     return self;
# Line 244  Line 169 
169    
170  - (void) tableViewSelectionIsChanging:(NSNotification *)aNotification  - (void) tableViewSelectionIsChanging:(NSNotification *)aNotification
171  {  {
172    int row = [_tableAnime clickedRow];    // int row = [_tableAnime clickedRow];
173    [_affiche changeAnime: [_records objectAtIndex: row]];    //  [_affiche changeAnime: [_records objectAtIndex: row]];
174  }  }
175    
176  - (void) retourRapA  - (void) retourRapA
177  {  {
178    printf("rp\n");    printf("rp\n");
179    [_affiche changeMode: RETOUR_RAP];    //[_affiche changeMode: RETOUR_RAP];
180  }  }
181    
182  - (void) avanceRapA  - (void) avanceRapA
183  {  {
184     printf("ap\n");     printf("ap\n");
185    [_affiche changeMode: AVANCE_RAP];     //[_affiche changeMode: AVANCE_RAP];
186  }  }
187    
188  - (void) debutA  - (void) debutA
189  {  {
190     printf("d\n");     printf("d\n");
191    [_affiche changeMode: DEBUT];     //[_affiche changeMode: DEBUT];
192  }  }
193    
194  - (void) finA  - (void) finA
195  {  {
196    printf("f\n");    printf("f\n");
197    [_affiche changeMode: FIN];    //[_affiche changeMode: FIN];
198  }  }
199    
200  - (void) pauseA  - (void) pauseA
201  {  {
202    printf("p\n");    printf("p\n");
203    [_affiche changeMode: PAUSE];    //[_affiche changeMode: PAUSE];
204  }  }
205    
206  - (void) lectureA  - (void) lectureA
207  {  {
208    printf("l\n");    printf("l\n");
209    [_affiche changeMode: LECTURE];    //[_affiche changeMode: LECTURE];
210  }  }
211    
212  - (void) stopA  - (void) stopA
213  {  {
214    printf("s\n");    printf("s\n");
215    [_affiche changeMode: STOP];    //[_affiche changeMode: STOP];
216  }  }
217    
218  - (void) framePerFrame  - (void) framePerFrame
219  {  {
220    printf("s\n");    printf("s\n");
221    [_affiche changeMode: FPF];    //[_affiche changeMode: FPF];
222  }  }
223    
224    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26