FileType *BaseEditor::chooseFileType(const String *fileName) { if (lineSource == null) { currentFileType = hrcParser->chooseFileType(fileName, null); } else { int chooseStr=CHOOSE_STR, chooseLen=CHOOSE_LEN; DString dsd("default"); FileType *def = hrcParser->getFileType(&dsd); if(def) { chooseStr = def->getParamValueInt(DString("firstlines"), chooseStr); chooseLen = def->getParamValueInt(DString("firstlinebytes"), chooseLen); } currentFileType = chooseFileTypeCh(fileName, chooseStr, chooseLen); } setFileType(currentFileType); return currentFileType; }
int main(int argc, char **argv) { DockingStationDetector dsd(argc, argv); return 0; }