Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Layouts and Maps #515

Open
wants to merge 74 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
61256d3
reorganize some class data
garakmon Jan 23, 2023
917e61b
add different tabs for map list views
garakmon Jan 30, 2023
2bc51f1
move map pixmap item and metatile rendering from Map to Layout
garakmon Feb 1, 2023
90f8218
fix edit commands and ui things to use layout instead of map
garakmon Feb 1, 2023
18eb3ce
setLayout to create layout-only edit mode
garakmon Feb 2, 2023
e225393
use enum class for edit modes
garakmon Feb 3, 2023
1497f42
save progress
garakmon Feb 5, 2023
de8b005
gray out map icons until map is open
garakmon Feb 6, 2023
9918159
ui to change map's assigned layout id
garakmon Feb 6, 2023
e2ff93e
add areaList model and filtering, scrolling for all trees
garakmon Feb 7, 2023
f7f06da
fix change dimensions for layouts
garakmon Feb 7, 2023
72eb8f8
create dynamic map tab icon
garakmon Feb 8, 2023
f8c7ada
fix layout undo history
garakmon Feb 8, 2023
a4fdb0d
fix new map popup window to allow layout selection
garakmon Feb 8, 2023
a14e70e
update map lists when new maps and layouts are added
garakmon Feb 9, 2023
0ec8f4f
add drag-drop reordering for maps in groups
garakmon Feb 13, 2023
d6f3bb1
allow editing map group names
garakmon Feb 14, 2023
5d98f8e
fix crash in model data function
garakmon Feb 14, 2023
2ea0590
save changes to layouts
garakmon Feb 14, 2023
ff086a6
remove redundant mapsceneeventfilter file
garakmon Feb 14, 2023
ac83e0f
no need to manually crop map tab icon
garakmon Feb 15, 2023
e79b6e2
add placeholder text for mapgroup label
garakmon Feb 21, 2023
f485ebd
preserve layout in config
garakmon Feb 22, 2023
2d2b7f7
api util setMainTab ignores command when in layout only mode
garakmon Feb 22, 2023
f4cd57c
some code cleanup
garakmon Apr 8, 2023
c0a46ae
fix layout redraw when changing used tileset
garakmon Apr 27, 2023
3f7913b
fix segfault in map image exporter
garakmon Jun 23, 2023
95c21a4
do not show nonexistent map sections
garakmon Sep 28, 2023
46ada32
fix map tab icon
garakmon Oct 25, 2023
6041c46
fix scripting api usage of map/layout pointers
garakmon Oct 26, 2023
263e45f
fix new map popup population issue
garakmon Oct 27, 2023
a00558a
drop gMapGroup_ prefix necessity for renaming groups
garakmon Oct 27, 2023
0f9c587
Merge branch 'master' of https://github.com/huderlem/porymap into slam
garakmon Jan 9, 2024
c0f32c6
Merge branch 'master' of https://github.com/huderlem/porymap into slam
garakmon Jan 9, 2024
cd5b1f9
add toggleable button to hide empty map folders
garakmon Jan 10, 2024
99eb92c
timelapse replay layout edits then map edits
garakmon Jan 10, 2024
abc433b
allow dragging and dropping to rearrange map groups
garakmon Jan 12, 2024
b620e3d
add button to lock group edits
garakmon Jan 12, 2024
0296c22
Merge branch 'master' of https://github.com/huderlem/porymap into slam
garakmon Jan 12, 2024
858c807
fix bad merge
garakmon Jan 13, 2024
23b55a1
fix bug disabling map edits after tab switches
garakmon Feb 4, 2024
ad1b651
clear selection sticking when edits toggled for map list
garakmon Feb 4, 2024
963b09c
create buttons to add items to map trees
garakmon Feb 14, 2024
22b4108
create 'add layout' button
garakmon Feb 16, 2024
74e4e26
add new area (map section) functionality
garakmon Feb 17, 2024
879bb44
functions to remove map groups and map sections
garakmon Feb 18, 2024
05beed2
disable deletion of map sections and layouts
garakmon Feb 19, 2024
6520189
Merge branch 'master' of https://github.com/huderlem/porymap into slam
garakmon Feb 22, 2024
70c6e41
reopen porymap on layout view when applicable
garakmon Mar 28, 2024
dc72643
Merge branch 'master' of https://github.com/huderlem/porymap into slam
garakmon Apr 3, 2024
89fb401
cleanup shortcuts
garakmon Apr 18, 2024
5bb0983
cleanup: resolve map list scrolling
garakmon Apr 18, 2024
f46ac36
cleanup: shortcuts, setLayout
garakmon Apr 18, 2024
34478e6
cleanup: resolve remaining (outdated) TODOs
garakmon Apr 19, 2024
bc454d6
fix some map combos not being populated with new items
garakmon Apr 19, 2024
815a16e
Merge branch 'master' of https://github.com/huderlem/porymap into slam
garakmon Sep 24, 2024
6d39d3a
fix project close order and clear new layout combo
garakmon Sep 24, 2024
b622bec
remove refs to old functions
garakmon Sep 24, 2024
7bfb064
fix main tab icon initialization
garakmon Oct 2, 2024
eed641f
fix connection mask in layout display
garakmon Oct 3, 2024
b5c50e7
Merge branch 'master' of https://github.com/huderlem/porymap into slam
GriffinRichards Oct 17, 2024
5e9ab4c
Reopen Porymap to last-opened map/layout
GriffinRichards Oct 17, 2024
728355d
Fix some missing constant usage
GriffinRichards Oct 17, 2024
10aa6f6
Fix new name regexes, some assumptions about MAPSEC_NONE, memory leak
GriffinRichards Oct 17, 2024
40d34b2
Merge branch 'master' of https://github.com/huderlem/porymap into slam
GriffinRichards Oct 25, 2024
7da2375
Refactor map list buttons
GriffinRichards Oct 18, 2024
a18b2c9
Stop unnecessary work/leaks from extra setProjectUI calls
GriffinRichards Oct 28, 2024
3bd5ddb
Simplify saving the map list tab
GriffinRichards Oct 28, 2024
2ce5c3f
Fix crash on tileset save, bugs with map resizing
GriffinRichards Oct 29, 2024
785ac95
Fix crash when file watcher message triggers
GriffinRichards Oct 30, 2024
b89c1dd
Show unsaved changes warning for map list and layout-only edits
GriffinRichards Oct 30, 2024
23e094d
Update map list delete functionality
GriffinRichards Oct 30, 2024
ab8eb7c
Reimplement disabled Delete key features
GriffinRichards Oct 31, 2024
f90dae0
Set up map list tool bar to record setting states
GriffinRichards Oct 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
642 changes: 339 additions & 303 deletions forms/mainwindow.ui

Large diffs are not rendered by default.

172 changes: 172 additions & 0 deletions forms/maplisttoolbar.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MapListToolBar</class>
<widget class="QFrame" name="MapListToolBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>274</width>
<height>32</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>3</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<widget class="QToolButton" name="button_AddFolder">
<property name="text">
<string>Add a folder to the list.</string>
</property>
<property name="icon">
<iconset resource="../resources/images.qrc">
<normaloff>:/icons/folder_add.ico</normaloff>:/icons/folder_add.ico</iconset>
</property>
<property name="popupMode">
<enum>QToolButton::ToolButtonPopupMode::InstantPopup</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="button_ToggleEmptyFolders">
<property name="text">
<string>Hide empty folders in the list.</string>
</property>
<property name="icon">
<iconset resource="../resources/images.qrc">
<normaloff>:/icons/folder_eye_open.ico</normaloff>
<normalon>:/icons/folder_eye_closed.ico</normalon>:/icons/folder_eye_open.ico</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="popupMode">
<enum>QToolButton::ToolButtonPopupMode::InstantPopup</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="button_ExpandAll">
<property name="toolTip">
<string>Expand all folders in the list.</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resources/images.qrc">
<normaloff>:/icons/expand_all.ico</normaloff>:/icons/expand_all.ico</iconset>
</property>
<property name="popupMode">
<enum>QToolButton::ToolButtonPopupMode::InstantPopup</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="button_CollapseAll">
<property name="toolTip">
<string>Collapse all folders in the list.</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resources/images.qrc">
<normaloff>:/icons/collapse_all.ico</normaloff>:/icons/collapse_all.ico</iconset>
</property>
<property name="popupMode">
<enum>QToolButton::ToolButtonPopupMode::InstantPopup</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="button_ToggleEdit">
<property name="toolTip">
<string>Toggle editability of folders in the list.</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resources/images.qrc">
<normaloff>:/icons/lock_edit.ico</normaloff>
<normalon>:/icons/unlock_edit.ico</normalon>:/icons/lock_edit.ico</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="popupMode">
<enum>QToolButton::ToolButtonPopupMode::InstantPopup</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>12</width>
<height>19</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_filterBox">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string/>
</property>
<property name="placeholderText">
<string>Filter...</string>
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../resources/images.qrc"/>
</resources>
<connections/>
</ui>
Loading
Loading