void FileMenu::open_file_slot() { FileChooser chooser; QString filename; int pos; if(last_open_dir.length() != 0) chooser.set_dir(last_open_dir); filename = chooser.get_path(); if(filename.length() != 0) { #if (PLATFORM & WIN32) || (PLATFORM & WIN64) pos = filename.lastIndexOf("\\"); #elif (PLATFORM & LINUX32) || (PLATFORM & LINUX64) pos = filename.lastIndexOf("/"); #endif emit open_file_signal(filename); } }