]> ruin.nu Git - hbs.git/blob - bs/bsview.h
The last commit before backup
[hbs.git] / bs / bsview.h
1 /***************************************************************************
2                           bcview.h  -  description
3                              -------------------
4     begin                : Sun Jun 17 19:19:58 CEST 2001
5     copyright            : (C) 2001 by Michael Andreen
6     email                : whale@linux.nu
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef BCVIEW_H
19 #define BCVIEW_H
20
21 // include files for QT
22 #include <qsplitter.h>
23
24 // application specific includes
25 #include "bsdoc.h"
26
27 class BattleSum;
28 class ScanView;
29 class InfoView;
30 class TickView;
31 class FleetViewBase;
32
33 //QT forward declarations
34 class QListView;
35 class QSplitter;
36 class QWidgetStack;
37 class QListViewItem;
38
39 /**
40  * This class provides an incomplete base for your application view. 
41  */
42
43 class BSView : public QSplitter
44 {
45   Q_OBJECT
46   public:
47     BSView(QWidget *parent=0, BSDoc* doc=0);
48     ~BSView();
49                 
50                 void addBattle(QString name);
51
52   protected slots:
53     void slotDocumentChanged();
54
55   protected:
56         BattleSum       *m_BattleSum;
57         QListView               *m_NumberView;
58         QSplitter               *m_RightSplit;  
59         QSplitter               *m_LeftSplit;
60         ScanView                *m_ScanView;
61         InfoView                *m_InfoView;
62         TickView                *m_TickView;
63         QWidgetStack    *m_FleetViews;
64         FleetViewBase   *m_FleetView;
65   
66 public slots: // Public slots
67   /** No descriptions */
68   void slotFleetSelection(QListViewItem *lvi);
69 };
70
71 #endif