#12666: Rewrite app mode changing a little to make #1266 easier to work on. Work work to come but easier to manage and fix now

git-svn-id: file:///svn/Scribus/trunk/Scribus@19495 11d20701-8431-0410-a711-e3c959e3b870
Fix oops

git-svn-id: file:///svn/Scribus/trunk/Scribus@19496 11d20701-8431-0410-a711-e3c959e3b870
Fix oops

git-svn-id: file:///svn/Scribus/trunk/Scribus@19497 11d20701-8431-0410-a711-e3c959e3b870
Fix another include oops

git-svn-id: file:///svn/Scribus/trunk/Scribus@19498 11d20701-8431-0410-a711-e3c959e3b870