]> ruin.nu Git - hbs.git/blob - bs/ui/bsappbase.ui.h
e7257447f284070aea24529ba78c00b8e8f2ed8f
[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     doc = new BSDoc();
59     view = new BSView(this,doc);
60     setCentralWidget(view);
61 }
62
63 void BSAppBase::editPaste()
64 {
65
66 }
67
68 void BSAppBase::editFind()
69 {
70
71 }
72
73 void BSAppBase::helpIndex()
74 {
75
76 }
77
78 void BSAppBase::helpContents()
79 {
80
81 }
82
83 void BSAppBase::helpAbout()
84 {
85
86 }
87
88 void BSAppBase::battleNew()
89 {
90     bool ok = FALSE;
91   QString text = QInputDialog::getText(
92             tr( "Harvalen's Battlesystem" ),
93             tr( "Please enter the name of the battle (for example coords)" ),
94             QLineEdit::Normal, QString::null, &ok, this );
95   if ( ok && !text.isEmpty() )
96       doc->newBattle(text);
97   else
98         {
99       // user entered nothing or pressed Cancel
100         }
101 }