]> ruin.nu Git - hbs.git/commitdiff
Initial revision
authorMichael Andreen <harv@ruin.nu>
Sat, 8 Sep 2001 20:49:35 +0000 (20:49 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 8 Sep 2001 20:49:35 +0000 (20:49 +0000)
44 files changed:
AUTHORS [new file with mode: 0644]
COPYING [new file with mode: 0644]
ChangeLog [new file with mode: 0644]
INSTALL [new file with mode: 0644]
README [new file with mode: 0644]
TODO [new file with mode: 0644]
bs/battlesum.cpp [new file with mode: 0644]
bs/battlesum.h [new file with mode: 0644]
bs/bs.cpp [new file with mode: 0644]
bs/bs.h [new file with mode: 0644]
bs/bsdoc.cpp [new file with mode: 0644]
bs/bsdoc.h [new file with mode: 0644]
bs/bsview.cpp [new file with mode: 0644]
bs/bsview.h [new file with mode: 0644]
bs/docs/en/index-1.html [new file with mode: 0644]
bs/docs/en/index-2.html [new file with mode: 0644]
bs/docs/en/index-3.html [new file with mode: 0644]
bs/docs/en/index-4.html [new file with mode: 0644]
bs/docs/en/index-5.html [new file with mode: 0644]
bs/docs/en/index-6.html [new file with mode: 0644]
bs/docs/en/index.html [new file with mode: 0644]
bs/docs/en/index.sgml [new file with mode: 0644]
bs/filenew.xpm [new file with mode: 0644]
bs/fileopen.xpm [new file with mode: 0644]
bs/filesave.xpm [new file with mode: 0644]
bs/main.cpp [new file with mode: 0644]
bs/scanview.cpp [new file with mode: 0644]
bs/scanview.h [new file with mode: 0644]
bs/templates/cpp_template [new file with mode: 0644]
bs/templates/header_template [new file with mode: 0644]
bs/tickview.cpp [new file with mode: 0644]
bs/tickview.h [new file with mode: 0644]
bs/ui/battlesumbase.ui [new file with mode: 0644]
bs/ui/infoview.ui [new file with mode: 0644]
bs/ui/scanviewbase.ui [new file with mode: 0644]
bs/ui/tickviewbase.ui [new file with mode: 0644]
bs/ui/tickviewbase.ui.h [new file with mode: 0644]
config.h [new file with mode: 0644]
hbs.db [new file with mode: 0644]
hbs.kdevprj [new file with mode: 0644]
hbs.kdevses [new file with mode: 0644]
hbs.lsm [new file with mode: 0644]
hbs.pro [new file with mode: 0644]
images.cpp [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..2250bed
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
+Michael Andreen <whale@linux.nu>
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..c7aea18
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,280 @@
+                   GNU GENERAL PUBLIC LICENSE
+                      Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+                          675 Mass Ave, Cambridge, MA 02139, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                           Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+\f
+                   GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+\f
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+\f
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+\f
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                           NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                    END OF TERMS AND CONDITIONS
diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..2ea4697
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,2 @@
+Sat Sep  8 22:24:04 CEST 2001
+       * Renamed everything from bc to hbs or bs
diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..02a4a07
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,167 @@
+Basic Installation
+==================
+
+   These are generic installation instructions.
+
+   The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation.  It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions.  Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, a file
+`config.cache' that saves the results of its tests to speed up
+reconfiguring, and a file `config.log' containing compiler output
+(useful mainly for debugging `configure').
+
+   If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release.  If at some point `config.cache'
+contains results you don't want to keep, you may remove or edit it.
+
+   The file `configure.in' is used to create `configure' by a program
+called `autoconf'.  You only need `configure.in' if you want to change
+it or regenerate `configure' using a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+  1. `cd' to the directory containing the package's source code and type
+     `./configure' to configure the package for your system.  If you're
+     using `csh' on an old version of System V, you might need to type
+     `sh ./configure' instead to prevent `csh' from trying to execute
+     `configure' itself.
+
+     Running `configure' takes a while.  While running, it prints some
+     messages telling which features it is checking for.
+
+  2. Type `make' to compile the package.
+
+  3. Type `make install' to install the programs and any data files and
+     documentation.
+
+  4. You can remove the program binaries and object files from the
+     source code directory by typing `make clean'.  
+
+Compilers and Options
+=====================
+
+   Some systems require unusual options for compilation or linking that
+the `configure' script does not know about.  You can give `configure'
+initial values for variables by setting them in the environment.  Using
+a Bourne-compatible shell, you can do that on the command line like
+this:
+     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
+
+Or on systems that have the `env' program, you can do it like this:
+     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
+
+Compiling For Multiple Architectures
+====================================
+
+   You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory.  To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script.  `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+   If you have to use a `make' that does not supports the `VPATH'
+variable, you have to compile the package for one architecture at a time
+in the source code directory.  After you have installed the package for
+one architecture, use `make distclean' before reconfiguring for another
+architecture.
+
+Installation Names
+==================
+
+   By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc.  You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+   You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files.  If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+   If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+   Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System).  The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+   For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+   There may be some features `configure' can not figure out
+automatically, but needs to determine by the type of host the package
+will run on.  Usually `configure' can figure that out, but if it prints
+a message saying it can not guess the host type, give it the
+`--host=TYPE' option.  TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name with three fields:
+     CPU-COMPANY-SYSTEM
+
+See the file `config.sub' for the possible values of each field.  If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the host type.
+
+   If you are building compiler tools for cross-compiling, you can also
+use the `--target=TYPE' option to select the type of system they will
+produce code for and the `--build=TYPE' option to select the type of
+system on which you are compiling the package.
+
+Sharing Defaults
+================
+
+   If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Operation Controls
+==================
+
+   `configure' recognizes the following options to control how it
+operates.
+
+`--cache-file=FILE'
+     Use and save the results of the tests in FILE instead of
+     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
+     debugging `configure'.
+
+`--help'
+     Print a summary of the options to `configure', and exit.
+
+`--quiet'
+`--silent'
+`-q'
+     Do not print messages saying which checks are being made.
+
+`--srcdir=DIR'
+     Look for the package's source code in directory DIR.  Usually
+     `configure' can determine that directory automatically.
+
+`--version'
+     Print the version of Autoconf used to generate the `configure'
+     script, and exit.
+
+`configure' also accepts some other, not widely useful, options.
+
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
+++ b/README
@@ -0,0 +1 @@
+
diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..8c13f52
--- /dev/null
+++ b/TODO
@@ -0,0 +1,5 @@
+*reading scans
+
+*reading galaxy status - to setup attackers/defenders
+
+
diff --git a/bs/battlesum.cpp b/bs/battlesum.cpp
new file mode 100644 (file)
index 0000000..307392d
--- /dev/null
@@ -0,0 +1,19 @@
+#include "bcmainview.h"
+
+/* 
+ *  Constructs a BcMainView which is a child of 'parent', with the 
+ *  name 'name' and widget flags set to 'f' 
+ */
+BcMainView::BcMainView( QWidget* parent,  const char* name, WFlags fl )
+    : BcViewBase( parent, name, fl )
+{
+}
+
+/*  
+ *  Destroys the object and frees any allocated resources
+ */
+BcMainView::~BcMainView()
+{
+    // no need to delete child widgets, Qt does it all for us
+}
+
diff --git a/bs/battlesum.h b/bs/battlesum.h
new file mode 100644 (file)
index 0000000..8ce8243
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef BCMAINVIEW_H
+#define BCMAINVIEW_H
+#include "ui/bcviewbase.h"
+
+class BcMainView : public BcViewBase
+{ 
+    Q_OBJECT
+
+public:
+    BcMainView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+    ~BcMainView();
+
+};
+
+#endif // BCMAINVIEW_H
diff --git a/bs/bs.cpp b/bs/bs.cpp
new file mode 100644 (file)
index 0000000..1422dcd
--- /dev/null
+++ b/bs/bs.cpp
@@ -0,0 +1,391 @@
+/***************************************************************************
+                          bc.cpp  -  description
+                             -------------------
+    begin                : Sun May 27 22:13:58 CEST 2001
+    copyright            : (C) 2001 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "../config.h"
+
+#include <qaccel.h>
+#include "bc.h"
+#include "filesave.xpm"
+#include "fileopen.xpm"
+#include "filenew.xpm"
+
+BcApp::BcApp()
+{
+  setCaption(tr("Bc " VERSION));
+
+  ///////////////////////////////////////////////////////////////////
+  // call inits to invoke all other construction parts
+  initActions();
+  initMenuBar();
+  initToolBar();
+  initStatusBar();
+
+  initDoc();
+  initView();
+
+  viewToolBar->setOn(true);
+  viewStatusBar->setOn(true);
+}
+
+BcApp::~BcApp()
+{
+}
+
+/** initializes all QActions of the application */
+void BcApp::initActions(){
+
+  QPixmap openIcon, saveIcon, newIcon;
+  newIcon = QPixmap(filenew);
+  openIcon = QPixmap(fileopen);
+  saveIcon = QPixmap(filesave);
+
+
+  fileNew = new QAction(tr("New File"), newIcon, tr("&New"), QAccel::stringToKey(tr("Ctrl+N")), this);
+  fileNew->setStatusTip(tr("Creates a new document"));
+  fileNew->setWhatsThis(tr("New File\n\nCreates a new document"));
+  connect(fileNew, SIGNAL(activated()), this, SLOT(slotFileNew()));
+
+  fileOpen = new QAction(tr("Open File"), openIcon, tr("&Open..."), 0, this);
+  fileOpen->setStatusTip(tr("Opens an existing document"));
+  fileOpen->setWhatsThis(tr("Open File\n\nOpens an existing document"));
+  connect(fileOpen, SIGNAL(activated()), this, SLOT(slotFileOpen()));
+
+  fileSave = new QAction(tr("Save File"), saveIcon, tr("&Save"), QAccel::stringToKey(tr("Ctrl+S")), this);
+  fileSave->setStatusTip(tr("Saves the actual document"));
+  fileSave->setWhatsThis(tr("Save File.\n\nSaves the actual document"));
+  connect(fileSave, SIGNAL(activated()), this, SLOT(slotFileSave()));
+
+  fileSaveAs = new QAction(tr("Save File As"), tr("Save &as..."), 0, this);
+  fileSaveAs->setStatusTip(tr("Saves the actual document under a new filename"));
+  fileSaveAs->setWhatsThis(tr("Save As\n\nSaves the actual document under a new filename"));
+  connect(fileSaveAs, SIGNAL(activated()), this, SLOT(slotFileSave()));
+
+  fileClose = new QAction(tr("Close File"), tr("&Close"), QAccel::stringToKey(tr("Ctrl+W")), this);
+  fileClose->setStatusTip(tr("Closes the actual document"));
+  fileClose->setWhatsThis(tr("Close File\n\nCloses the actual document"));
+  connect(fileClose, SIGNAL(activated()), this, SLOT(slotFileClose()));
+
+  filePrint = new QAction(tr("Print File"), tr("&Print"), QAccel::stringToKey(tr("Ctrl+P")), this);
+  filePrint->setStatusTip(tr("Prints out the actual document"));
+  filePrint->setWhatsThis(tr("Print File\n\nPrints out the actual document"));
+  connect(filePrint, SIGNAL(activated()), this, SLOT(slotFilePrint()));
+
+  fileQuit = new QAction(tr("Exit"), tr("E&xit"), QAccel::stringToKey(tr("Ctrl+Q")), this);
+  fileQuit->setStatusTip(tr("Quits the application"));
+  fileQuit->setWhatsThis(tr("Exit\n\nQuits the application"));
+  connect(fileQuit, SIGNAL(activated()), this, SLOT(slotFileQuit()));
+
+  editCut = new QAction(tr("Cut"), tr("Cu&t"), QAccel::stringToKey(tr("Ctrl+X")), this);
+  editCut->setStatusTip(tr("Cuts the selected section and puts it to the clipboard"));
+  editCut->setWhatsThis(tr("Cut\n\nCuts the selected section and puts it to the clipboard"));
+  connect(editCut, SIGNAL(activated()), this, SLOT(slotEditCut()));
+
+  editCopy = new QAction(tr("Copy"), tr("&Copy"), QAccel::stringToKey(tr("Ctrl+C")), this);
+  editCopy->setStatusTip(tr("Copies the selected section to the clipboard"));
+  editCopy->setWhatsThis(tr("Copy\n\nCopies the selected section to the clipboard"));
+  connect(editCopy, SIGNAL(activated()), this, SLOT(slotEditCopy()));
+
+  editPaste = new QAction(tr("Paste"), tr("&Paste"), QAccel::stringToKey(tr("Ctrl+V")), this);
+  editPaste->setStatusTip(tr("Pastes the clipboard contents to actual position"));
+  editPaste->setWhatsThis(tr("Paste\n\nPastes the clipboard contents to actual position"));
+  connect(editPaste, SIGNAL(activated()), this, SLOT(slotEditPaste()));
+
+  viewToolBar = new QAction(tr("Toolbar"), tr("Tool&bar"), 0, this, 0, true);
+  viewToolBar->setStatusTip(tr("Enables/disables the toolbar"));
+  viewToolBar->setWhatsThis(tr("Toolbar\n\nEnables/disables the toolbar"));
+  connect(viewToolBar, SIGNAL(toggled(bool)), this, SLOT(slotViewToolBar(bool)));
+
+  viewStatusBar = new QAction(tr("Statusbar"), tr("&Statusbar"), 0, this, 0, true);
+  viewStatusBar->setStatusTip(tr("Enables/disables the statusbar"));
+  viewStatusBar->setWhatsThis(tr("Statusbar\n\nEnables/disables the statusbar"));
+  connect(viewStatusBar, SIGNAL(toggled(bool)), this, SLOT(slotViewStatusBar(bool)));
+
+  helpAboutApp = new QAction(tr("About"), tr("&About..."), 0, this);
+  helpAboutApp->setStatusTip(tr("About the application"));
+  helpAboutApp->setWhatsThis(tr("About\n\nAbout the application"));
+  connect(helpAboutApp, SIGNAL(activated()), this, SLOT(slotHelpAbout()));
+
+}
+
+void BcApp::initMenuBar()
+{
+  ///////////////////////////////////////////////////////////////////
+  // MENUBAR
+
+  ///////////////////////////////////////////////////////////////////
+  // menuBar entry fileMenu
+  fileMenu=new QPopupMenu();
+  fileNew->addTo(fileMenu);
+  fileOpen->addTo(fileMenu);
+  fileClose->addTo(fileMenu);
+  fileMenu->insertSeparator();
+  fileSave->addTo(fileMenu);
+  fileSaveAs->addTo(fileMenu);
+  fileMenu->insertSeparator();
+  filePrint->addTo(fileMenu);
+  fileMenu->insertSeparator();
+  fileQuit->addTo(fileMenu);
+
+  ///////////////////////////////////////////////////////////////////
+  // menuBar entry editMenu
+  editMenu=new QPopupMenu();
+  editCut->addTo(editMenu);
+  editCopy->addTo(editMenu);
+  editPaste->addTo(editMenu);
+
+  ///////////////////////////////////////////////////////////////////
+  // menuBar entry viewMenu
+  viewMenu=new QPopupMenu();
+  viewMenu->setCheckable(true);
+  viewToolBar->addTo(viewMenu);
+  viewStatusBar->addTo(viewMenu);
+  ///////////////////////////////////////////////////////////////////
+  // EDIT YOUR APPLICATION SPECIFIC MENUENTRIES HERE
+
+  ///////////////////////////////////////////////////////////////////
+  // menuBar entry helpMenu
+  helpMenu=new QPopupMenu();
+  helpAboutApp->addTo(helpMenu);
+
+  ///////////////////////////////////////////////////////////////////
+  // MENUBAR CONFIGURATION
+  menuBar()->insertItem(tr("&File"), fileMenu);
+  menuBar()->insertItem(tr("&Edit"), editMenu);
+  menuBar()->insertItem(tr("&View"), viewMenu);
+  menuBar()->insertSeparator();
+  menuBar()->insertItem(tr("&Help"), helpMenu);
+
+}
+
+void BcApp::initToolBar()
+{
+  ///////////////////////////////////////////////////////////////////
+  // TOOLBAR
+  fileToolbar = new QToolBar(this, "file operations");
+  fileNew->addTo(fileToolbar);
+  fileOpen->addTo(fileToolbar);
+  fileSave->addTo(fileToolbar);
+  fileToolbar->addSeparator();
+  QWhatsThis::whatsThisButton(fileToolbar);
+
+}
+
+void BcApp::initStatusBar()
+{
+  ///////////////////////////////////////////////////////////////////
+  //STATUSBAR
+  statusBar()->message(tr("Ready."), 2000);
+}
+
+void BcApp::initDoc()
+{
+   doc=new BcDoc();
+}
+
+void BcApp::initView()
+{
+  ////////////////////////////////////////////////////////////////////
+  // set the main widget here
+  view=new BcView(this, doc);
+  setCentralWidget(view);
+}
+
+bool BcApp::queryExit()
+{
+  int exit=QMessageBox::information(this, tr("Quit..."),
+                                    tr("Do your really want to quit?"),
+                                    QMessageBox::Ok, QMessageBox::Cancel);
+
+  if (exit==1)
+  {
+
+  }
+  else
+  {
+
+  };
+
+  return (exit==1);
+}
+
+/////////////////////////////////////////////////////////////////////
+// SLOT IMPLEMENTATION
+/////////////////////////////////////////////////////////////////////
+
+
+void BcApp::slotFileNew()
+{
+  statusBar()->message(tr("Creating new file..."));
+  doc->newDoc();
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotFileOpen()
+{
+  statusBar()->message(tr("Opening file..."));
+
+  QString fileName = QFileDialog::getOpenFileName(0,0,this);
+  if (!fileName.isEmpty())
+  {
+    doc->load(fileName);
+    setCaption(fileName);
+    QString message=tr("Loaded document: ")+fileName;
+    statusBar()->message(message, 2000);
+  }
+  else
+  {
+    statusBar()->message(tr("Opening aborted"), 2000);
+  }
+}
+
+
+void BcApp::slotFileSave()
+{
+  statusBar()->message(tr("Saving file..."));
+  doc->save();
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotFileSaveAs()
+{
+  statusBar()->message(tr("Saving file under new filename..."));
+  QString fn = QFileDialog::getSaveFileName(0, 0, this);
+  if (!fn.isEmpty())
+  {
+    doc->saveAs(fn);
+  }
+  else
+  {
+    statusBar()->message(tr("Saving aborted"), 2000);
+  }
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotFileClose()
+{
+  statusBar()->message(tr("Closing file..."));
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotFilePrint()
+{
+  statusBar()->message(tr("Printing..."));
+  QPrinter printer;
+  if (printer.setup(this))
+  {
+    QPainter painter;
+    painter.begin(&printer);
+
+    ///////////////////////////////////////////////////////////////////
+    // TODO: Define printing by using the QPainter methods here
+
+    painter.end();
+  };
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotFileQuit()
+{
+  statusBar()->message(tr("Exiting application..."));
+  ///////////////////////////////////////////////////////////////////
+  // exits the Application
+  if(doc->isModified())
+  {
+    if(queryExit())
+    {
+      qApp->quit();
+    }
+    else
+    {
+
+    };
+  }
+  else
+  {
+    qApp->quit();
+  };
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotEditCut()
+{
+  statusBar()->message(tr("Cutting selection..."));
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotEditCopy()
+{
+  statusBar()->message(tr("Copying selection to clipboard..."));
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotEditPaste()
+{
+  statusBar()->message(tr("Inserting clipboard contents..."));
+
+  statusBar()->message(tr("Ready."));
+}
+
+
+void BcApp::slotViewToolBar(bool toggle)
+{
+  statusBar()->message(tr("Toggle toolbar..."));
+  ///////////////////////////////////////////////////////////////////
+  // turn Toolbar on or off
+
+  if (toggle== false)
+  {
+    fileToolbar->hide();
+  }
+  else
+  {
+    fileToolbar->show();
+  };
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotViewStatusBar(bool toggle)
+{
+  statusBar()->message(tr("Toggle statusbar..."));
+  ///////////////////////////////////////////////////////////////////
+  //turn Statusbar on or off
+
+  if (toggle == false)
+  {
+    statusBar()->hide();
+  }
+  else
+  {
+    statusBar()->show();
+  }
+
+  statusBar()->message(tr("Ready."));
+}
+
+void BcApp::slotHelpAbout()
+{
+  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
new file mode 100644 (file)
index 0000000..f77c74b
--- /dev/null
+++ b/bs/bs.h
@@ -0,0 +1,149 @@
+/***************************************************************************
+                          bc.h  -  description
+                             -------------------
+    begin                : Sun May 27 22:13:58 CEST 2001
+    copyright            : (C) 2001 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef BC_H
+#define BC_H
+
+// include files for QT
+#include <qapp.h>
+#include <qmainwindow.h>
+#include <qaction.h>
+#include <qmenubar.h>
+#include <qpopupmenu.h>
+#include <qtoolbar.h>
+#include <qtoolbutton.h>
+#include <qstatusbar.h>
+#include <qwhatsthis.h>
+#include <qstring.h>
+#include <qpixmap.h>
+#include <qmsgbox.h>
+#include <qfiledialog.h>
+#include <qprinter.h>
+#include <qpainter.h>
+
+// application specific includes
+#include "bcview.h"
+#include "bcdoc.h"
+
+/**
+  * This Class is the base class for your application. It sets up the main
+  * window and providing a menubar, toolbar
+  * and statusbar. For the main view, an instance of class BcView is
+  * created which creates your view.
+  */
+class BcApp : public QMainWindow
+{
+  Q_OBJECT
+  
+  public:
+    /** construtor */
+    BcApp();
+    /** destructor */
+    ~BcApp();
+    /** initializes all QActions of the application */
+    void initActions();
+    /** initMenuBar creates the menu_bar and inserts the menuitems */
+    void initMenuBar();
+    /** this creates the toolbars. Change the toobar look and add new toolbars in this
+     * function */
+    void initToolBar();
+    /** setup the statusbar */
+    void initStatusBar();
+    /** setup the document*/
+    void initDoc();
+    /** setup the mainview*/
+    void initView();
+
+    /** overloaded for Message box on last window exit */
+    bool queryExit();
+
+  public slots:
+
+    /** generate a new document in the actual view */
+    void slotFileNew();
+    /** open a document */
+    void slotFileOpen();
+    /** save a document */
+    void slotFileSave();
+    /** save a document under a different filename*/
+    void slotFileSaveAs();
+    /** close the actual file */
+    void slotFileClose();
+    /** print the actual file */
+    void slotFilePrint();
+    /** exits the application */
+    void slotFileQuit();
+    /** put the marked text/object into the clipboard and remove
+     * it from the document */
+    void slotEditCut();
+    /** put the marked text/object into the clipboard*/
+    void slotEditCopy();
+    /** paste the clipboard into the document*/
+    void slotEditPaste();
+    /** toggle the toolbar*/
+    void slotViewToolBar(bool toggle);
+    /** toggle the statusbar*/
+    void slotViewStatusBar(bool toggle);
+
+    /** shows an about dlg*/
+    void slotHelpAbout();
+
+
+  private:
+
+    /** view is the main widget which represents your working area. The View
+     * class should handle all events of the view widget.  It is kept empty so
+     * you can create your view according to your application's needs by
+     * changing the view class.
+     */
+    BcView* view;
+    /** 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;
+  
+    /** file_menu contains all items of the menubar entry "File" */
+    QPopupMenu *fileMenu;
+    /** edit_menu contains all items of the menubar entry "Edit" */
+    QPopupMenu *editMenu;
+    /** view_menu contains all items of the menubar entry "View" */
+    QPopupMenu *viewMenu;
+    /** view_menu contains all items of the menubar entry "Help" */
+    QPopupMenu *helpMenu;
+    /** the main toolbar */
+    QToolBar *fileToolbar;
+    /** actions for the application initialized in initActions() and used to en/disable them
+      * according to your needs during the program */
+    QAction *fileNew;
+    QAction *fileOpen;
+    QAction *fileSave;
+    QAction *fileSaveAs;
+    QAction *fileClose;
+    QAction *filePrint;
+    QAction *fileQuit;
+
+    QAction *editCut;
+    QAction *editCopy;
+    QAction *editPaste;
+
+    QAction *viewToolBar;
+    QAction *viewStatusBar;
+
+    QAction *helpAboutApp;
+};
+#endif 
+
diff --git a/bs/bsdoc.cpp b/bs/bsdoc.cpp
new file mode 100644 (file)
index 0000000..57811c7
--- /dev/null
@@ -0,0 +1,52 @@
+/***************************************************************************
+                          bcdoc.cpp  -  description
+                             -------------------
+    begin                : Sun May 27 22:13:58 CEST 2001
+    copyright            : (C) 2001 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "bcdoc.h"
+
+BcDoc::BcDoc()
+{
+  modified = false;
+}
+
+BcDoc::~BcDoc()
+{
+}
+
+void BcDoc::newDoc()
+{
+}
+
+bool BcDoc::save()
+{
+  return true;
+}
+
+bool BcDoc::saveAs(const QString &filename)
+{
+  return true;
+}
+
+bool BcDoc::load(const QString &filename)
+{
+  emit documentChanged();
+  return true;
+}
+
+bool BcDoc::isModified() const
+{
+  return modified;
+}
diff --git a/bs/bsdoc.h b/bs/bsdoc.h
new file mode 100644 (file)
index 0000000..6ff9216
--- /dev/null
@@ -0,0 +1,49 @@
+/***************************************************************************
+                          bcdoc.h  -  description
+                             -------------------
+    begin                : Sun May 27 22:13:58 CEST 2001
+    copyright            : (C) 2001 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+#ifndef BCDOC_H
+#define BCDOC_H
+
+// include files for QT
+#include <qobject.h>
+
+// application specific includes
+
+/**
+  * the Document Class
+  */
+
+class BcDoc : public QObject
+{
+  Q_OBJECT
+
+  public:
+    BcDoc();
+    ~BcDoc();
+    void newDoc();
+    bool save();
+    bool saveAs(const QString &filename);
+    bool load(const QString &filename);
+    bool isModified() const;
+
+  signals:
+    void documentChanged();
+
+  protected:
+    bool modified;
+};
+
+#endif
diff --git a/bs/bsview.cpp b/bs/bsview.cpp
new file mode 100644 (file)
index 0000000..7ad7e19
--- /dev/null
@@ -0,0 +1,87 @@
+/***************************************************************************
+                          bcview.cpp  -  description
+                             -------------------
+    begin                : Sun Jun 17 19:19:58 CEST 2001
+    copyright            : (C) 2001 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "bcview.h"
+
+#include "bcmainview.h"
+#include "scanview.h"
+#include "ui/infoview.h"
+#include "tickview.h"
+
+//QT includes
+#include <qlistview.h>
+#include <qwidgetstack.h>
+
+BcView::BcView(QWidget *parent, BcDoc *doc) : QSplitter(parent)
+{
+  /** connect doc with the view*/
+  connect(doc, SIGNAL(documentChanged()), this, SLOT(slotDocumentChanged()));
+       
+       
+       m_LeftSplit = new QSplitter(QSplitter::Vertical, this);
+       m_RightSplit = new QSplitter(QSplitter::Vertical, this);
+
+       //setting up the listview
+       m_NumberView = new QListView(m_LeftSplit);
+       m_NumberView->addColumn("Name");
+       m_NumberView->addColumn("Number");
+       m_NumberView->addColumn("ETA");
+       addBattle("test");
+
+       m_InfoView = new InfoView(m_LeftSplit);
+       
+       //the right side
+       m_TickView = new TickView(m_RightSplit);
+       m_FleetViews = new QWidgetStack(m_RightSplit);
+       m_ScanView = new ScanView(m_RightSplit);
+       
+       //the widget stack
+       m_BcMainView = new BcMainView();
+       m_FleetViews->addWidget(m_BcMainView, 0);
+
+       //m_FleetViews->raiseWidget(0);
+       connect(m_NumberView, SIGNAL(selectionChanged(QListViewItem *)), SLOT(slotFleetSelection(QListViewItem *))); 
+}
+
+BcView::~BcView()
+{
+}
+
+void BcView::addBattle(QString name)
+{
+       QListViewItem *battle = new QListViewItem(m_NumberView, name);
+       (void) new QListViewItem(battle, "Defenders");
+       (void) new QListViewItem(battle, "Attackers");
+}
+
+void BcView::slotDocumentChanged()
+{
+  //TODO update the view
+
+}
+/** No descriptions */
+void BcView::slotFleetSelection(QListViewItem *lvi){
+       if (lvi->parent() == '\0')
+       {
+               m_FleetViews->raiseWidget(0);
+       }
+       else if (lvi->parent()->parent() == '\0')
+       {
+               m_FleetViews->raiseWidget(1);
+       }
+       
+}
diff --git a/bs/bsview.h b/bs/bsview.h
new file mode 100644 (file)
index 0000000..89c528c
--- /dev/null
@@ -0,0 +1,69 @@
+/***************************************************************************
+                          bcview.h  -  description
+                             -------------------
+    begin                : Sun Jun 17 19:19:58 CEST 2001
+    copyright            : (C) 2001 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef BCVIEW_H
+#define BCVIEW_H
+
+// include files for QT
+#include <qsplitter.h>
+
+// application specific includes
+#include "bcdoc.h"
+
+class BcMainView;
+class ScanView;
+class InfoView;
+class TickView;
+
+//QT forward declarations
+class QListView;
+class QSplitter;
+class QWidgetStack;
+class QListViewItem;
+
+/**
+ * This class provides an incomplete base for your application view. 
+ */
+
+class BcView : public QSplitter
+{
+  Q_OBJECT
+  public:
+    BcView(QWidget *parent=0, BcDoc* doc=0);
+    ~BcView();
+               
+               void addBattle(QString name);
+
+  protected slots:
+    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;
+  
+public slots: // Public slots
+  /** No descriptions */
+  void slotFleetSelection(QListViewItem *lvi);
+};
+
+#endif
diff --git a/bs/docs/en/index-1.html b/bs/docs/en/index-1.html
new file mode 100644 (file)
index 0000000..7db1c70
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+<HEAD>
+ <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
+ <TITLE>The Bc Handbook: Introduction</TITLE>
+ <LINK HREF="index-2.html" REL=next>
+
+ <LINK HREF="index.html#toc1" REL=contents>
+</HEAD>
+<BODY>
+<A HREF="index-2.html">Next</A>
+Previous
+<A HREF="index.html#toc1">Contents</A>
+<HR>
+<H2><A NAME="s1">1. Introduction</A></H2>
+
+<P>
+<H2><A NAME="ss1.1">1.1 Changes</A>
+</H2>
+
+<P>
+<P>
+<HR>
+<A HREF="index-2.html">Next</A>
+Previous
+<A HREF="index.html#toc1">Contents</A>
+</BODY>
+</HTML>
diff --git a/bs/docs/en/index-2.html b/bs/docs/en/index-2.html
new file mode 100644 (file)
index 0000000..d10bb68
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+<HEAD>
+ <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
+ <TITLE>The Bc Handbook: Installation</TITLE>
+ <LINK HREF="index-3.html" REL=next>
+ <LINK HREF="index-1.html" REL=previous>
+ <LINK HREF="index.html#toc2" REL=contents>
+</HEAD>
+<BODY>
+<A HREF="index-3.html">Next</A>
+<A HREF="index-1.html">Previous</A>
+<A HREF="index.html#toc2">Contents</A>
+<HR>
+<H2><A NAME="s2">2. Installation</A></H2>
+
+<P>
+<H2><A NAME="ss2.1">2.1 How to obtain Bc </A>
+</H2>
+
+<P>
+<P>
+<H2><A NAME="ss2.2">2.2 Requirements</A>
+</H2>
+
+<P>
+<P>
+<H2><A NAME="ss2.3">2.3 Compilation and installation</A>
+</H2>
+
+<P>
+<P>In order to compile and install Bc on your system, type the following in
+the base directory of the Bc distribution:
+<P>
+<BLOCKQUOTE><CODE>
+<PRE>
+% ./configure
+% make
+% make install
+</PRE>
+</CODE></BLOCKQUOTE>
+<P>
+<P>Since Bc uses 
+<PRE>
+autoconf
+</PRE>
+ you should have not trouble
+compiling it.
+Should you run into problems please report them to the the author at 
+<A HREF="mailto:whale@linux.nu">Michael Andreen</A><P>
+<P>
+<P>
+<HR>
+<A HREF="index-3.html">Next</A>
+<A HREF="index-1.html">Previous</A>
+<A HREF="index.html#toc2">Contents</A>
+</BODY>
+</HTML>
diff --git a/bs/docs/en/index-3.html b/bs/docs/en/index-3.html
new file mode 100644 (file)
index 0000000..632327c
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+<HEAD>
+ <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
+ <TITLE>The Bc Handbook: Usage </TITLE>
+ <LINK HREF="index-4.html" REL=next>
+ <LINK HREF="index-2.html" REL=previous>
+ <LINK HREF="index.html#toc3" REL=contents>
+</HEAD>
+<BODY>
+<A HREF="index-4.html">Next</A>
+<A HREF="index-2.html">Previous</A>
+<A HREF="index.html#toc3">Contents</A>
+<HR>
+<H2><A NAME="s3">3. Usage </A></H2>
+
+<P>
+<H2><A NAME="ss3.1">3.1 General Usage</A>
+</H2>
+
+<P>
+<HR>
+<A HREF="index-4.html">Next</A>
+<A HREF="index-2.html">Previous</A>
+<A HREF="index.html#toc3">Contents</A>
+</BODY>
+</HTML>
diff --git a/bs/docs/en/index-4.html b/bs/docs/en/index-4.html
new file mode 100644 (file)
index 0000000..852f1c8
--- /dev/null
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+<HEAD>
+ <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
+ <TITLE>The Bc Handbook: Another Section</TITLE>
+ <LINK HREF="index-5.html" REL=next>
+ <LINK HREF="index-3.html" REL=previous>
+ <LINK HREF="index.html#toc4" REL=contents>
+</HEAD>
+<BODY>
+<A HREF="index-5.html">Next</A>
+<A HREF="index-3.html">Previous</A>
+<A HREF="index.html#toc4">Contents</A>
+<HR>
+<H2><A NAME="s4">4. Another Section</A></H2>
+
+<P>
+<P>
+<HR>
+<A HREF="index-5.html">Next</A>
+<A HREF="index-3.html">Previous</A>
+<A HREF="index.html#toc4">Contents</A>
+</BODY>
+</HTML>
diff --git a/bs/docs/en/index-5.html b/bs/docs/en/index-5.html
new file mode 100644 (file)
index 0000000..244f204
--- /dev/null
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+<HEAD>
+ <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
+ <TITLE>The Bc Handbook: Questions and Answers</TITLE>
+ <LINK HREF="index-6.html" REL=next>
+ <LINK HREF="index-4.html" REL=previous>
+ <LINK HREF="index.html#toc5" REL=contents>
+</HEAD>
+<BODY>
+<A HREF="index-6.html">Next</A>
+<A HREF="index-4.html">Previous</A>
+<A HREF="index.html#toc5">Contents</A>
+<HR>
+<H2><A NAME="s5">5. Questions and Answers</A></H2>
+
+<P>
+<P>
+<HR>
+<A HREF="index-6.html">Next</A>
+<A HREF="index-4.html">Previous</A>
+<A HREF="index.html#toc5">Contents</A>
+</BODY>
+</HTML>
diff --git a/bs/docs/en/index-6.html b/bs/docs/en/index-6.html
new file mode 100644 (file)
index 0000000..d2aed37
--- /dev/null
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+<HEAD>
+ <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
+ <TITLE>The Bc Handbook: Copyright</TITLE>
+ <LINK HREF="index-5.html" REL=previous>
+ <LINK HREF="index.html#toc6" REL=contents>
+</HEAD>
+<BODY>
+Next
+<A HREF="index-5.html">Previous</A>
+<A HREF="index.html#toc6">Contents</A>
+<HR>
+<H2><A NAME="s6">6. Copyright</A></H2>
+
+<P>
+<P>Bc Copyright 2001 Michael Andreen , whale@linux.nu
+<P>
+<P>This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+<P>This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+<P>You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+<P>
+<P>
+<HR>
+Next
+<A HREF="index-5.html">Previous</A>
+<A HREF="index.html#toc6">Contents</A>
+</BODY>
+</HTML>
diff --git a/bs/docs/en/index.html b/bs/docs/en/index.html
new file mode 100644 (file)
index 0000000..00c89ba
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+<HEAD>
+ <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
+ <TITLE>The Bc Handbook</TITLE>
+ <LINK HREF="index-1.html" REL=next>
+
+
+</HEAD>
+<BODY>
+<A HREF="index-1.html">Next</A>
+Previous
+Contents
+<HR>
+<H1>The Bc Handbook</H1>
+
+<H2>Michael Andreen <CODE>whale@linux.nu</CODE></H2>Version 0.1 , Sun May 27 22:13:58 CEST 2001
+<P><HR>
+<EM>This Handbook describes Bc Version 0.1</EM>
+<HR>
+<P>
+<H2><A NAME="toc1">1.</A> <A HREF="index-1.html">Introduction</A></H2>
+
+<UL>
+<LI><A HREF="index-1.html#ss1.1">1.1 Changes</A>
+</UL>
+<P>
+<H2><A NAME="toc2">2.</A> <A HREF="index-2.html">Installation</A></H2>
+
+<UL>
+<LI><A HREF="index-2.html#ss2.1">2.1 How to obtain Bc </A>
+<LI><A HREF="index-2.html#ss2.2">2.2 Requirements</A>
+<LI><A HREF="index-2.html#ss2.3">2.3 Compilation and installation</A>
+</UL>
+<P>
+<H2><A NAME="toc3">3.</A> <A HREF="index-3.html">Usage </A></H2>
+
+<UL>
+<LI><A HREF="index-3.html#ss3.1">3.1 General Usage</A>
+</UL>
+<P>
+<H2><A NAME="toc4">4.</A> <A HREF="index-4.html">Another Section</A></H2>
+
+<P>
+<H2><A NAME="toc5">5.</A> <A HREF="index-5.html">Questions and Answers</A></H2>
+
+<P>
+<H2><A NAME="toc6">6.</A> <A HREF="index-6.html">Copyright</A></H2>
+
+<HR>
+<A HREF="index-1.html">Next</A>
+Previous
+Contents
+</BODY>
+</HTML>
diff --git a/bs/docs/en/index.sgml b/bs/docs/en/index.sgml
new file mode 100644 (file)
index 0000000..b992cc3
--- /dev/null
@@ -0,0 +1,74 @@
+
+<!doctype linuxdoc system>
+<article>
+<title>The Bc Handbook
+<author>Michael Andreen <tt>whale@linux.nu</tt>
+<date>Version 0.1 , Sun May 27 22:13:58 CEST 2001
+<abstract>
+This Handbook describes Bc Version 0.1
+</abstract>
+
+<toc>
+
+<sect>Introduction
+<p>
+<sect1>Changes
+<p>
+
+<sect>Installation
+<p>
+<sect1>How to obtain Bc 
+<p>
+
+<sect1>Requirements
+<p>
+
+<sect1>Compilation and installation
+<p>
+
+In order to compile and install Bc on your system, type the following in
+the base directory of the Bc distribution:
+
+<tscreen><verb>
+% ./configure
+% make
+% make install
+</verb></tscreen>
+
+<p>
+Since Bc uses <verb>autoconf</verb> you should have not trouble
+compiling it.
+Should you run into problems please report them to the the author at 
+<htmlurl url="mailto:whale@linux.nu" name = "Michael Andreen">
+
+
+<p>
+<sect> Usage <p>
+<sect1> General Usage
+<p>
+<sect> Another Section
+<p>
+
+<sect>Questions and Answers<p>
+
+<sect>Copyright<p>
+
+Bc Copyright 2001 Michael Andreen , whale@linux.nu
+
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+<p>
+</article>
diff --git a/bs/filenew.xpm b/bs/filenew.xpm
new file mode 100644 (file)
index 0000000..2543c9b
--- /dev/null
@@ -0,0 +1,22 @@
+/* XPM */
+static const char * filenew[] = {
+"10 14 5 1",
+"      c None",
+".     c #000000",
+"+     c #FFFFFF",
+"@     c #DCDCDC",
+"#     c #C0C0C0",
+".......   ",
+".++++@@.  ",
+".++++#+@. ",
+".++++#++@.",
+".++++#....",
+".+++++###.",
+".++++++++.",
+".++++++++.",
+".++++++++.",
+".++++++++.",
+".++++++++.",
+".++++++++.",
+".++++++++.",
+".........."};
diff --git a/bs/fileopen.xpm b/bs/fileopen.xpm
new file mode 100644 (file)
index 0000000..48211e2
--- /dev/null
@@ -0,0 +1,22 @@
+/* XPM */
+static const char *fileopen[] = {
+"    16    13        5            1",
+". c #040404",
+"# c #808304",
+"a c #bfc2bf",
+"b c #f3f704",
+"c c #f3f7f3",
+"aaaaaaaaa...aaaa",
+"aaaaaaaa.aaa.a.a",
+"aaaaaaaaaaaaa..a",
+"a...aaaaaaaa...a",
+".bcb.......aaaaa",
+".cbcbcbcbc.aaaaa",
+".bcbcbcbcb.aaaaa",
+".cbcb...........",
+".bcb.#########.a",
+".cb.#########.aa",
+".b.#########.aaa",
+"..#########.aaaa",
+"...........aaaaa"
+};
diff --git a/bs/filesave.xpm b/bs/filesave.xpm
new file mode 100644 (file)
index 0000000..ed3ea96
--- /dev/null
@@ -0,0 +1,21 @@
+/* XPM */
+static const char *filesave[] = {
+"    14    14        3            1",
+". c #040404",
+"# c #808304",
+"a c #bfc2bf",
+"..............",
+".#.aaaaaaaa.a.",
+".#.aaaaaaaa...",
+".#.aaaaaaaa.#.",
+".#.aaaaaaaa.#.",
+".#.aaaaaaaa.#.",
+".#.aaaaaaaa.#.",
+".##........##.",
+".############.",
+".##.........#.",
+".##......aa.#.",
+".##......aa.#.",
+".##......aa.#.",
+"a............."
+};
diff --git a/bs/main.cpp b/bs/main.cpp
new file mode 100644 (file)
index 0000000..ea8ef3f
--- /dev/null
@@ -0,0 +1,44 @@
+/***************************************************************************
+                          main.cpp  -  description
+                             -------------------
+    begin     : mÃ¥n okt 23 17:11:28 CEST 2000
+    copyright : (C) 2000 by Michael Andreen
+    email     : whale@linux.nu
+    changes   :
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+#include <qapplication.h>
+#include <qfont.h>
+#include <qcdestyle.h>
+
+#include "../config.h"
+#include "bc.h"
+
+int main(int argc, char *argv[])
+{
+       QApplication a(argc, argv);
+       
+       //QStyle* s = new QCDEStyle();
+       
+       a.setFont(QFont("times", 12));
+       /* uncomment the following line, if you want a Windows 95 look*/
+       // a.setStyle(WindowsStyle);
+       //a.setStyle(s);
+       BcApp *bc=new BcApp();
+       a.setMainWidget(bc);
+
+       bc->setCaption("HÃ¥rvalens BattleCalc" VERSION);
+       //eonsl->showMaximized();
+       bc->resize(800,600);
+       bc->show();
+
+       return a.exec();
+}
diff --git a/bs/scanview.cpp b/bs/scanview.cpp
new file mode 100644 (file)
index 0000000..c42161e
--- /dev/null
@@ -0,0 +1,34 @@
+#include "scanview.h"
+
+/* 
+ *  Constructs a ScanView which is a child of 'parent', with the 
+ *  name 'name' and widget flags set to 'f' 
+ */
+ScanView::ScanView( QWidget* parent,  const char* name, WFlags fl )
+    : ScanViewBase( parent, name, fl )
+{
+}
+
+/*  
+ *  Destroys the object and frees any allocated resources
+ */
+ScanView::~ScanView()
+{
+    // no need to delete child widgets, Qt does it all for us
+}
+
+/* 
+ * protected slot
+ */
+void ScanView::init()
+{
+    qWarning( "ScanView::init() not yet implemented!" ); 
+}
+/* 
+ * protected slot
+ */
+void ScanView::destroy()
+{
+    qWarning( "ScanView::destroy() not yet implemented!" ); 
+}
+
diff --git a/bs/scanview.h b/bs/scanview.h
new file mode 100644 (file)
index 0000000..b65d4f9
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef SCANVIEW_H
+#define SCANVIEW_H
+#include "ui/scanviewbase.h"
+
+class ScanView : public ScanViewBase
+{ 
+    Q_OBJECT
+
+public:
+    ScanView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+    ~ScanView();
+
+protected slots:
+    void init();
+    void destroy();
+
+};
+
+#endif // SCANVIEW_H
diff --git a/bs/templates/cpp_template b/bs/templates/cpp_template
new file mode 100644 (file)
index 0000000..6afef5d
--- /dev/null
@@ -0,0 +1,16 @@
+/***************************************************************************
+                          |FILENAME|  -  description
+                             -------------------
+    begin                : |DATE|
+    copyright            : (C) |YEAR| by |AUTHOR|
+    email                : |EMAIL|
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
diff --git a/bs/templates/header_template b/bs/templates/header_template
new file mode 100644 (file)
index 0000000..6afef5d
--- /dev/null
@@ -0,0 +1,16 @@
+/***************************************************************************
+                          |FILENAME|  -  description
+                             -------------------
+    begin                : |DATE|
+    copyright            : (C) |YEAR| by |AUTHOR|
+    email                : |EMAIL|
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
diff --git a/bs/tickview.cpp b/bs/tickview.cpp
new file mode 100644 (file)
index 0000000..1682c51
--- /dev/null
@@ -0,0 +1,19 @@
+#include "tickview.h"
+
+/* 
+ *  Constructs a TickView which is a child of 'parent', with the 
+ *  name 'name' and widget flags set to 'f' 
+ */
+TickView::TickView( QWidget* parent,  const char* name, WFlags fl )
+    : CTickViewBase( parent, name, fl )
+{
+}
+
+/*  
+ *  Destroys the object and frees any allocated resources
+ */
+TickView::~TickView()
+{
+    // no need to delete child widgets, Qt does it all for us
+}
+
diff --git a/bs/tickview.h b/bs/tickview.h
new file mode 100644 (file)
index 0000000..19a72ad
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef TICKVIEW_H
+#define TICKVIEW_H
+#include "ui/tickviewbase.h"
+
+class TickView : public CTickViewBase
+{ 
+    Q_OBJECT
+
+public:
+    TickView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+    ~TickView();
+
+};
+
+#endif // TICKVIEW_H
diff --git a/bs/ui/battlesumbase.ui b/bs/ui/battlesumbase.ui
new file mode 100644 (file)
index 0000000..7dbeece
--- /dev/null
@@ -0,0 +1,289 @@
+<!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"/>
+<widget class="QWidget">
+    <property name="name">
+        <cstring>BcViewBase</cstring>
+    </property>
+    <property name="geometry">
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>699</width>
+            <height>423</height>
+        </rect>
+    </property>
+    <property name="maximumSize">
+        <size>
+            <width>32767</width>
+            <height>32767</height>
+        </size>
+    </property>
+    <property name="caption">
+        <string>Form2</string>
+    </property>
+    <grid>
+        <property name="name">
+            <cstring>unnamed</cstring>
+        </property>
+        <property name="margin">
+            <number>1</number>
+        </property>
+        <property name="spacing">
+            <number>1</number>
+        </property>
+        <widget class="QLayoutWidget" row="0" column="2">
+            <property name="name">
+                <cstring>Layout27</cstring>
+            </property>
+            <vbox>
+                <property name="name">
+                    <cstring>unnamed</cstring>
+                </property>
+                <property name="margin">
+                    <number>0</number>
+                </property>
+                <property name="spacing">
+                    <number>2</number>
+                </property>
+                <widget class="QLayoutWidget">
+                    <property name="name">
+                        <cstring>Layout25</cstring>
+                    </property>
+                    <vbox>
+                        <property name="name">
+                            <cstring>unnamed</cstring>
+                        </property>
+                        <property name="margin">
+                            <number>0</number>
+                        </property>
+                        <property name="spacing">
+                            <number>6</number>
+                        </property>
+                        <widget class="QTable">
+                            <column>
+                                <property name="text">
+                                    <string>Total</string>
+                                </property>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </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>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </property>
+                            </row>
+                            <row>
+                                <property name="text">
+                                    <string>Eonium</string>
+                                </property>
+                                <property name="pixmap">
+                                    <pixmap></pixmap>
+                                </property>
+                            </row>
+                            <property name="name">
+                                <cstring>fleetTable</cstring>
+                            </property>
+                            <property name="resizePolicy">
+                                <enum>Default</enum>
+                            </property>
+                            <property name="numRows">
+                                <number>20</number>
+                            </property>
+                            <property name="numCols">
+                                <number>4</number>
+                            </property>
+                            <property name="showGrid">
+                                <bool>true</bool>
+                            </property>
+                            <property name="readOnly">
+                                <bool>true</bool>
+                            </property>
+                        </widget>
+                    </vbox>
+                </widget>
+            </vbox>
+        </widget>
+    </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>
+</UI>
diff --git a/bs/ui/infoview.ui b/bs/ui/infoview.ui
new file mode 100644 (file)
index 0000000..e9e7ffa
--- /dev/null
@@ -0,0 +1,201 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>InfoView</class>
+<layoutdefaults spacing="0" margin="0"/>
+<widget class="QWidget">
+    <property name="name">
+        <cstring>InfoView</cstring>
+    </property>
+    <property name="geometry">
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>192</width>
+            <height>144</height>
+        </rect>
+    </property>
+    <property name="caption">
+        <string>Form2</string>
+    </property>
+    <grid>
+        <property name="name">
+            <cstring>unnamed</cstring>
+        </property>
+        <property name="margin">
+            <number>1</number>
+        </property>
+        <property name="spacing">
+            <number>1</number>
+        </property>
+        <widget class="QLayoutWidget" row="0" column="0">
+            <property name="name">
+                <cstring>Layout11</cstring>
+            </property>
+            <hbox>
+                <property name="name">
+                    <cstring>unnamed</cstring>
+                </property>
+                <property name="margin">
+                    <number>0</number>
+                </property>
+                <property name="spacing">
+                    <number>6</number>
+                </property>
+                <widget class="QLayoutWidget">
+                    <property name="name">
+                        <cstring>Layout10</cstring>
+                    </property>
+                    <vbox>
+                        <property name="name">
+                            <cstring>unnamed</cstring>
+                        </property>
+                        <property name="margin">
+                            <number>0</number>
+                        </property>
+                        <property name="spacing">
+                            <number>6</number>
+                        </property>
+                        <widget class="QLabel">
+                            <property name="name">
+                                <cstring>TextLabel3</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Name</string>
+                            </property>
+                        </widget>
+                        <widget class="QLabel">
+                            <property name="name">
+                                <cstring>TextLabel1</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Eta</string>
+                            </property>
+                        </widget>
+                        <widget class="QLabel">
+                            <property name="name">
+                                <cstring>TextLabel2</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Planet score</string>
+                            </property>
+                        </widget>
+                    </vbox>
+                </widget>
+                <widget class="QLayoutWidget">
+                    <property name="name">
+                        <cstring>Layout9</cstring>
+                    </property>
+                    <vbox>
+                        <property name="name">
+                            <cstring>unnamed</cstring>
+                        </property>
+                        <property name="margin">
+                            <number>0</number>
+                        </property>
+                        <property name="spacing">
+                            <number>6</number>
+                        </property>
+                        <widget class="QLineEdit">
+                            <property name="name">
+                                <cstring>LineEdit5</cstring>
+                            </property>
+                        </widget>
+                        <widget class="QLineEdit">
+                            <property name="name">
+                                <cstring>LineEdit3</cstring>
+                            </property>
+                        </widget>
+                        <widget class="QLineEdit">
+                            <property name="name">
+                                <cstring>LineEdit4</cstring>
+                            </property>
+                        </widget>
+                    </vbox>
+                </widget>
+            </hbox>
+        </widget>
+        <widget class="QLayoutWidget" row="1" column="0">
+            <property name="name">
+                <cstring>Layout13</cstring>
+            </property>
+            <hbox>
+                <property name="name">
+                    <cstring>unnamed</cstring>
+                </property>
+                <property name="margin">
+                    <number>0</number>
+                </property>
+                <property name="spacing">
+                    <number>0</number>
+                </property>
+                <widget class="QPushButton">
+                    <property name="name">
+                        <cstring>PushButton1</cstring>
+                    </property>
+                    <property name="text">
+                        <string>Apply</string>
+                    </property>
+                </widget>
+                <widget class="QPushButton">
+                    <property name="name">
+                        <cstring>PushButton2</cstring>
+                    </property>
+                    <property name="text">
+                        <string>Cancel</string>
+                    </property>
+                </widget>
+                <spacer>
+                    <property name="name">
+                        <cstring>Spacer1</cstring>
+                    </property>
+                    <property name="orientation">
+                        <enum>Horizontal</enum>
+                    </property>
+                    <property name="sizeType">
+                        <enum>Expanding</enum>
+                    </property>
+                    <property name="sizeHint">
+                        <size>
+                            <width>20</width>
+                            <height>20</height>
+                        </size>
+                    </property>
+                </spacer>
+                <widget class="QPushButton">
+                    <property name="name">
+                        <cstring>PushButton3</cstring>
+                    </property>
+                    <property name="enabled">
+                        <bool>false</bool>
+                    </property>
+                    <property name="text">
+                        <string>New</string>
+                    </property>
+                </widget>
+                <widget class="QPushButton">
+                    <property name="name">
+                        <cstring>PushButton4</cstring>
+                    </property>
+                    <property name="enabled">
+                        <bool>false</bool>
+                    </property>
+                    <property name="text">
+                        <string>Remove</string>
+                    </property>
+                </widget>
+            </hbox>
+        </widget>
+    </grid>
+</widget>
+<connections>
+    <slot access="protected" language="C++" returnType="void">init()</slot>
+    <slot access="protected" language="C++" returnType="void">destroy()</slot>
+</connections>
+<functions>
+    <function name="init()" >{
+
+}</function>
+    <function name="destroy()" >{
+
+}</function>
+</functions>
+</UI>
diff --git a/bs/ui/scanviewbase.ui b/bs/ui/scanviewbase.ui
new file mode 100644 (file)
index 0000000..66275ef
--- /dev/null
@@ -0,0 +1,175 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>ScanViewBase</class>
+<layoutdefaults spacing="0" margin="0"/>
+<widget class="QWidget">
+    <property name="name">
+        <cstring>ScanViewBase</cstring>
+    </property>
+    <property name="geometry">
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>613</width>
+            <height>236</height>
+        </rect>
+    </property>
+    <property name="caption">
+        <string>Form1</string>
+    </property>
+    <grid>
+        <property name="name">
+            <cstring>unnamed</cstring>
+        </property>
+        <property name="margin">
+            <number>1</number>
+        </property>
+        <property name="spacing">
+            <number>1</number>
+        </property>
+        <widget class="QGroupBox" row="0" column="0">
+            <property name="name">
+                <cstring>GroupBox1</cstring>
+            </property>
+            <property name="title">
+                <string>Scans - press add fleet to add it to the correct place</string>
+            </property>
+            <hbox>
+                <property name="name">
+                    <cstring>unnamed</cstring>
+                </property>
+                <property name="margin">
+                    <number>11</number>
+                </property>
+                <property name="spacing">
+                    <number>6</number>
+                </property>
+                <widget class="QTextEdit">
+                    <property name="name">
+                        <cstring>TextEdit1</cstring>
+                    </property>
+                </widget>
+                <widget class="QButtonGroup">
+                    <property name="name">
+                        <cstring>ButtonGroup1</cstring>
+                    </property>
+                    <property name="lineWidth">
+                        <number>1</number>
+                    </property>
+                    <property name="title">
+                        <string>Paste Type</string>
+                    </property>
+                    <vbox>
+                        <property name="name">
+                            <cstring>unnamed</cstring>
+                        </property>
+                        <property name="margin">
+                            <number>11</number>
+                        </property>
+                        <property name="spacing">
+                            <number>6</number>
+                        </property>
+                        <widget class="QRadioButton">
+                            <property name="name">
+                                <cstring>RadioButton1</cstring>
+                            </property>
+                            <property name="text">
+                                <string>overview/unit-/pdsscan</string>
+                            </property>
+                            <property name="checked">
+                                <bool>true</bool>
+                            </property>
+                        </widget>
+                        <widget class="QRadioButton">
+                            <property name="name">
+                                <cstring>RadioButton3</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Military scan</string>
+                            </property>
+                        </widget>
+                        <widget class="QRadioButton">
+                            <property name="name">
+                                <cstring>RadioButton3_2</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Galaxy status</string>
+                            </property>
+                        </widget>
+                    </vbox>
+                </widget>
+                <widget class="QButtonGroup">
+                    <property name="name">
+                        <cstring>FleetGroup</cstring>
+                    </property>
+                    <property name="enabled">
+                        <bool>false</bool>
+                    </property>
+                    <property name="title">
+                        <string>Fleets</string>
+                    </property>
+                    <vbox>
+                        <property name="name">
+                            <cstring>unnamed</cstring>
+                        </property>
+                        <property name="margin">
+                            <number>11</number>
+                        </property>
+                        <property name="spacing">
+                            <number>6</number>
+                        </property>
+                        <widget class="QCheckBox">
+                            <property name="name">
+                                <cstring>CheckBox4</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Base fleet</string>
+                            </property>
+                        </widget>
+                        <widget class="QCheckBox">
+                            <property name="name">
+                                <cstring>CheckBox1</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Fleet 1</string>
+                            </property>
+                        </widget>
+                        <widget class="QCheckBox">
+                            <property name="name">
+                                <cstring>CheckBox3</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Fleet 2</string>
+                            </property>
+                        </widget>
+                        <widget class="QCheckBox">
+                            <property name="name">
+                                <cstring>CheckBox2</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Fleet 3</string>
+                            </property>
+                        </widget>
+                    </vbox>
+                </widget>
+            </hbox>
+        </widget>
+    </grid>
+</widget>
+<connections>
+    <connection language="C++">
+        <sender>RadioButton3</sender>
+        <signal>toggled(bool)</signal>
+        <receiver>FleetGroup</receiver>
+        <slot>setEnabled(bool)</slot>
+    </connection>
+    <slot access="protected" language="C++" returnType="void">destroy()</slot>
+    <slot access="protected" language="C++" returnType="void">init()</slot>
+</connections>
+<functions>
+    <function name="destroy()" >{
+}</function>
+    <function name="init()" >{
+
+}</function>
+</functions>
+</UI>
diff --git a/bs/ui/tickviewbase.ui b/bs/ui/tickviewbase.ui
new file mode 100644 (file)
index 0000000..2ea6579
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>CTickViewBase</class>
+<include location="local" implDecl="in declaration">tickviewbase.ui.h</include>
+<pixmapinproject/>
+<layoutdefaults spacing="3" margin="6"/>
+<widget class="QWidget">
+    <property name="name">
+        <cstring>CTickViewBase</cstring>
+    </property>
+    <property name="geometry">
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>371</width>
+            <height>34</height>
+        </rect>
+    </property>
+    <property name="caption">
+        <string>Form1</string>
+    </property>
+    <grid>
+        <property name="name">
+            <cstring>unnamed</cstring>
+        </property>
+        <property name="margin">
+            <number>6</number>
+        </property>
+        <property name="spacing">
+            <number>3</number>
+        </property>
+        <widget class="QLayoutWidget" row="0" column="0">
+            <property name="name">
+                <cstring>Layout26</cstring>
+            </property>
+            <hbox>
+                <property name="name">
+                    <cstring>unnamed</cstring>
+                </property>
+                <property name="margin">
+                    <number>0</number>
+                </property>
+                <property name="spacing">
+                    <number>6</number>
+                </property>
+                <widget class="QLabel">
+                    <property name="name">
+                        <cstring>TextLabel45</cstring>
+                    </property>
+                    <property name="text">
+                        <string>Show result from tick:</string>
+                    </property>
+                </widget>
+                <widget class="QSpinBox">
+                    <property name="name">
+                        <cstring>minTickSpin</cstring>
+                    </property>
+                    <property name="maxValue">
+                        <number>1</number>
+                    </property>
+                    <property name="minValue">
+                        <number>1</number>
+                    </property>
+                </widget>
+                <widget class="QLabel">
+                    <property name="name">
+                        <cstring>TextLabel47</cstring>
+                    </property>
+                    <property name="text">
+                        <string>to:</string>
+                    </property>
+                </widget>
+                <widget class="QSpinBox">
+                    <property name="name">
+                        <cstring>maxTickSpin</cstring>
+                    </property>
+                    <property name="minValue">
+                        <number>1</number>
+                    </property>
+                </widget>
+            </hbox>
+        </widget>
+    </grid>
+</widget>
+<connections>
+    <connection language="C++">
+        <sender>minTickSpin</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>CTickViewBase</receiver>
+        <slot>slotMinTick(int)</slot>
+    </connection>
+    <connection language="C++">
+        <sender>maxTickSpin</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>CTickViewBase</receiver>
+        <slot>slotMaxTick(int)</slot>
+    </connection>
+    <slot access="public" language="C++" returnType="void">slotMaxTick( int i )</slot>
+    <slot access="public" language="C++" returnType="void">slotMinTick( int i )</slot>
+</connections>
+</UI>
diff --git a/bs/ui/tickviewbase.ui.h b/bs/ui/tickviewbase.ui.h
new file mode 100644 (file)
index 0000000..4b8f126
--- /dev/null
@@ -0,0 +1,21 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+** 
+** Add custom slot implementations here. Use a slot init() for
+** initialization code called during construction, and a slot destroy()
+** for cleanup code called during destruction.
+**
+** This file gets modified by Qt Designer whenever you add, rename or
+** remove custom slots. Implementation code does not get lost.
+*****************************************************************************/
+
+
+void CTickViewBase::slotMaxTick( int i )
+{
+    minTickSpin->setMaxValue(i);
+}
+
+void CTickViewBase::slotMinTick( int i )
+{
+    maxTickSpin->setMinValue(i);
+}
\ No newline at end of file
diff --git a/config.h b/config.h
new file mode 100644 (file)
index 0000000..9b7e9bb
--- /dev/null
+++ b/config.h
@@ -0,0 +1,37 @@
+/* config.h.  Generated automatically by configure.  */
+/* config.h.in.  Generated automatically from configure.in by autoheader.  */
+
+/* The number of bytes in a char *.  */
+#define SIZEOF_CHAR_P 4
+
+/* The number of bytes in a int.  */
+#define SIZEOF_INT 4
+
+/* The number of bytes in a long.  */
+#define SIZEOF_LONG 4
+
+/* Name of package */
+#define PACKAGE "bc"
+
+/* Version number of package */
+#define VERSION "0.1"
+
+/* C++ compiler supports template repository */
+#define HAVE_TEMPLATE_REPOSITORY 1
+
+/* Defines if your system has the crypt function */
+#define HAVE_CRYPT 1
+
+/* Define the type of the third argument for getsockname
+ */
+#define ksize_t socklen_t
+
+/* Define if you have libz */
+#define HAVE_LIBZ 1
+
+/* Define if you have libpng */
+#define HAVE_LIBPNG 1
+
+/* Define if you have libjpeg */
+#define HAVE_LIBJPEG 1
+
diff --git a/hbs.db b/hbs.db
new file mode 100644 (file)
index 0000000..b520b30
--- /dev/null
+++ b/hbs.db
@@ -0,0 +1,2 @@
+<!DOCTYPE DB><DB version="1.0">
+</DB>
diff --git a/hbs.kdevprj b/hbs.kdevprj
new file mode 100644 (file)
index 0000000..9ada9c4
--- /dev/null
@@ -0,0 +1,182 @@
+[AUTHORS]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[COPYING]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[ChangeLog]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[Config for BinMakefileAm]
+addcxxflags=
+bin_program=bc
+cxxflags=-O0 -g3 -Wall
+ldadd=
+ldflags=
+libtool_dir=
+path_to_bin_program=bc
+
+[General]
+AMChanged=false
+author=Michael Andreen
+dir_where_make_will_be_called=./
+email=whale@linux.nu
+kdevprj_version=1.3
+lfv_open_groups=
+make_options=-j1 -W/home/whale/c++/gfxtar/blaha
+makefiles=Makefile.am,bc/Makefile.am,bc/docs/Makefile.am,bc/docs/en/Makefile.am,po/Makefile.am
+modifyMakefiles=true
+project_name=Bc
+project_type=normal_empty
+short_info=
+sub_dir=bc/
+version=0.1
+version_control=CVS
+workspace=1
+
+[INSTALL]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[LFV Groups]
+GNU=AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,NEWS
+Headers=*.h,*.hh,*.hxx,*.hpp,*.H
+Others=*
+Sources=*.cpp,*.c,*.cc,*.C,*.cxx,*.ec,*.ecpp,*.lxx,*.l++,*.ll,*.l
+User Interface=*.kdevdlg,*.ui,*.rc
+groups=Headers,Sources,User Interface,GNU,Others
+
+[Makefile.am]
+files=bc.kdevprj,AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,bc.lsm
+sub_dirs=bc
+type=normal
+
+[README]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[TODO]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[bc.kdevprj]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[bc.lsm]
+dist=true
+install=false
+install_location=
+type=DATA
+
+[bc/Makefile.am]
+files=bc/bc.cpp,bc/bc.h,bc/bcdoc.cpp,bc/bcdoc.h,bc/bcview.cpp,bc/bcview.h,bc/main.cpp,bc/bcmainview.h,bc/bcmainview.cpp,bc/scanview.cpp,bc/scanview.h,bc/tickview.cpp,bc/tickview.h
+sub_dirs=
+type=prog_main
+
+[bc/bc.cpp]
+dist=true
+install=false
+install_location=
+type=SOURCE
+
+[bc/bc.h]
+dist=true
+install=false
+install_location=
+type=HEADER
+
+[bc/bcdoc.cpp]
+dist=true
+install=false
+install_location=
+type=SOURCE
+
+[bc/bcdoc.h]
+dist=true
+install=false
+install_location=
+type=HEADER
+
+[bc/bcmainview.cpp]
+dist=true
+install=false
+install_location=
+type=SOURCE
+
+[bc/bcmainview.h]
+dist=true
+install=false
+install_location=
+type=HEADER
+
+[bc/bcview.cpp]
+dist=true
+install=false
+install_location=
+type=SOURCE
+
+[bc/bcview.h]
+dist=true
+install=false
+install_location=
+type=HEADER
+
+[bc/docs/Makefile.am]
+sub_dirs=
+type=normal
+
+[bc/docs/en/Makefile.am]
+sub_dirs=
+type=normal
+
+[bc/main.cpp]
+dist=true
+install=false
+install_location=
+type=SOURCE
+
+[bc/scanview.cpp]
+dist=true
+install=false
+install_location=
+type=SOURCE
+
+[bc/scanview.h]
+dist=true
+install=false
+install_location=
+type=HEADER
+
+[bc/tickview.cpp]
+dist=true
+install=false
+install_location=
+type=SOURCE
+
+[bc/tickview.h]
+dist=true
+install=false
+install_location=
+type=HEADER
+
+[po/Makefile.am]
+sub_dirs=
+type=po
diff --git a/hbs.kdevses b/hbs.kdevses
new file mode 100644 (file)
index 0000000..e0922ee
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE KDevPrjSession ><KDevPrjSession>
+ <Mainframe MaximizeMode="0" />
+ <DocsAndViews NumberOfDocuments="1" >
+  <Doc0 Type="CDocBrowser" NumberOfViews="1" FileName="file:/home/src/qt-3/doc/html/index.html" >
+   <View Top="0" Width="725" Attach="0" Height="390" Left="0" Focus="0" Type="KHTMLView" MinMaxMode="0" />
+  </Doc0>
+ </DocsAndViews>
+</KDevPrjSession>
diff --git a/hbs.lsm b/hbs.lsm
new file mode 100644 (file)
index 0000000..e694606
--- /dev/null
+++ b/hbs.lsm
@@ -0,0 +1,14 @@
+Begin3
+Title:          Bc 
+Version:        0.1
+Entered-date:   
+Description:    
+Keywords:        
+Author:         Michael Andreen <whale@linux.nu> 
+Maintained-by:  Michael Andreen <whale@linux.nu> 
+Primary-site:                  
+Home-page:      http://hairwhale.cjb.net
+Original-site:  
+Platforms:       Linux and other Unices
+Copying-policy: GNU Public License
+End
diff --git a/hbs.pro b/hbs.pro
new file mode 100644 (file)
index 0000000..20921e2
--- /dev/null
+++ b/hbs.pro
@@ -0,0 +1,24 @@
+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
+
+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
+LANGUAGE       = C++
+{SOURCES+=images.cpp}
diff --git a/images.cpp b/images.cpp
new file mode 100644 (file)
index 0000000..599550a
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef DESIGNER_IMAGES_H
+#define DESIGNER_IMAGES_H
+#include <qimage.h>
+#include <qdict.h>
+#include <qmime.h>
+#include <qdragobject.h>
+#include <qpixmap.h>
+
+#endif