]> ruin.nu Git - hbs.git/blob - bs/ui/bsappbase.ui.h
adding, removing and chaning fleets now works.
[hbs.git] / bs / ui / bsappbase.ui.h
1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
3 **
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 *****************************************************************************/
8
9             
10
11 void BSAppBase::fileNew()
12 {
13
14 }
15
16 void BSAppBase::fileOpen()
17 {
18
19 }
20
21 void BSAppBase::fileSave()
22 {
23
24 }
25
26 void BSAppBase::fileSaveAs()
27 {
28
29 }
30
31 void BSAppBase::filePrint()
32 {
33
34 }
35
36 void BSAppBase::fileExit()
37 {
38
39 }
40
41 void BSAppBase::editUndo()
42 {
43
44 }
45
46 void BSAppBase::editRedo()
47 {
48
49 }
50
51 void BSAppBase::editCut()
52 {
53
54 }
55
56 void BSAppBase::init()
57 {
58     conf = new BSConf();
59     doc = new BSDoc();
60     view = new BSView(this,doc);
61     setCentralWidget(view);
62 }
63
64 void BSAppBase::editPaste()
65 {
66
67 }
68
69 void BSAppBase::editFind()
70 {
71
72 }
73
74 void BSAppBase::helpIndex()
75 {
76
77 }
78
79 void BSAppBase::helpContents()
80 {
81
82 }
83
84 void BSAppBase::helpAbout()
85 {
86
87 }
88
89 void BSAppBase::battleNew()
90 {
91     bool ok = FALSE;
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() )
97       doc->newBattle(text);
98   else
99         {
100       // user entered nothing or pressed Cancel
101         }
102 }
103
104 void BSAppBase::battleSimulate()
105 {
106      QApplication::setOverrideCursor( Qt::WaitCursor );
107      
108      //doc->runBattleSimulation();
109      QApplication::restoreOverrideCursor();
110 }