package Ġcom . so yle . stories . scene . reorder Scene Dialog Ċ Ċ import Ġcom . so yle . stories . common . Thread Transformer Ċ import Ġcom . so yle . stories . layout . open Tool . Open Tool Controller Ċ import Ġcom . so yle . stories . scene . reorder Scene . Re order Scene Controller Ċ import Ġcom . so yle . stories . writer . Dialog Type Ċ import Ġcom . so yle . stories . writer . set Dialog Preferences . Set Dialog Preferences Controller Ċ import Ġcom . so yle . stories . writer . use cases . get Dialog Preferences . Get Dialog Preferences Ċ Ċ class ĠRe order Scene Dialog Controller ( ĊĠ Ġprivate Ġval Ġthread Transformer : ĠThread Transformer , ĊĠ Ġprivate Ġval Ġpresenter : ĠRe order Scene Dialog Presenter , ĊĠ Ġprivate Ġval Ġreorder Scene Controller : ĠRe order Scene Controller , ĊĠ Ġprivate Ġval Ġget Dialog Preferences : ĠGet Dialog Preferences , ĊĠ Ġprivate Ġval Ġset Dialog Preferences Controller : ĠSet Dialog Preferences Controller , ĊĠ Ġprivate Ġval Ġopen Tool Controller : ĠOpen Tool Controller Ċ ) Ġ: ĠRe order Scene Dialog View Listener Ġ{ ĊĊ ĉ override Ġfun Ġget Valid State ( scene Id : ĠString , Ġscene Name : ĠString , Ġindex : ĠInt ) Ġ{ Ċĉ ĉ presenter . display Re order Scene Dialog ( scene Name ) Ċĉ ĉ thread Transformer . async Ġ{ Ċĉĉ ĉ get Dialog Preferences . invoke ( ĊĉĉĉĠ ĠDialog Type . Re order Scene , ĊĉĉĉĠ Ġpresenter Ċĉĉ ĉ ) Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ override Ġfun Ġreorder Scene ( scene Id : ĠString , Ġindex : ĠInt , Ġshow Next Time : ĠBoolean ) Ġ{ Ċĉ ĉ reorder Scene Controller . reorder Scene ( scene Id , Ġindex ) Ċĉ ĉ set Dialog Preferences Controller . set Dialog Preferences ( Dialog Type . Re order Scene . name , Ġshow Next Time ) Ċ ĉ } ĊĊ ĉ override Ġfun Ġshow Ram ifications ( scene Id : ĠString , Ġindex : ĠInt , Ġshow Next Time : ĠBoolean ) Ġ{ Ċĉ ĉ open Tool Controller . open Re order Scene Ram ifications Tool ( scene Id , Ġindex ) Ċĉ ĉ set Dialog Preferences Controller . set Dialog Preferences ( Dialog Type . Re order Scene . name , Ġshow Next Time ) Ċ ĉ } Ċ Ċ }