pretmap -> porymap, add icon v1
This commit is contained in:
parent
6f3c5c25dd
commit
b0e7364349
7 changed files with 26 additions and 9 deletions
10
.gitignore
vendored
10
.gitignore
vendored
|
@ -1,2 +1,10 @@
|
||||||
pretmap.pro.user
|
porymap.pro.user
|
||||||
*.autosave
|
*.autosave
|
||||||
|
*.stash
|
||||||
|
*.o
|
||||||
|
moc_*
|
||||||
|
qrc_*
|
||||||
|
porymap.app*
|
||||||
|
Makefile
|
||||||
|
ui_mainwindow.h
|
||||||
|
ui_objectpropertiesframe.h
|
||||||
|
|
|
@ -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
|
[pokeruby]: https://github.com/pret/pokeruby
|
||||||
|
[pokeemerald]: https://github.com/pret/pokeemerald
|
||||||
|
|
|
@ -23,7 +23,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
ui(new Ui::MainWindow)
|
ui(new Ui::MainWindow)
|
||||||
{
|
{
|
||||||
QCoreApplication::setOrganizationName("pret");
|
QCoreApplication::setOrganizationName("pret");
|
||||||
QCoreApplication::setApplicationName("pretmap");
|
QCoreApplication::setApplicationName("porymap");
|
||||||
|
QApplication::setWindowIcon(QIcon(":/icons/porymap-icon-1.ico"));
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
@ -51,6 +52,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
openProject(default_dir);
|
openProject(default_dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//ui->setIcon(QIcon(editor->root + "/resources/icons/porymap-icon-1.ico"));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
@ -77,12 +80,12 @@ void MainWindow::openProject(QString dir) {
|
||||||
if (!already_open) {
|
if (!already_open) {
|
||||||
editor->project = new Project;
|
editor->project = new Project;
|
||||||
editor->project->root = dir;
|
editor->project->root = dir;
|
||||||
setWindowTitle(editor->project->getProjectTitle() + " - pretmap");
|
setWindowTitle(editor->project->getProjectTitle() + " - porymap");
|
||||||
loadDataStructures();
|
loadDataStructures();
|
||||||
populateMapList();
|
populateMapList();
|
||||||
setMap(getDefaultMap());
|
setMap(getDefaultMap());
|
||||||
} else {
|
} else {
|
||||||
setWindowTitle(editor->project->getProjectTitle() + " - pretmap");
|
setWindowTitle(editor->project->getProjectTitle() + " - porymap");
|
||||||
loadDataStructures();
|
loadDataStructures();
|
||||||
populateMapList();
|
populateMapList();
|
||||||
}
|
}
|
||||||
|
@ -154,7 +157,7 @@ void MainWindow::setMap(QString map_name) {
|
||||||
redrawMapScene();
|
redrawMapScene();
|
||||||
displayMapProperties();
|
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(mapChanged(Map*)), this, SLOT(onMapChanged(Map *)));
|
||||||
connect(editor->map, SIGNAL(mapNeedsRedrawing(Map*)), this, SLOT(onMapNeedsRedrawing(Map *)));
|
connect(editor->map, SIGNAL(mapNeedsRedrawing(Map*)), this, SLOT(onMapNeedsRedrawing(Map *)));
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>pretmap</string>
|
<string>porymap</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
|
|
@ -8,8 +8,10 @@ QT += core gui
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
TARGET = pretmap
|
TARGET = porymap
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
RC_ICONS = resources/icons/porymap-icon-1.ico
|
||||||
|
ICON = resources/icons/porymap-icon-1.ico
|
||||||
|
|
||||||
|
|
||||||
SOURCES += main.cpp\
|
SOURCES += main.cpp\
|
BIN
resources/icons/porymap-icon-1.ico
Normal file
BIN
resources/icons/porymap-icon-1.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
|
@ -16,5 +16,6 @@
|
||||||
<file>icons/delete.ico</file>
|
<file>icons/delete.ico</file>
|
||||||
<file>icons/viewsprites.ico</file>
|
<file>icons/viewsprites.ico</file>
|
||||||
<file>images/collisions.png</file>
|
<file>images/collisions.png</file>
|
||||||
|
<file>icons/porymap-icon-1.ico</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Loading…
Reference in a new issue