Add navigation arrows

This commit is contained in:
GriffinR
2025-05-08 13:33:51 -04:00
parent 9a3b45117b
commit d0587f400c
2 changed files with 131 additions and 20 deletions

View File

@@ -331,6 +331,14 @@ private:
QAction *redoAction = nullptr;
QPointer<QUndoView> undoView = nullptr;
struct MapNavigation {
QStack<QString> stack;
QPointer<QToolButton> button;
};
MapNavigation backNavigation;
MapNavigation forwardNavigation;
bool ignoreNavigationRecords = false;
QAction *copyAction = nullptr;
QAction *pasteAction = nullptr;
@@ -391,6 +399,11 @@ private:
void updateMapList();
void openMapListItem(const QModelIndex &index);
void onMapListTabChanged(int index);
QString getActiveItemName();
void recordNavigation(const QString &itemName);
void openMapFromHistory(bool previous);
void openPreviousMap();
void openNextMap();
void displayMapProperties();
void checkToolButtons();