mirror of https://github.com/aseprite/aseprite.git
Restore the "Position" section in Timeline configuration
We're going to keep this section for a couple of versions as old users get used to the new Workspace Layout customization. The "Position" section will contain the layout icon so we can switch the Workspace Layout combobox from there too,
This commit is contained in:
parent
49da8e1ae1
commit
334739524a
|
@ -1873,9 +1873,6 @@ more_options = More Options
|
|||
|
||||
[timeline_conf]
|
||||
position = Position:
|
||||
left = &Left
|
||||
right = &Right
|
||||
bottom = &Bottom
|
||||
frame_header = Frame Header:
|
||||
first_frame = First Frame:
|
||||
thumbnails = Thumbnails
|
||||
|
|
|
@ -3,25 +3,32 @@
|
|||
<!-- Copyright (C) 2014-2018 by David Capello -->
|
||||
<gui>
|
||||
<vbox id="timeline_conf">
|
||||
<vbox>
|
||||
<separator text="@.frame_header" left="true" horizontal="true" />
|
||||
<hbox>
|
||||
<label text="@.first_frame" />
|
||||
<expr id="first_frame" />
|
||||
</hbox>
|
||||
<hbox>
|
||||
<check id="thumb_enabled" text="@.thumbnails" horizontal="true" />
|
||||
<separator id="thumb_h_separator" horizontal="true" expansive="true" />
|
||||
</hbox>
|
||||
<grid columns="2" id="thumb_box">
|
||||
<label text="@.thumbnail_size" />
|
||||
<slider min="1" max="10" id="zoom" cell_align="horizontal" width="128" />
|
||||
<hbox>
|
||||
<vbox>
|
||||
<separator cell_hspan="2" text="@.position" left="true" horizontal="true" />
|
||||
<button id="layout" icon="icon_layout" />
|
||||
</vbox>
|
||||
<vbox>
|
||||
<separator text="@.frame_header" left="true" horizontal="true" />
|
||||
<hbox>
|
||||
<label text="@.first_frame" />
|
||||
<expr id="first_frame" />
|
||||
</hbox>
|
||||
|
||||
<check id="thumb_overlay_enabled" text="@.overlay_size"/>
|
||||
<slider min="2" max="10" id="thumb_overlay_size" cell_align="horizontal" width="128" />
|
||||
<check id="thumb_scale_up_to_fit" text="@.scale_up_to_fit" cell_hspan="2" />
|
||||
</grid>
|
||||
</vbox>
|
||||
<hbox>
|
||||
<check id="thumb_enabled" text="@.thumbnails" horizontal="true" />
|
||||
<separator id="thumb_h_separator" horizontal="true" expansive="true" />
|
||||
</hbox>
|
||||
<grid columns="2" id="thumb_box">
|
||||
<label text="@.thumbnail_size" />
|
||||
<slider min="1" max="10" id="zoom" cell_align="horizontal" width="128" />
|
||||
|
||||
<check id="thumb_overlay_enabled" text="@.overlay_size"/>
|
||||
<slider min="2" max="10" id="thumb_overlay_size" cell_align="horizontal" width="128" />
|
||||
<check id="thumb_scale_up_to_fit" text="@.scale_up_to_fit" cell_hspan="2" />
|
||||
</grid>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
||||
<separator text="@.onion_skin" left="true" horizontal="true" />
|
||||
<grid columns="2">
|
||||
|
|
|
@ -53,6 +53,7 @@ ConfigureTimelinePopup::ConfigureTimelinePopup()
|
|||
m_box = new app::gen::TimelineConf();
|
||||
addChild(m_box);
|
||||
|
||||
m_box->layout()->Click.connect([this] { onWorkspaceLayout(); });
|
||||
m_box->firstFrame()->Change.connect([this] { onChangeFirstFrame(); });
|
||||
m_box->merge()->Click.connect([this] { onChangeType(); });
|
||||
m_box->tint()->Click.connect([this] { onChangeType(); });
|
||||
|
@ -137,6 +138,12 @@ bool ConfigureTimelinePopup::onProcessMessage(ui::Message* msg)
|
|||
return PopupWindow::onProcessMessage(msg);
|
||||
}
|
||||
|
||||
void ConfigureTimelinePopup::onWorkspaceLayout()
|
||||
{
|
||||
UIContext::instance()->executeCommand(
|
||||
Commands::instance()->byId(CommandId::ToggleWorkspaceLayout()));
|
||||
}
|
||||
|
||||
void ConfigureTimelinePopup::onChangeFirstFrame()
|
||||
{
|
||||
docPref().timeline.firstFrame(m_box->firstFrame()->textInt());
|
||||
|
|
|
@ -33,6 +33,7 @@ public:
|
|||
|
||||
protected:
|
||||
bool onProcessMessage(ui::Message* msg) override;
|
||||
void onWorkspaceLayout();
|
||||
void onChangeFirstFrame();
|
||||
void onChangeType();
|
||||
void onOpacity();
|
||||
|
|
Loading…
Reference in New Issue