]> ruin.nu Git - hbs.git/blobdiff - bs/bsview.cpp
some changes..
[hbs.git] / bs / bsview.cpp
index df3f558d97de534a8a5d37512581b9c1de3c2a4f..9212fb166c4295cad4be300ebe67186993f4a51b 100644 (file)
@@ -85,7 +85,7 @@ BSView::BSView(QWidget *parent, BSDoc *doc) : QSplitter(parent)
        //the right side
        //m_TickView = new TickView(m_RightSplit);
        m_FleetViews = new QWidgetStack(m_RightSplit);
-       //m_ScanView = new ScanView(m_RightSplit);
+       m_ScanView = new ScanView(m_RightSplit);
        
        Fleet fl1;
        //fl1.setRace(tr("Terran").latin1());
@@ -107,6 +107,7 @@ BSView::BSView(QWidget *parent, BSDoc *doc) : QSplitter(parent)
        connect(m_NumberView, SIGNAL(selectionChanged(QListViewItem *)), SLOT(slotFleetSelection(QListViewItem *)));
        connect(m_FleetView, SIGNAL(fleetChanged(const Fleet*)), SLOT(slotFleetChanged(const Fleet*)));
        connect(m_GenericFleetView, SIGNAL(fleetChanged(const Fleet*)), SLOT(slotFleetChanged(const Fleet*)));
+       connect(m_ScanView, SIGNAL(scanUsed(int,QString, int)), SLOT(slotUseScan(int, QString, int)));
 }
 
 BSView::~BSView()
@@ -439,3 +440,12 @@ void BSView::slotResultModeChanged( int i)
        
        m_iResultMode = i;
 }
+
+//////////////////////////////////////////////////////////////////////////
+//
+void BSView::slotUseScan(int action, QString text, int fleets)
+{
+       cerr << "Action: " << action << endl;
+       cerr << "Text: " << text.latin1() << endl;
+       cerr << "Fleets: " << fleets << endl;
+}