QStringfilename=QGCFileDialog::getSaveFileName(NULL,"Select file to save GeoFence to",QString(),"Fence file (*.fence);;All Files (*.*)");
QStringfilename=QGCFileDialog::getSaveFileName(MainWindow::instance(),"Select file to save GeoFence to",QString(),"Fence file (*.fence);;All Files (*.*)");
QStringfilename=QGCFileDialog::getSaveFileName(NULL,"Select file to save mission to",QString(),"Mission file (*.mission);;All Files (*.*)");
QStringfilename=QGCFileDialog::getSaveFileName(MainWindow::instance(),"Select file to save mission to",QString(),"Mission file (*.mission);;All Files (*.*)");