]> ruin.nu Git - hbs.git/commitdiff
Changed lots of classnames from Bc to BS
authorMichael Andreen <harv@ruin.nu>
Sat, 8 Sep 2001 22:27:47 +0000 (22:27 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 8 Sep 2001 22:27:47 +0000 (22:27 +0000)
bs/battlesum.cpp
bs/battlesum.h
bs/bs.cpp
bs/bs.h
bs/bsdoc.cpp
bs/bsdoc.h
bs/bsview.cpp
bs/bsview.h
bs/main.cpp
bs/ui/battlesumbase.ui
hbs.pro

index 307392ddb75dede9b0a79b417691b70343ca8d28..bcb1f8fce64ac3c4ec45980e587341555fefdcba 100644 (file)
@@ -1,19 +1,53 @@
-#include "bcmainview.h"
+#include "battlesum.h"
 
 /* 
 
 /* 
- *  Constructs a BcMainView which is a child of 'parent', with the 
+ *  Constructs a BattleSum which is a child of 'parent', with the 
  *  name 'name' and widget flags set to 'f' 
  */
  *  name 'name' and widget flags set to 'f' 
  */
-BcMainView::BcMainView( QWidget* parent,  const char* name, WFlags fl )
-    : BcViewBase( parent, name, fl )
+BattleSum::BattleSum( QWidget* parent,  const char* name, WFlags fl )
+    : BattleSumBase( parent, name, fl )
 {
 }
 
 /*  
  *  Destroys the object and frees any allocated resources
  */
 {
 }
 
 /*  
  *  Destroys the object and frees any allocated resources
  */
-BcMainView::~BcMainView()
+BattleSum::~BattleSum()
 {
     // no need to delete child widgets, Qt does it all for us
 }
 
 {
     // no need to delete child widgets, Qt does it all for us
 }
 
+/* 
+ * public slot
+ */
+void BattleSum::slotSetMaxTick( int i )
+{
+    qWarning( "BattleSum::slotSetMaxTick( int i ) not yet implemented!" ); 
+}
+
+/* 
+ * public slot
+ */
+void BattleSum::slotSetMinTick( int i )
+{
+    qWarning( "BattleSum::slotSetMinTick( int i ) not yet implemented!" ); 
+}
+
+
+/* 
+ * protected slot
+ */
+void BattleSum::init()
+{
+    qWarning( "BattleSum::init() not yet implemented!" ); 
+}
+
+/* 
+ * protected slot
+ */
+void BattleSum::destroy()
+{
+    qWarning( "BattleSum::destroy() not yet implemented!" ); 
+}
+
+
index 8ce82432d3707c07b390033da7ebed8fc72bdd90..c1e35ca74296c586e30f1d06c9c6027d347548fb 100644 (file)
@@ -1,15 +1,23 @@
-#ifndef BCMAINVIEW_H
-#define BCMAINVIEW_H
-#include "ui/bcviewbase.h"
+#ifndef BATTLESUM_H
+#define BATTLESUM_H
+#include "ui/battlesumbase.h"
 
 
-class BcMainView : public BcViewBase
+class BattleSum : public BattleSumBase
 { 
     Q_OBJECT
 
 public:
 { 
     Q_OBJECT
 
 public:
-    BcMainView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
-    ~BcMainView();
+    BattleSum( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+    ~BattleSum();
+
+public slots:
+    void slotSetMaxTick( int i );
+    void slotSetMinTick( int i );
+
+protected slots:
+    void init();
+    void destroy();
 
 };
 
 
 };
 
-#endif // BCMAINVIEW_H
+#endif // BATTLESUM_H
index 1422dcd3ed48e792b46d2bcfce811d891aa087c0..42dc30a8d295b34eb3c8eda071facac9bba178dd 100644 (file)
--- a/bs/bs.cpp
+++ b/bs/bs.cpp
 #include "../config.h"
 
 #include <qaccel.h>
 #include "../config.h"
 
 #include <qaccel.h>
-#include "bc.h"
+#include "bs.h"
 #include "filesave.xpm"
 #include "fileopen.xpm"
 #include "filenew.xpm"
 
 #include "filesave.xpm"
 #include "fileopen.xpm"
 #include "filenew.xpm"
 
-BcApp::BcApp()
+BSApp::BSApp()
 {
   setCaption(tr("Bc " VERSION));
 
 {
   setCaption(tr("Bc " VERSION));
 
@@ -41,12 +41,12 @@ BcApp::BcApp()
   viewStatusBar->setOn(true);
 }
 
   viewStatusBar->setOn(true);
 }
 
-BcApp::~BcApp()
+BSApp::~BSApp()
 {
 }
 
 /** initializes all QActions of the application */
 {
 }
 
 /** initializes all QActions of the application */
-void BcApp::initActions(){
+void BSApp::initActions(){
 
   QPixmap openIcon, saveIcon, newIcon;
   newIcon = QPixmap(filenew);
 
   QPixmap openIcon, saveIcon, newIcon;
   newIcon = QPixmap(filenew);
@@ -121,7 +121,7 @@ void BcApp::initActions(){
 
 }
 
 
 }
 
-void BcApp::initMenuBar()
+void BSApp::initMenuBar()
 {
   ///////////////////////////////////////////////////////////////////
   // MENUBAR
 {
   ///////////////////////////////////////////////////////////////////
   // MENUBAR
@@ -171,7 +171,7 @@ void BcApp::initMenuBar()
 
 }
 
 
 }
 
-void BcApp::initToolBar()
+void BSApp::initToolBar()
 {
   ///////////////////////////////////////////////////////////////////
   // TOOLBAR
 {
   ///////////////////////////////////////////////////////////////////
   // TOOLBAR
@@ -184,27 +184,27 @@ void BcApp::initToolBar()
 
 }
 
 
 }
 
-void BcApp::initStatusBar()
+void BSApp::initStatusBar()
 {
   ///////////////////////////////////////////////////////////////////
   //STATUSBAR
   statusBar()->message(tr("Ready."), 2000);
 }
 
 {
   ///////////////////////////////////////////////////////////////////
   //STATUSBAR
   statusBar()->message(tr("Ready."), 2000);
 }
 
-void BcApp::initDoc()
+void BSApp::initDoc()
 {
 {
-   doc=new BcDoc();
+   doc=new BSDoc();
 }
 
 }
 
-void BcApp::initView()
+void BSApp::initView()
 {
   ////////////////////////////////////////////////////////////////////
   // set the main widget here
 {
   ////////////////////////////////////////////////////////////////////
   // set the main widget here
-  view=new BcView(this, doc);
+  view=new BSView(this, doc);
   setCentralWidget(view);
 }
 
   setCentralWidget(view);
 }
 
-bool BcApp::queryExit()
+bool BSApp::queryExit()
 {
   int exit=QMessageBox::information(this, tr("Quit..."),
                                     tr("Do your really want to quit?"),
 {
   int exit=QMessageBox::information(this, tr("Quit..."),
                                     tr("Do your really want to quit?"),
@@ -227,14 +227,14 @@ bool BcApp::queryExit()
 /////////////////////////////////////////////////////////////////////
 
 
 /////////////////////////////////////////////////////////////////////
 
 
-void BcApp::slotFileNew()
+void BSApp::slotFileNew()
 {
   statusBar()->message(tr("Creating new file..."));
   doc->newDoc();
   statusBar()->message(tr("Ready."));
 }
 
 {
   statusBar()->message(tr("Creating new file..."));
   doc->newDoc();
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotFileOpen()
+void BSApp::slotFileOpen()
 {
   statusBar()->message(tr("Opening file..."));
 
 {
   statusBar()->message(tr("Opening file..."));
 
@@ -253,14 +253,14 @@ void BcApp::slotFileOpen()
 }
 
 
 }
 
 
-void BcApp::slotFileSave()
+void BSApp::slotFileSave()
 {
   statusBar()->message(tr("Saving file..."));
   doc->save();
   statusBar()->message(tr("Ready."));
 }
 
 {
   statusBar()->message(tr("Saving file..."));
   doc->save();
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotFileSaveAs()
+void BSApp::slotFileSaveAs()
 {
   statusBar()->message(tr("Saving file under new filename..."));
   QString fn = QFileDialog::getSaveFileName(0, 0, this);
 {
   statusBar()->message(tr("Saving file under new filename..."));
   QString fn = QFileDialog::getSaveFileName(0, 0, this);
@@ -276,14 +276,14 @@ void BcApp::slotFileSaveAs()
   statusBar()->message(tr("Ready."));
 }
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotFileClose()
+void BSApp::slotFileClose()
 {
   statusBar()->message(tr("Closing file..."));
 
   statusBar()->message(tr("Ready."));
 }
 
 {
   statusBar()->message(tr("Closing file..."));
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotFilePrint()
+void BSApp::slotFilePrint()
 {
   statusBar()->message(tr("Printing..."));
   QPrinter printer;
 {
   statusBar()->message(tr("Printing..."));
   QPrinter printer;
@@ -301,7 +301,7 @@ void BcApp::slotFilePrint()
   statusBar()->message(tr("Ready."));
 }
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotFileQuit()
+void BSApp::slotFileQuit()
 {
   statusBar()->message(tr("Exiting application..."));
   ///////////////////////////////////////////////////////////////////
 {
   statusBar()->message(tr("Exiting application..."));
   ///////////////////////////////////////////////////////////////////
@@ -325,21 +325,21 @@ void BcApp::slotFileQuit()
   statusBar()->message(tr("Ready."));
 }
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotEditCut()
+void BSApp::slotEditCut()
 {
   statusBar()->message(tr("Cutting selection..."));
 
   statusBar()->message(tr("Ready."));
 }
 
 {
   statusBar()->message(tr("Cutting selection..."));
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotEditCopy()
+void BSApp::slotEditCopy()
 {
   statusBar()->message(tr("Copying selection to clipboard..."));
 
   statusBar()->message(tr("Ready."));
 }
 
 {
   statusBar()->message(tr("Copying selection to clipboard..."));
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotEditPaste()
+void BSApp::slotEditPaste()
 {
   statusBar()->message(tr("Inserting clipboard contents..."));
 
 {
   statusBar()->message(tr("Inserting clipboard contents..."));
 
@@ -347,7 +347,7 @@ void BcApp::slotEditPaste()
 }
 
 
 }
 
 
-void BcApp::slotViewToolBar(bool toggle)
+void BSApp::slotViewToolBar(bool toggle)
 {
   statusBar()->message(tr("Toggle toolbar..."));
   ///////////////////////////////////////////////////////////////////
 {
   statusBar()->message(tr("Toggle toolbar..."));
   ///////////////////////////////////////////////////////////////////
@@ -365,7 +365,7 @@ void BcApp::slotViewToolBar(bool toggle)
   statusBar()->message(tr("Ready."));
 }
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotViewStatusBar(bool toggle)
+void BSApp::slotViewStatusBar(bool toggle)
 {
   statusBar()->message(tr("Toggle statusbar..."));
   ///////////////////////////////////////////////////////////////////
 {
   statusBar()->message(tr("Toggle statusbar..."));
   ///////////////////////////////////////////////////////////////////
@@ -383,7 +383,7 @@ void BcApp::slotViewStatusBar(bool toggle)
   statusBar()->message(tr("Ready."));
 }
 
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotHelpAbout()
+void BSApp::slotHelpAbout()
 {
   QMessageBox::about(this,tr("About..."),
                       tr("Bc\nVersion " VERSION "\n(c) 2001 by Michael Andreen") );
 {
   QMessageBox::about(this,tr("About..."),
                       tr("Bc\nVersion " VERSION "\n(c) 2001 by Michael Andreen") );
diff --git a/bs/bs.h b/bs/bs.h
index f77c74b6ce03c06c3312c6acb62d0e37caf3b508..efdd22a9d703b5664d4ae6a115fa1735aaee0cf0 100644 (file)
--- a/bs/bs.h
+++ b/bs/bs.h
@@ -36,8 +36,8 @@
 #include <qpainter.h>
 
 // application specific includes
 #include <qpainter.h>
 
 // application specific includes
-#include "bcview.h"
-#include "bcdoc.h"
+#include "bsview.h"
+#include "bsdoc.h"
 
 /**
   * This Class is the base class for your application. It sets up the main
 
 /**
   * This Class is the base class for your application. It sets up the main
   * and statusbar. For the main view, an instance of class BcView is
   * created which creates your view.
   */
   * and statusbar. For the main view, an instance of class BcView is
   * created which creates your view.
   */
-class BcApp : public QMainWindow
+class BSApp : public QMainWindow
 {
   Q_OBJECT
   
   public:
     /** construtor */
 {
   Q_OBJECT
   
   public:
     /** construtor */
-    BcApp();
+    BSApp();
     /** destructor */
     /** destructor */
-    ~BcApp();
+    ~BSApp();
     /** initializes all QActions of the application */
     void initActions();
     /** initMenuBar creates the menu_bar and inserts the menuitems */
     /** initializes all QActions of the application */
     void initActions();
     /** initMenuBar creates the menu_bar and inserts the menuitems */
@@ -110,11 +110,11 @@ class BcApp : public QMainWindow
      * you can create your view according to your application's needs by
      * changing the view class.
      */
      * you can create your view according to your application's needs by
      * changing the view class.
      */
-    BcView* view;
+    BSView* view;
     /** doc represents your actual document and is created only once. It keeps
      * information such as filename and does the serialization of your files.
      */
     /** doc represents your actual document and is created only once. It keeps
      * information such as filename and does the serialization of your files.
      */
-    BcDoc *doc;
+    BSDoc *doc;
   
     /** file_menu contains all items of the menubar entry "File" */
     QPopupMenu *fileMenu;
   
     /** file_menu contains all items of the menubar entry "File" */
     QPopupMenu *fileMenu;
index 57811c70417188fd0d0914b170d815546fd7c429..3d32cad004dd1aa92a123bdbc730ab7755d4115d 100644 (file)
  *                                                                         *
  ***************************************************************************/
 
  *                                                                         *
  ***************************************************************************/
 
-#include "bcdoc.h"
+#include "bsdoc.h"
 
 
-BcDoc::BcDoc()
+BSDoc::BSDoc()
 {
   modified = false;
 }
 
 {
   modified = false;
 }
 
-BcDoc::~BcDoc()
+BSDoc::~BSDoc()
 {
 }
 
 {
 }
 
-void BcDoc::newDoc()
+void BSDoc::newDoc()
 {
 }
 
 {
 }
 
-bool BcDoc::save()
+bool BSDoc::save()
 {
   return true;
 }
 
 {
   return true;
 }
 
-bool BcDoc::saveAs(const QString &filename)
+bool BSDoc::saveAs(const QString &filename)
 {
   return true;
 }
 
 {
   return true;
 }
 
-bool BcDoc::load(const QString &filename)
+bool BSDoc::load(const QString &filename)
 {
   emit documentChanged();
   return true;
 }
 
 {
   emit documentChanged();
   return true;
 }
 
-bool BcDoc::isModified() const
+bool BSDoc::isModified() const
 {
   return modified;
 }
 {
   return modified;
 }
index 6ff9216fffef2bdb70133bf71f5f7020154dfa18..0c02c6fa3fe0a19773ba8acb44356d4f03c27f22 100644 (file)
   * the Document Class
   */
 
   * the Document Class
   */
 
-class BcDoc : public QObject
+class BSDoc : public QObject
 {
   Q_OBJECT
 
   public:
 {
   Q_OBJECT
 
   public:
-    BcDoc();
-    ~BcDoc();
+    BSDoc();
+    ~BSDoc();
     void newDoc();
     bool save();
     bool saveAs(const QString &filename);
     void newDoc();
     bool save();
     bool saveAs(const QString &filename);
index 7ad7e19b64e661502b4baf0af9d901a21dff51d2..042adf7f3ceea322c518a0b92c9eb38ed1d784c0 100644 (file)
@@ -15,9 +15,9 @@
  *                                                                         *
  ***************************************************************************/
 
  *                                                                         *
  ***************************************************************************/
 
-#include "bcview.h"
+#include "bsview.h"
 
 
-#include "bcmainview.h"
+#include "battlesum.h"
 #include "scanview.h"
 #include "ui/infoview.h"
 #include "tickview.h"
 #include "scanview.h"
 #include "ui/infoview.h"
 #include "tickview.h"
@@ -26,7 +26,7 @@
 #include <qlistview.h>
 #include <qwidgetstack.h>
 
 #include <qlistview.h>
 #include <qwidgetstack.h>
 
-BcView::BcView(QWidget *parent, BcDoc *doc) : QSplitter(parent)
+BSView::BSView(QWidget *parent, BSDoc *doc) : QSplitter(parent)
 {
   /** connect doc with the view*/
   connect(doc, SIGNAL(documentChanged()), this, SLOT(slotDocumentChanged()));
 {
   /** connect doc with the view*/
   connect(doc, SIGNAL(documentChanged()), this, SLOT(slotDocumentChanged()));
@@ -50,31 +50,31 @@ BcView::BcView(QWidget *parent, BcDoc *doc) : QSplitter(parent)
        m_ScanView = new ScanView(m_RightSplit);
        
        //the widget stack
        m_ScanView = new ScanView(m_RightSplit);
        
        //the widget stack
-       m_BcMainView = new BcMainView();
-       m_FleetViews->addWidget(m_BcMainView, 0);
+       m_BattleSum = new BattleSum();
+       m_FleetViews->addWidget(m_BattleSum, 0);
 
        //m_FleetViews->raiseWidget(0);
        connect(m_NumberView, SIGNAL(selectionChanged(QListViewItem *)), SLOT(slotFleetSelection(QListViewItem *))); 
 }
 
 
        //m_FleetViews->raiseWidget(0);
        connect(m_NumberView, SIGNAL(selectionChanged(QListViewItem *)), SLOT(slotFleetSelection(QListViewItem *))); 
 }
 
-BcView::~BcView()
+BSView::~BSView()
 {
 }
 
 {
 }
 
-void BcView::addBattle(QString name)
+void BSView::addBattle(QString name)
 {
        QListViewItem *battle = new QListViewItem(m_NumberView, name);
        (void) new QListViewItem(battle, "Defenders");
        (void) new QListViewItem(battle, "Attackers");
 }
 
 {
        QListViewItem *battle = new QListViewItem(m_NumberView, name);
        (void) new QListViewItem(battle, "Defenders");
        (void) new QListViewItem(battle, "Attackers");
 }
 
-void BcView::slotDocumentChanged()
+void BSView::slotDocumentChanged()
 {
   //TODO update the view
 
 }
 /** No descriptions */
 {
   //TODO update the view
 
 }
 /** No descriptions */
-void BcView::slotFleetSelection(QListViewItem *lvi){
+void BSView::slotFleetSelection(QListViewItem *lvi){
        if (lvi->parent() == '\0')
        {
                m_FleetViews->raiseWidget(0);
        if (lvi->parent() == '\0')
        {
                m_FleetViews->raiseWidget(0);
index 89c528cf06116d59c85c08da3927610ca0474fd6..c90b2106be14142e9f772be7a8d4a3e39b0a5aaf 100644 (file)
@@ -22,9 +22,9 @@
 #include <qsplitter.h>
 
 // application specific includes
 #include <qsplitter.h>
 
 // application specific includes
-#include "bcdoc.h"
+#include "bsdoc.h"
 
 
-class BcMainView;
+class BattleSum;
 class ScanView;
 class InfoView;
 class TickView;
 class ScanView;
 class InfoView;
 class TickView;
@@ -39,12 +39,12 @@ class QListViewItem;
  * This class provides an incomplete base for your application view. 
  */
 
  * This class provides an incomplete base for your application view. 
  */
 
-class BcView : public QSplitter
+class BSView : public QSplitter
 {
   Q_OBJECT
   public:
 {
   Q_OBJECT
   public:
-    BcView(QWidget *parent=0, BcDoc* doc=0);
-    ~BcView();
+    BSView(QWidget *parent=0, BSDoc* doc=0);
+    ~BSView();
                
                void addBattle(QString name);
 
                
                void addBattle(QString name);
 
@@ -52,14 +52,14 @@ class BcView : public QSplitter
     void slotDocumentChanged();
 
   protected:
     void slotDocumentChanged();
 
   protected:
-       BcMainView      *m_BcMainView;
-               QListView               *m_NumberView;
-               QSplitter               *m_RightSplit;  
-               QSplitter               *m_LeftSplit;
-               ScanView                *m_ScanView;
-               InfoView                *m_InfoView;
-               TickView                *m_TickView;
-               QWidgetStack    *m_FleetViews;
+       BattleSum       *m_BattleSum;
+       QListView               *m_NumberView;
+       QSplitter               *m_RightSplit;  
+       QSplitter               *m_LeftSplit;
+       ScanView                *m_ScanView;
+       InfoView                *m_InfoView;
+       TickView                *m_TickView;
+       QWidgetStack    *m_FleetViews;
   
 public slots: // Public slots
   /** No descriptions */
   
 public slots: // Public slots
   /** No descriptions */
index ea8ef3f81170e94afac3b27352e16614921391ca..e91959284000784b0cf6bdc33185a7863f00f5a5 100644 (file)
@@ -20,7 +20,7 @@
 #include <qcdestyle.h>
 
 #include "../config.h"
 #include <qcdestyle.h>
 
 #include "../config.h"
-#include "bc.h"
+#include "bs.h"
 
 int main(int argc, char *argv[])
 {
 
 int main(int argc, char *argv[])
 {
@@ -32,13 +32,13 @@ int main(int argc, char *argv[])
        /* uncomment the following line, if you want a Windows 95 look*/
        // a.setStyle(WindowsStyle);
        //a.setStyle(s);
        /* uncomment the following line, if you want a Windows 95 look*/
        // a.setStyle(WindowsStyle);
        //a.setStyle(s);
-       BcApp *bc=new BcApp();
-       a.setMainWidget(bc);
+       BSApp *bs=new BSApp();
+       a.setMainWidget(bs);
 
 
-       bc->setCaption("HÃ¥rvalens BattleCalc" VERSION);
+       bs->setCaption("Harv's BattleSystem" VERSION);
        //eonsl->showMaximized();
        //eonsl->showMaximized();
-       bc->resize(800,600);
-       bc->show();
+       bs->resize(800,600);
+       bs->show();
 
        return a.exec();
 }
 
        return a.exec();
 }
index 7dbeece49dd39e74388fab9b46cf93250a41ef5f..a0935de4e7f3330dd27166da8d3ae9dd21b3c133 100644 (file)
@@ -1,11 +1,8 @@
 <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
 <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
-<class>BcViewBase</class>
-<include location="global" impldecl="in implementation">qheader.h</include>
-<include location="local" implDecl="in declaration">bcviewbase.ui.h</include>
-<layoutdefaults spacing="6" margin="0"/>
+<class>BattleSumBase</class>
 <widget class="QWidget">
     <property name="name">
 <widget class="QWidget">
     <property name="name">
-        <cstring>BcViewBase</cstring>
+        <cstring>BattleSumBase</cstring>
     </property>
     <property name="geometry">
         <rect>
     </property>
     <property name="geometry">
         <rect>
                                 <property name="text">
                                     <string>Total</string>
                                 </property>
                                 <property name="text">
                                     <string>Total</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </column>
                             <column>
                                 <property name="text">
                                     <string>L/S</string>
                                 </property>
                             </column>
                             <column>
                                 <property name="text">
                                     <string>L/S</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </column>
                             <column>
                                 <property name="text">
                                     <string>Total</string>
                                 </property>
                             </column>
                             <column>
                                 <property name="text">
                                     <string>Total</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </column>
                             <column>
                                 <property name="text">
                                     <string>L/S</string>
                                 </property>
                             </column>
                             <column>
                                 <property name="text">
                                     <string>L/S</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </column>
                             <row>
                                 <property name="text">
                                     <string>Interceptors</string>
                                 </property>
                             </column>
                             <row>
                                 <property name="text">
                                     <string>Interceptors</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Pheonix</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Pheonix</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Warfrigate</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Warfrigate</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Devistator</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Devistator</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Starcruiser</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Starcruiser</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Dreadnaught</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Dreadnaught</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Spider</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Spider</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Ghost</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Ghost</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Tarantula</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Tarantula</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Spectre</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Spectre</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Astropod</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Astropod</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Meson</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Meson</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Hyperon</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Hyperon</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Neutron</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Neutron</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Photon</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Photon</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>ION</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>ION</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Resource</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Resource</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Metal</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Metal</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Crystal</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Crystal</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Eonium</string>
                                 </property>
                             </row>
                             <row>
                                 <property name="text">
                                     <string>Eonium</string>
                                 </property>
-                                <property name="pixmap">
-                                    <pixmap></pixmap>
-                                </property>
                             </row>
                             <property name="name">
                                 <cstring>fleetTable</cstring>
                             </row>
                             <property name="name">
                                 <cstring>fleetTable</cstring>
     </grid>
 </widget>
 <connections>
     </grid>
 </widget>
 <connections>
-    <slot access="protected" language="C++" returnType="void">init()</slot>
-    <slot access="protected" language="C++" returnType="void">destroy()</slot>
-    <slot access="public" language="C++" returnType="void">slotSetMaxTick( int i )</slot>
-    <slot access="public" language="C++" returnType="void">slotSetMinTick( int i )</slot>
 </connections>
 </connections>
+<includes>
+    <include location="global" impldecl="in implementation">qheader.h</include>
+</includes>
+<slots>
+    <slot access="protected">init()</slot>
+    <slot access="protected">destroy()</slot>
+    <slot>slotSetMaxTick( int i )</slot>
+    <slot>slotSetMinTick( int i )</slot>
+</slots>
+<layoutdefaults spacing="6" margin="0"/>
 </UI>
 </UI>
diff --git a/hbs.pro b/hbs.pro
index 20921e2b52a1987b941897aedf62a05376f57a3b..565dabcf0a74b419ee364266d3cf94dfe3b0ed6f 100644 (file)
--- a/hbs.pro
+++ b/hbs.pro
@@ -1,24 +1,11 @@
-TEMPLATE       = app
-CONFIG         = qt warn_on debug thread
-HEADERS                = bs/bs.h \
-                 bs/bsdoc.h \
-                 bs/bsview.h \
-                       bs/bsmainview.h \
-                 config.h \
-                       bs/scanview.h \
-                       bs/tickview.h
-SOURCES                =                         bs/bs.cpp \
-                 bs/bsdoc.cpp \
-                 bs/bsview.cpp \
-                       bs/main.cpp \
-                       bs/bsmainview.cpp \
-                       bs/scanview.cpp \
-                       bs/tickview.cpp
+SOURCES        += bs/bs.cpp bs/bsdoc.cpp bs/bsview.cpp bs/main.cpp bs/battlesum.cpp bs/scanview.cpp bs/tickview.cpp 
+HEADERS        += bs/bs.h bs/bsdoc.h bs/bsview.h bs/battlesum.h config.h bs/scanview.h bs/tickview.h 
 
 TARGET = bs/bs
 
 TARGET = bs/bs
-INTERFACES     = bs/ui/bsviewbase.ui bs/ui/scanviewbase.ui bs/ui/infoview.ui bs/ui/tickviewbase.ui 
-DBFILE = bs.db
 IMAGEFILE      = images.cpp
 PROJECTNAME    = BS
 IMAGEFILE      = images.cpp
 PROJECTNAME    = BS
+FORMS  = bs/ui/battlesumbase.ui bs/ui/scanviewbase.ui bs/ui/infoview.ui bs/ui/tickviewbase.ui bs/ui/bsappbase.ui 
+TEMPLATE       =app
+CONFIG += qt warn_on debug thread
+DBFILE = hbs.db
 LANGUAGE       = C++
 LANGUAGE       = C++
-{SOURCES+=images.cpp}