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
45 * This class provides an incomplete base for your application view.
48 class BSView : public QSplitter
52 BSView(QWidget *parent=0, BSDoc* doc=0);
55 void addBattle(QString name);
58 void slotDocumentChanged();
59 void slotFleetChanged(const Fleet*);
61 void slotInfoCancel();
63 void slotInfoRemove();
64 void slotTickChanged(int min, int max);
65 void slotResultModeChanged( int i);
66 void slotUseScan(int action, QString text, int fleets);
70 void updateInfoView();
71 void updateFleetView();
74 BattleSum *m_BattleSum;
75 QListView *m_NumberView;
76 QSplitter *m_RightSplit;
77 QSplitter *m_LeftSplit;
80 //TickView *m_TickView;
81 QWidgetStack *m_FleetViews;
82 FleetView *m_FleetView;
83 FleetView *m_GenericFleetView;
85 std::map<QString, std::map<QString, bool> > m_TreeExpanded;
93 bool m_bMoreDocChanges;
100 public slots: // Public slots
101 /** No descriptions */
102 void slotFleetSelection(QListViewItem *lvi);
103 void slotItemExpanded(QListViewItem *lvi);
104 void slotItemCollapsed(QListViewItem *lvi);
105 void slotGenerateReport();