X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fui%2Fbsappbase.ui.h;h=8d5da689d32821851a4ae957eb4f9feb92d8460a;hb=refs%2Ftags%2FHBS_0_1_0;hp=e7257447f284070aea24529ba78c00b8e8f2ed8f;hpb=e07f49323a1936c90605d06f6f63e4c39b4c4aca;p=hbs.git diff --git a/bs/ui/bsappbase.ui.h b/bs/ui/bsappbase.ui.h index e725744..8d5da68 100644 --- a/bs/ui/bsappbase.ui.h +++ b/bs/ui/bsappbase.ui.h @@ -55,6 +55,7 @@ void BSAppBase::editCut() void BSAppBase::init() { + conf = new BSConf(); doc = new BSDoc(); view = new BSView(this,doc); setCentralWidget(view); @@ -98,4 +99,12 @@ void BSAppBase::battleNew() { // user entered nothing or pressed Cancel } +} + +void BSAppBase::battleSimulate() +{ + QApplication::setOverrideCursor( Qt::WaitCursor ); + + doc->runBattleSimulation(); + QApplication::restoreOverrideCursor(); } \ No newline at end of file