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
|
||||
*.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
|
||||
[pokeemerald]: https://github.com/pret/pokeemerald
|
||||
|
|
|
@ -23,7 +23,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);
|
||||
|
||||
|
@ -51,6 +52,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
openProject(default_dir);
|
||||
}
|
||||
}
|
||||
|
||||
//ui->setIcon(QIcon(editor->root + "/resources/icons/porymap-icon-1.ico"));
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
@ -77,12 +80,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();
|
||||
}
|
||||
|
@ -154,7 +157,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 *)));
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>pretmap</string>
|
||||
<string>porymap</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
|
|
|
@ -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\
|
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/viewsprites.ico</file>
|
||||
<file>images/collisions.png</file>
|
||||
<file>icons/porymap-icon-1.ico</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in a new issue