Page MenuHomeWildfire Games

Saves sidebar/bottombar width/height between Atlas sessions
ClosedPublic

Authored by vladislavbelov on Jan 19 2020, 9:20 PM.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP23424: Saves sidebar/bottombar width/height between Atlas sessions
Summary

It allows to Atlas user to not resize the sidebar and bottombar on each Atlas run.

Test Plan
  1. Apply the patch and compile the game
  2. Open Atlas and change size of side bar
  3. Close Atlas
  4. Open Atlas and make sure that the size was changed
  5. Maximize the Atlas window and resize the sidebar as bigger as possible
  6. Reopen Atlas and make sure that the size was changed but not overflow the window

Event Timeline

vladislavbelov created this revision.Jan 19 2020, 9:20 PM
Stan awarded a token.Jan 19 2020, 9:24 PM
Stan added a subscriber: Stan.
Stan added inline comments.
source/tools/atlas/AtlasUI/CustomControls/SnapSplitterWindow/SnapSplitterWindow.cpp
22

<> ?

71

Helper function?

source/tools/atlas/AtlasUI/CustomControls/SnapSplitterWindow/SnapSplitterWindow.h
41

m_SashPositionChanged?

source/tools/atlas/AtlasUI/ScenarioEditor/SectionLayout.cpp
32–33

<> ?

source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.cpp
24 ↗(On Diff #11110)

Split?

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...

source/tools/atlas/AtlasUI/CustomControls/SnapSplitterWindow/SnapSplitterWindow.h
|  20| class·SnapSplitterWindow·:·public·wxSplitterWindow
|    | [MAJOR] CPPCheckBear (syntaxError):
|    | Code 'classSnapSplitterWindow:' is invalid C code. Use --std or --language to configure the language.

source/tools/atlas/AtlasUI/ScenarioEditor/SectionLayout.cpp
|  64| BEGIN_EVENT_TABLE(SidebarButton,·wxBitmapButton)
|    | [MAJOR] CPPCheckBear (unknownMacro):
|    | There is an unknown macro here somewhere. Configuration is required. If BEGIN_EVENT_TABLE is a macro then please configure it.
Executing section JS...
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1612/display/redirect

vladislavbelov marked 5 inline comments as done.

Fixes @Stan notes.

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...

source/tools/atlas/AtlasUI/CustomControls/SnapSplitterWindow/SnapSplitterWindow.h
|  20| class·SnapSplitterWindow·:·public·wxSplitterWindow
|    | [MAJOR] CPPCheckBear (syntaxError):
|    | Code 'classSnapSplitterWindow:' is invalid C code. Use --std or --language to configure the language.

source/tools/atlas/AtlasUI/ScenarioEditor/SectionLayout.cpp
|  64| BEGIN_EVENT_TABLE(SidebarButton,·wxBitmapButton)
|    | [MAJOR] CPPCheckBear (unknownMacro):
|    | There is an unknown macro here somewhere. Configuration is required. If BEGIN_EVENT_TABLE is a macro then please configure it.
Executing section JS...
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1613/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...

source/tools/atlas/AtlasUI/CustomControls/SnapSplitterWindow/SnapSplitterWindow.h
|  20| class·SnapSplitterWindow·:·public·wxSplitterWindow
|    | [MAJOR] CPPCheckBear (syntaxError):
|    | Code 'classSnapSplitterWindow:' is invalid C code. Use --std or --language to configure the language.

source/tools/atlas/AtlasUI/ScenarioEditor/SectionLayout.cpp
|  64| BEGIN_EVENT_TABLE(SidebarButton,·wxBitmapButton)
|    | [MAJOR] CPPCheckBear (unknownMacro):
|    | There is an unknown macro here somewhere. Configuration is required. If BEGIN_EVENT_TABLE is a macro then please configure it.
Executing section JS...
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1614/display/redirect

vladislavbelov edited the test plan for this revision. (Show Details)Jan 19 2020, 10:46 PM
Stan added a comment.Jan 20 2020, 4:15 PM

Patch works as expected, though it triggers a compilation warning see inline. (Missing WxUnused)

source/tools/atlas/AtlasUI/CustomControls/SnapSplitterWindow/SnapSplitterWindow.cpp
87

..\..\..\source\tools\atlas\AtlasUI\CustomControls\SnapSplitterWindow\SnapSplitterWindow.cpp(87): warning C4100: 'evt': unreferenced formal parameter

Nescio added a subscriber: Nescio.Jan 20 2020, 4:56 PM

Thanks, I've tried it (on Fedora 31 with Gnome desktop), and it works as described in the summary and test plan.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 20 2020, 9:58 PM
This revision was automatically updated to reflect the committed changes.