1 /***************************************************************************
4 begin : Sun Jun 17 19:19:58 CEST 2001
5 copyright : (C) 2001 by Michael Andreen
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
21 // include files for QT
22 #include <qsplitter.h>
27 // application specific includes
36 //QT forward declarations
43 * This class provides an incomplete base for your application view.
46 class BSView : public QSplitter
50 BSView(QWidget *parent=0, BSDoc* doc=0);
53 void addBattle(QString name);
56 void slotDocumentChanged();
57 void slotFleetChanged(const Fleet*);
59 void slotInfoCancel();
61 void slotInfoRemove();
62 void slotTickChanged(int min, int max);
63 void slotResultModeChanged( int i);
67 void updateInfoView();
68 void updateFleetView();
71 BattleSum *m_BattleSum;
72 QListView *m_NumberView;
73 QSplitter *m_RightSplit;
74 QSplitter *m_LeftSplit;
77 //TickView *m_TickView;
78 QWidgetStack *m_FleetViews;
79 FleetView *m_FleetView;
80 FleetView *m_GenericFleetView;
82 std::map<QString, std::map<QString, bool> > m_TreeExpanded;
88 bool m_bMoreDocChanges;
95 public slots: // Public slots
96 /** No descriptions */
97 void slotFleetSelection(QListViewItem *lvi);
98 void slotItemExpanded(QListViewItem *lvi);
99 void slotItemCollapsed(QListViewItem *lvi);