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();
72 void setCurrentListViewItem();
75 BattleSum *m_BattleSum;
76 QListView *m_NumberView;
77 QSplitter *m_RightSplit;
78 QSplitter *m_LeftSplit;
81 //TickView *m_TickView;
82 QWidgetStack *m_FleetViews;
83 FleetView *m_FleetView;
84 FleetView *m_GenericFleetView;
86 std::map<QString, std::map<QString, bool> > m_TreeExpanded;
94 bool m_bMoreDocChanges;
101 public slots: // Public slots
102 /** No descriptions */
103 void slotFleetSelection(QListViewItem *lvi);
104 void slotItemExpanded(QListViewItem *lvi);
105 void slotItemCollapsed(QListViewItem *lvi);
106 void slotGenerateReport();