Skip to content

Commit

Permalink
Merge pull request #1 from ronso0/deere_rework_singletons
Browse files Browse the repository at this point in the history
reduce loading time: pack Decks & Mixer into Singleton
  • Loading branch information
Be-ing authored Jan 15, 2017
2 parents 9b38312 + e2884e9 commit 4c029b4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
24 changes: 12 additions & 12 deletions res/skins/Deere/main_decks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
<Size>-1,150min</Size>
<MaximumSize>-1,230</MaximumSize>
<Children>
<Template src="skin:left_gutter.xml"/>
<Template src="skin:mixer.xml"/>
<Template src="skin:right_gutter.xml"/>
<SingletonContainer>
<ObjectName>DecksMixerSingleton</ObjectName>
</SingletonContainer>
</Children>
</WidgetGroup>

Expand Down Expand Up @@ -82,9 +82,9 @@
<Size>-1,155max</Size>
<MaximumSize>-1,315</MaximumSize>
<Children>
<Template src="skin:left_gutter.xml"/>
<Template src="skin:mixer.xml"/>
<Template src="skin:right_gutter.xml"/>
<SingletonContainer>
<ObjectName>DecksMixerSingleton</ObjectName>
</SingletonContainer>
</Children>
</WidgetGroup>

Expand Down Expand Up @@ -175,9 +175,9 @@
<Size>-1,310min</Size>
<MaximumSize>-1,460</MaximumSize>
<Children>
<Template src="skin:left_gutter.xml"/>
<Template src="skin:mixer.xml"/>
<Template src="skin:right_gutter.xml"/>
<SingletonContainer>
<ObjectName>DecksMixerSingleton</ObjectName>
</SingletonContainer>
</Children>
</WidgetGroup>

Expand Down Expand Up @@ -206,9 +206,9 @@
<Layout>horizontal</Layout>
<MaximumSize>-1,630</MaximumSize>
<Children>
<Template src="skin:left_gutter.xml"/>
<Template src="skin:mixer.xml"/>
<Template src="skin:right_gutter.xml"/>
<SingletonContainer>
<ObjectName>DecksMixerSingleton</ObjectName>
</SingletonContainer>
</Children>
</WidgetGroup>

Expand Down
15 changes: 15 additions & 0 deletions res/skins/Deere/skin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,21 @@
<SetVariable name="VerticalStretchButtonMaximumSize">20,-1</SetVariable>
<SetVariable name="VerticalStretchButtonSizePolicy">f,me</SetVariable>

<SingletonDefinition>
<ObjectName>DecksMixerSingleton</ObjectName>
<Children>
<WidgetGroup>
<Layout>horizontal</Layout>
<SizePolicy>me,min</SizePolicy>
<Children>
<Template src="skin:left_gutter.xml"/>
<Template src="skin:mixer.xml"/>
<Template src="skin:right_gutter.xml"/>
</Children>
</WidgetGroup>
</Children>
</SingletonDefinition>

<WidgetGroup>
<SizePolicy>me,me</SizePolicy>
<Layout>vertical</Layout>
Expand Down

0 comments on commit 4c029b4

Please sign in to comment.