1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
4 ** If you wish to add, delete or rename slots use Qt Designer which will
5 ** update this file, preserving your code. Create an init() slot in place of
6 ** a constructor, and a destroy() slot in place of a destructor.
7 *****************************************************************************/
11 void BSAppBase::fileNew()
16 void BSAppBase::fileOpen()
21 void BSAppBase::fileSave()
26 void BSAppBase::fileSaveAs()
31 void BSAppBase::filePrint()
36 void BSAppBase::fileExit()
41 void BSAppBase::editUndo()
46 void BSAppBase::editRedo()
51 void BSAppBase::editCut()
56 void BSAppBase::init()
60 view = new BSView(this,doc);
61 setCentralWidget(view);
64 void BSAppBase::editPaste()
69 void BSAppBase::editFind()
74 void BSAppBase::helpIndex()
79 void BSAppBase::helpContents()
84 void BSAppBase::helpAbout()
89 void BSAppBase::battleNew()
92 QString text = QInputDialog::getText(
93 tr( "Harvalen's Battlesystem" ),
94 tr( "Please enter the name of the battle (for example coords)" ),
95 QLineEdit::Normal, QString::null, &ok, this );
96 if ( ok && !text.isEmpty() )
100 // user entered nothing or pressed Cancel
104 void BSAppBase::battleSimulate()
106 QApplication::setOverrideCursor( Qt::WaitCursor );
108 doc->runBattleSimulation();
109 QApplication::restoreOverrideCursor();