bool KlustersView::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: updatedDimensions((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; case 1: singleColorUpdated((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 2: clusterRemovedFromView((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 3: clusterAddedToView((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 4: newClusterAddedToView((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(int)static_QUType_int.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break; case 5: newClusterAddedToView((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 6: spikesRemovedFromClusters((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(bool)static_QUType_bool.get(_o+2)); break; case 7: modeToSet((BaseFrame::Mode)(*((BaseFrame::Mode*)static_QUType_ptr.get(_o+1)))); break; case 8: spikesAddedToCluster((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 9: updateContents(); break; case 10: emptySelection(); break; case 11: modifiedClusters((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(bool)static_QUType_bool.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break; case 12: modifiedClustersUndo((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1)),(bool)static_QUType_bool.get(_o+2)); break; case 13: updatedTimeFrame((long)(*((long*)static_QUType_ptr.get(_o+1))),(long)(*((long*)static_QUType_ptr.get(_o+2)))); break; case 14: sampleMode(); break; case 15: timeFrameMode(); break; case 16: meanPresentation(); break; case 17: allWaveformsPresentation(); break; case 18: overLayPresentation(); break; case 19: sideBySidePresentation(); break; case 20: increaseAmplitude(); break; case 21: decreaseAmplitude(); break; case 22: updateDisplayNbSpikes((long)(*((long*)static_QUType_ptr.get(_o+1)))); break; case 23: increaseAmplitudeofCorrelograms(); break; case 24: decreaseAmplitudeofCorrelograms(); break; case 25: noScale(); break; case 26: maxScale(); break; case 27: shoulderScale(); break; case 28: updatedBinSizeAndTimeFrame((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; case 29: setShoulderLine((bool)static_QUType_bool.get(_o+1)); break; case 30: updateDrawing(); break; case 31: changeGain((int)static_QUType_int.get(_o+1)); break; case 32: changeTimeInterval((int)static_QUType_int.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break; case 33: changeChannelPositions((QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+1))); break; case 34: computeProbabilities(); break; case 35: changeBackgroundColor((QColor)(*((QColor*)static_QUType_ptr.get(_o+1)))); break; case 36: clustersRenumbered((bool)static_QUType_bool.get(_o+1)); break; case 37: updateClusters((QString)static_QUType_QString.get(_o+1),(QValueList<int>&)*((QValueList<int>*)static_QUType_ptr.get(_o+2)),(ItemColors*)static_QUType_ptr.get(_o+3),(bool)static_QUType_bool.get(_o+4)); break; case 38: increaseAllAmplitude(); break; case 39: decreaseAllAmplitude(); break; case 40: showLabels((bool)static_QUType_bool.get(_o+1)); break; case 41: nextCluster(); break; case 42: previousCluster(); break; default: return KDockArea::qt_emit(_id,_o); } return TRUE; }
unsigned int read_fat32(struct fs_node* node, unsigned int offset, unsigned int size, unsigned char* buffer){ fat32_inode* fsNode = ((fat32_inode*)node->fs_inode); fat32* f = (fat32*)(&hdd[0].extended); unsigned int sectorOffset = offset/512; //nth sector in cluster (0-7) unsigned int insideSectorOffset = offset%512; //position inside sector unsigned int clusterOffset = offset/(hdd[0].sectorPerCluster*512); //nth cluster in files cluster chain if ( node->length < size ) size = node->length; /* avoid that underflow. */ if ( node->length < offset+size){ if (offset > node->length) return 0; else size = node->length-offset; } if (size<=0) return 0; unsigned int nextC = fsNode->cluster; //kprintf("Reading from off=%d... cluster=%d sector=%d insideSector=%d size=%d\n",offset,clusterOffset,sectorOffset,insideSectorOffset,size); while (clusterOffset>0){ nextC = nextCluster(node,nextC); if (nextC == -1){ buffer = NULL; return 0; } clusterOffset--; } unsigned int sectorNr = getFirstSector(0,nextC); char sector[512]; read_sector_lba28(fsNode->drive,fsNode->addr,1,sectorNr+sectorOffset,(unsigned char*)§or); unsigned int i = insideSectorOffset; unsigned int x = 0; while ((i<512) && (i-insideSectorOffset)<size){ buffer[x++] = sector[i++]; } //kprintf(""); return size; }