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);
64 void slotUseScan(int action, QString text, int fleets);
68 void updateInfoView();
69 void updateFleetView();
72 BattleSum *m_BattleSum;
73 QListView *m_NumberView;
74 QSplitter *m_RightSplit;
75 QSplitter *m_LeftSplit;
78 //TickView *m_TickView;
79 QWidgetStack *m_FleetViews;
80 FleetView *m_FleetView;
81 FleetView *m_GenericFleetView;
83 std::map<QString, std::map<QString, bool> > m_TreeExpanded;
89 bool m_bMoreDocChanges;
96 public slots: // Public slots
97 /** No descriptions */
98 void slotFleetSelection(QListViewItem *lvi);
99 void slotItemExpanded(QListViewItem *lvi);
100 void slotItemCollapsed(QListViewItem *lvi);