diff --git a/.gitignore b/.gitignore index 17b0fb0a..cbf9ee0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,10 @@ -pretmap.pro.user +porymap.pro.user *.autosave +*.stash +*.o +moc_* +qrc_* +porymap.app* +Makefile +ui_mainwindow.h +ui_objectpropertiesframe.h diff --git a/README.md b/README.md index 721a7e7a..a1a2bf78 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ -# pretmap +# porymap -A map editor for [pokeruby][pokeruby] using Qt. +A map editor for the generation 3 disassembly projects using Qt. + +Currently supporting [pokeruby][pokeruby] and [pokeemerald][pokeemerald]. [pokeruby]: https://github.com/pret/pokeruby +[pokeemerald]: https://github.com/pret/pokeemerald diff --git a/mainwindow.cpp b/mainwindow.cpp index bc0b41e3..1b05d0f1 100755 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -29,7 +29,8 @@ MainWindow::MainWindow(QWidget *parent) : ui(new Ui::MainWindow) { QCoreApplication::setOrganizationName("pret"); - QCoreApplication::setApplicationName("pretmap"); + QCoreApplication::setApplicationName("porymap"); + QApplication::setWindowIcon(QIcon(":/icons/porymap-icon-1.ico")); ui->setupUi(this); @@ -87,12 +88,12 @@ void MainWindow::openProject(QString dir) { if (!already_open) { editor->project = new Project; editor->project->root = dir; - setWindowTitle(editor->project->getProjectTitle() + " - pretmap"); + setWindowTitle(editor->project->getProjectTitle() + " - porymap"); loadDataStructures(); populateMapList(); setMap(getDefaultMap()); } else { - setWindowTitle(editor->project->getProjectTitle() + " - pretmap"); + setWindowTitle(editor->project->getProjectTitle() + " - porymap"); loadDataStructures(); populateMapList(); } @@ -164,7 +165,7 @@ void MainWindow::setMap(QString map_name) { redrawMapScene(); displayMapProperties(); - setWindowTitle(map_name + " - " + editor->project->getProjectTitle() + " - pretmap"); + setWindowTitle(map_name + " - " + editor->project->getProjectTitle() + " - porymap"); connect(editor->map, SIGNAL(mapChanged(Map*)), this, SLOT(onMapChanged(Map *))); connect(editor->map, SIGNAL(mapNeedsRedrawing(Map*)), this, SLOT(onMapNeedsRedrawing(Map *))); diff --git a/mainwindow.ui b/mainwindow.ui index cde58531..936ccaf2 100755 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -17,7 +17,7 @@ - pretmap + porymap diff --git a/pretmap.pro b/porymap.pro similarity index 90% rename from pretmap.pro rename to porymap.pro index 9d3ae04e..f1d68efb 100755 --- a/pretmap.pro +++ b/porymap.pro @@ -8,8 +8,10 @@ QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets -TARGET = pretmap +TARGET = porymap TEMPLATE = app +RC_ICONS = resources/icons/porymap-icon-1.ico +ICON = resources/icons/porymap-icon-1.ico SOURCES += main.cpp\ diff --git a/resources/icons/porymap-icon-1.ico b/resources/icons/porymap-icon-1.ico new file mode 100644 index 00000000..9af82ad5 Binary files /dev/null and b/resources/icons/porymap-icon-1.ico differ diff --git a/resources/images.qrc b/resources/images.qrc index 2094922f..78fbe6a1 100755 --- a/resources/images.qrc +++ b/resources/images.qrc @@ -22,5 +22,6 @@ icons/pipette_cursor.ico icons/shift.ico icons/shift_cursor.ico + icons/porymap-icon-1.ico