#include "py/python.hpp"
#include "qui/MussaWindow.hpp"
#include "mussa_exceptions.hpp"
+#include "version.hpp"
#include <QAction>
#include <QApplication>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
+#include <boost/filesystem/convenience.hpp>
namespace fs = boost::filesystem;
#include <boost/bind.hpp>
void MussaWindow::about()
{
- QString msg("Welcome to Multiple Species Sequence Analysis\n"
- "(c) 2005-2006 California Institute of Technology\n"
- "Tristan De Buysscher, Diane Trout\n");
- msg += "\n\r";
- msg += "OpenGL: ";
- msg += (char *)glGetString(GL_VERSION);
- msg += "\n";
- QMessageBox::about(this, tr("About mussa"), msg);
+ QString msg;
+ msg += "Welcome to Multiple Species Sequence Analysis\n";
+ msg += "(c) 2005-2006 California Institute of Technology\n";
+ msg += "Diane Trout, Tristan De Buysscher, Brandon King\n";
+ msg += "Version: ";
+ msg += mussa_version;
+ msg += "\n";
+ msg += "OpenGL: ";
+ msg += (char *)glGetString(GL_VERSION);
+ msg += "\n";
+ QMessageBox::about(this, tr("About mussa"), msg);
}
void MussaWindow::clear()
// try to load safely
try {
fs::path converted_path(path.toStdString(), fs::native);
+ if (fs::extension(converted_path).size() == 0) {
+ // no extension, so add one
+ converted_path = converted_path.string() + ".mtl";
+ }
analysis->save_motifs(converted_path);
default_dir->setPath(converted_path.branch_path().native_directory_string().c_str());
} catch (runtime_error e) {