X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fbsview.h;h=b87c1c695e4c4cfb753b8a7c7f348ce97e52a57b;hb=e0be1e6e8f7a246acf49e1f315c8d5bc5a65bfa3;hp=d706e59bc15f92a6370be096837a0776522e72db;hpb=dc90594097a886eee49e9bfe45da6d4f9765179a;p=hbs.git diff --git a/bs/bsview.h b/bs/bsview.h index d706e59..b87c1c6 100644 --- a/bs/bsview.h +++ b/bs/bsview.h @@ -21,13 +21,16 @@ // include files for QT #include +//Standard includes +#include + // application specific includes #include "bsdoc.h" class BattleSum; class ScanView; class InfoView; -class TickView; +//class TickView; class FleetView; //QT forward declarations @@ -47,26 +50,54 @@ class BSView : public QSplitter BSView(QWidget *parent=0, BSDoc* doc=0); ~BSView(); - void addBattle(QString name); + void addBattle(QString name); protected slots: void slotDocumentChanged(); + void slotFleetChanged(const Fleet*); + void slotInfoApply(); + void slotInfoCancel(); + void slotInfoNew(); + void slotInfoRemove(); + void slotTickChanged(int min, int max); + void slotResultModeChanged( int i); + void slotUseScan(int action, QString text, int fleets); protected: + + void updateInfoView(); + void updateFleetView(); + + BattleSum *m_BattleSum; QListView *m_NumberView; QSplitter *m_RightSplit; QSplitter *m_LeftSplit; ScanView *m_ScanView; InfoView *m_InfoView; - TickView *m_TickView; + //TickView *m_TickView; QWidgetStack *m_FleetViews; - FleetView *m_FleetView; + FleetView *m_FleetView; + FleetView *m_GenericFleetView; BSDoc *m_doc; + std::map > m_TreeExpanded; + + QString m_sBattle; + QString m_sGroup; + QString m_sFleet; + + bool m_bMoreDocChanges; + + int m_iMaxTick; + int m_iMinTick; + int m_iResultMode; + public slots: // Public slots /** No descriptions */ void slotFleetSelection(QListViewItem *lvi); + void slotItemExpanded(QListViewItem *lvi); + void slotItemCollapsed(QListViewItem *lvi); }; #endif