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();
65 void updateInfoView();
66 void updateFleetView();
69 BattleSum *m_BattleSum;
70 QListView *m_NumberView;
71 QSplitter *m_RightSplit;
72 QSplitter *m_LeftSplit;
76 QWidgetStack *m_FleetViews;
77 FleetView *m_FleetView;
78 FleetView *m_GenericFleetView;
80 std::map<QString, std::map<QString, bool> > m_TreeExpanded;
86 bool m_bMoreDocChanges;
88 public slots: // Public slots
89 /** No descriptions */
90 void slotFleetSelection(QListViewItem *lvi);
91 void slotItemExpanded(QListViewItem *lvi);
92 void slotItemCollapsed(QListViewItem *lvi);