Separate layout/header features of new map dialog

This commit is contained in:
GriffinR
2024-11-12 15:57:27 -05:00
parent 7d7db3857d
commit 8bb0100540
19 changed files with 1134 additions and 820 deletions

View File

@@ -16,6 +16,9 @@ Map::Map(QObject *parent) : QObject(parent)
m_scriptsLoaded = false;
m_editHistory = new QUndoStack(this);
resetEvents();
m_header = new MapHeader(this);
connect(m_header, &MapHeader::modified, this, &Map::modified);
}
Map::~Map() {
@@ -309,48 +312,3 @@ void Map::pruneEditHistory() {
command->setObsolete(true);
}
}
void Map::setSong(const QString &song) {
m_song = song;
}
void Map::setLocation(const QString &location) {
m_location = location;
}
void Map::setRequiresFlash(bool requiresFlash) {
m_requiresFlash = requiresFlash;
}
void Map::setWeather(const QString &weather) {
m_weather = weather;
}
void Map::setType(const QString &type) {
m_type = type;
}
void Map::setShowsLocationName(bool showsLocationName) {
m_showsLocationName = showsLocationName;
}
void Map::setAllowsRunning(bool allowsRunning) {
m_allowsRunning = allowsRunning;
}
void Map::setAllowsBiking(bool allowsBiking) {
m_allowsBiking = allowsBiking;
}
void Map::setAllowsEscaping(bool allowsEscaping) {
m_allowsEscaping = allowsEscaping;
}
void Map::setFloorNumber(int floorNumber) {
m_floorNumber = floorNumber;
}
void Map::setBattleScene(const QString &battleScene) {
m_battleScene = battleScene;
}