Commits

Anonymous committed 2fe57f4

The final version of ksokoban for KDE4

Comments (0)

Files changed (28)

Bookmark.cpp~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <awl@hem.passagen.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#include <stdio.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <assert.h>
-
-#include <QFile>
-#include <KApplication>
-#include <KGlobal>
-#include <KStandardDirs>
-
-#include "Bookmark.h"
-#include "History.h"
-#include "LevelMap.h"
-
-void
-Bookmark::fileName(QString &p) {
-  p = KGlobal::dirs()->saveLocation("appdata");
-
-  QString n;
-  n.setNum(number_);
-  p += "/bookmark" + n;
-}
-
-Bookmark::Bookmark(int _num) :
-  number_(_num), collection_(-1), level_(-1), moves_(0), data_("") {
-
-  QString p;
-  fileName(p);
-
-  FILE *file = fopen(p.toLatin1(), "r");
-  if (file == NULL) return;
-
-  char buf[4096];
-  buf[0] = '\0';
-  fgets (buf, 4096, file);
-  if (sscanf(buf, "%d %d %d", &collection_, &level_, &moves_) != 3) {
-    collection_ = level_ = -1;
-    data_ = "";
-    fclose(file);
-    return;
-  }
-
-  data_ = "";
-  int len;
-  while (!feof(file)) {
-    len = fread(buf, 1, 4095, file);
-    if (ferror(file)) break;
-    buf[len] = '\0';
-    data_ += buf;
-  }
-  fclose(file);        
-
-  data_ = data_.trimmed();
-}
-
-
-
-void
-Bookmark::set(int _collection, int _level, int _moves, History *_h) {
-  assert(_collection >= 0);
-  if (_collection < 0) return;
-
-  collection_ = _collection;
-  level_ = _level;
-  moves_ = _moves;
-
-  data_ = "";
-  _h->save(data_);
-  
-  QString p;
-  fileName(p);
-  FILE *file = fopen(QFile::encodeName(p), "w");
-  if (file == NULL) return;
-  fprintf(file, "%d %d %d\n", collection_, level_, moves_);
-  fprintf(file, "%s\n", data_.toLatin1());
-  fclose(file);
-}
-
-bool
-Bookmark::goTo(LevelMap *_map, History *_h) {
-  return _h->load(_map, data_.toLatin1().constData()) != 0;
-}
-
-

Bookmark.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <awl@hem.passagen.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef BOOKMARK_H
-#define BOOKMARK_H
-
-class History;
-class LevelMap;
-
-#include <QString>
-
-class Bookmark {
-public:
-  Bookmark(int _num);
-
-  int collection() const { return collection_; }
-  int level() const { return level_; }
-  int moves() const { return moves_; }
-  //int pushes() { return pushes_; }
-
-  void set(int _collection, int _level, int _moves, History *_h);
-  bool goTo(LevelMap *_map, History *_h);
-
-private:
-  void fileName(QString &p);
-
-  int     number_;
-  int     collection_;
-  int     level_;
-  int     moves_;
-  //int     pushes_;
-  QString data_;
-};
-
-#endif  /* BOOKMARK_H */
+project (ksokoban)
+ 
+find_package(KDE4 REQUIRED)
+include_directories(${KDE4_INCLUDES})
+ 
+set(ksokoban_SRCS 
+	Bookmark.cpp
+	ImageData.cpp
+	LevelMap.cpp
+    Map.cpp
+	Move.cpp
+	PlayField.cpp
+	History.cpp
+	InternalCollections.cpp
+	main.cpp
+	MapDelta.cpp
+    MoveSequence.cpp
+	StaticImage.cpp
+	HtmlPrinter.cpp
+	LevelCollection.cpp
+	MainWindow.cpp
+	ModalLabel.cpp
+	PathFinder.cpp
+)
+ 
+kde4_add_executable(ksokoban ${ksokoban_SRCS})
+target_link_libraries(ksokoban ${KDE4_KDEUI_LIBS} ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS})

History.cpp~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <awl@hem.passagen.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#include <QList>
-
-#include "History.h"
-#include "Move.h"
-#include "MoveSequence.h"
-#include "LevelMap.h"
-
-History::History() {
-  //past_.setAutoDelete(true);
-  //future_.setAutoDelete(true);
-}
-
-
-void
-History::add(Move *_m) {
-  future_.clear();
-  past_.append(_m);
-}
-
-void
-History::clear() {
-  past_.clear();
-  future_.clear();
-}
-
-void
-History::save(QString &_str) {
-  QList<Move*>::Iterator past_iterator = past_.begin();
-  Move *m = (*past_iterator);
-
-  while (past_iterator != past_.end()) {
-    m->save(_str);
-    ++past_iterator;
-    m = (*past_iterator);
-  }
-  _str += '-';
-
-  QList<Move*>::Iterator future_iterator = future_.begin();  
-  m = (*future_iterator);
-  while (future_iterator != future_.end()) {
-    m->save(_str);
-    ++future_iterator;
-    m = (*future_iterator);
-  }
-}
-
-const char *
-History::load(LevelMap *map, const char *_str) {
-  Move *m;
-  int x = map->xpos();
-  int y = map->ypos();
-
-  clear();
-  while (*_str != '\0' && *_str != '-') {
-    m = new Move(x, y);
-    _str = m->load(_str);
-    if (_str == 0) return 0;
-    x = m->finalX();
-    y = m->finalY();
-    past_.append(m);
-    if (!m->redo(map)) {
-      //printf("redo failed: %s\n", _str);
-      //abort();
-      return 0;
-    }
-  }
-  if (*_str != '-') return 0;
-
-  _str++;
-  while (*_str != '\0') {
-    m = new Move(x, y);
-    _str = m->load(_str);
-    if (_str == 0) return 0;
-    x = m->finalX();
-    y = m->finalY();
-    future_.append(m);
-  }
-
-  return _str;
-}
-
-bool
-History::redo(LevelMap *map) {
-  if (future_.isEmpty()) return false;
-
-  Move *m=future_.takeAt(0);
-  past_.append(m);
-  return m->redo(map);
-}
-
-MoveSequence *
-History::deferRedo(LevelMap *map) {
-  if (future_.isEmpty()) return 0;
-
-  Move *m=future_.takeAt(0);
-  past_.append(m);
-  return new MoveSequence(m, map);
-}
-
-bool
-History::undo(LevelMap *map) {
-  if (past_.isEmpty()) return false;
-
-  Move *m = past_.takeAt(past_.count ()-1);
-  future_.insert(0, m);
-  return m->undo(map);
-}
-
-MoveSequence *
-History::deferUndo(LevelMap *map) {
-  if (past_.isEmpty()) return 0;
-
-  Move *m = past_.takeAt(past_.count()-1);
-  future_.insert(0, m);
-  return new MoveSequence(m, map, true);
-}

History.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <awl@hem.passagen.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef HISTORY_H
-#define HISTORY_H
-
-#include <QList>
-#include <QString>
-
-#include "Move.h"
-class MoveSequence;
-
-/**
- * Maintains movement history
- *
- * @short   Maintains game movement history
- * @author  Anders Widell <d95-awi@nada.kth.se>
- * @version 0.1
- * @see     PlayField
- */
-
-class History {
-private:
-  QList<Move*> past_;
-  QList<Move*> future_;
-
-protected:
-
-public:
-  History();
-  /**
-   * Add a move to the history. Deletes all currently undone moves.
-   */
-  void add(Move *_m);
-  /**
-   * Clear the history and delete all Move objects stored in it.
-   */
-  void clear();
-
-  void save(QString &_str);
-  const char *load(LevelMap *map, const char *_str);
-  bool redo(LevelMap *map);
-  MoveSequence *deferRedo(LevelMap *map);
-  bool undo(LevelMap *map);
-  MoveSequence *deferUndo(LevelMap *map);
-};
-
-#endif  /* HISTORY_H */

ImageData.cpp~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <awl@hem.passagen.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#include <assert.h>
-#include <Qpainter>
-#include <QPixmap>
-#include <QImage>
-#include <QColor>
-
-#include "ImageData.h"
-
-ImageData::ImageData() : indexSize_(0), size_(0), halfSize_(0) {
-  random.setSeed(0);
-}
-
-ImageData::~ImageData() {
-}
-
-void
-ImageData::expandIndex(int size) {
-  size++;
-  assert(size < 2500);
-
-  upperLargeIndex_.resize(size);
-  lowerLargeIndex_.resize(size);
-  leftSmallIndex_.resize(size);
-  rightSmallIndex_.resize(size);
-
-  for (int i=indexSize_; i<size; i++) {
-    upperLargeIndex_[i] = random.getLong(LARGE_STONES);
-    lowerLargeIndex_[i] = random.getLong(LARGE_STONES);
-    leftSmallIndex_[i] = random.getLong(SMALL_STONES);
-    rightSmallIndex_[i] = random.getLong(SMALL_STONES);
-  }
-
-  indexSize_ = size;
-}
-
-const QPixmap &
-ImageData::upperLarge(int index) {
-  assert(index >= 0);
-  if (indexSize_ <= index) expandIndex(index);
-  return largeStone_xpm_[(unsigned char)upperLargeIndex_[index]];
-}
-
-const QPixmap &
-ImageData::lowerLarge(int index) {
-  assert(index >= 0);
-  if (indexSize_ <= index) expandIndex(index);
-  return largeStone_xpm_[(unsigned char)lowerLargeIndex_[index]];
-}
-
-const QPixmap &
-ImageData::leftSmall(int index) {
-  assert(index >= 0);
-  if (indexSize_ <= index) expandIndex(index);
-  return smallStone_xpm_[(unsigned char)leftSmallIndex_[index]];
-}
-
-const QPixmap &
-ImageData::rightSmall(int index) {
-  assert(index >= 0);
-  if (indexSize_ <= index) expandIndex(index);
-  return smallStone_xpm_[(unsigned char)rightSmallIndex_[index]];
-}
-
-int
-ImageData::resize(int size) {
-  assert(size > 0);
-  size &= ~1u;
-  if (size == size_) return size;
-
-  size_ = size;
-  halfSize_ = size/2;
-
-  for (int i=0; i<SMALL_STONES; i++) {
-    image2pixmap(images_[i].smoothScale(halfSize_, halfSize_), smallStone_xpm_[i]);
-//     smallStone_xpm_[i].convertFromImage(images_[i].smoothScale(halfSize_, halfSize_), QPixmap::ColorOnly|QPixmap::DiffuseDither|QPixmap::DiffuseAlphaDither|QPixmap::AvoidDither);
-  }
-
-  for (int i=0; i<LARGE_STONES; i++) {
-    image2pixmap(images_[SMALL_STONES+i].smoothScale(size_, halfSize_), largeStone_xpm_[i]);
-//     largeStone_xpm_[i].convertFromImage(images_[SMALL_STONES+i].smoothScale(size_, halfSize_) , QPixmap::ColorOnly|QPixmap::DiffuseDither|QPixmap::DiffuseAlphaDither|QPixmap::AvoidDither);
-  }
-
-  objectImg_ = images_[SMALL_STONES+LARGE_STONES].smoothScale(size_, size_);
-
-  // Use copy() because if the size is not changed, smoothScale is not
-  // really a copy
-  // Use {[Geometry] height=753 width=781} to test
-
-  if (objectImg_.width() == size_) objectImg_ = objectImg_.copy();
-
-  image2pixmap(objectImg_, otherPixmaps_[0], false);
-  brighten(objectImg_);
-  image2pixmap(objectImg_, brightObject_, false);
-
-  QImage img = images_[SMALL_STONES+LARGE_STONES+1].smoothScale(size_, size_);
-  if (img.width() == size_) img = img.copy();
-
-  image2pixmap(img, otherPixmaps_[1], false);
-  brighten(img);
-  image2pixmap(img, brightTreasure_, false);
-
-  for (int i=2; i<OTHER_IMAGES; i++) {
-    image2pixmap(images_[SMALL_STONES+LARGE_STONES+i].smoothScale(size_, size_), otherPixmaps_[i]);
-//     otherPixmaps_[i].convertFromImage(images_[SMALL_STONES+LARGE_STONES+i].smoothScale(size_, size_), QPixmap::ColorOnly|QPixmap::OrderedDither|QPixmap::OrderedAlphaDither|QPixmap::AvoidDither);
-  }
-
-  return size_;
-}
-
-// Don't use DiffuseDither for the objects on the "floor" since
-// it gives spurious dots on the floor around them
-
-void
-ImageData::image2pixmap(QImage img, QPixmap& xpm, bool diffuse) {
-  xpm.convertFromImage(img,
-		       (diffuse ?
-			(QPixmap::DiffuseDither|QPixmap::DiffuseAlphaDither) :
-			(QPixmap::OrderedDither|QPixmap::OrderedAlphaDither))|
-		       QPixmap::ColorOnly|QPixmap::AvoidDither);
-}
-
-void
-ImageData::brighten(QImage& img) {
-  assert(img.depth() == 32);
-
-  for (int y=0; y<img.height(); y++) {
-    for (int x=0; x<img.width(); x++) {
-      QRgb rgb = img.pixel(x, y);
-      int r = qRed(rgb);
-      int g = qGreen(rgb);
-      int b = qBlue(rgb);
-
-      if (r > g && r > b) {
-       // only modify redish pixels
-
-       QColor col(r, g, b);
-       QColor lcol = col.light(130);
-
-       img.setPixel(x, y, lcol.rgb());
-      }
-    }
-  }
-}
-
-void
-ImageData::wall(QPainter &p, int x, int y, int index, bool left, bool right) {
-  if (left) p.drawPixmap(x, y, upperLarge(index-1), halfSize_);
-  else p.drawPixmap(x, y, leftSmall(index));
-
-  if (right) p.drawPixmap(x+halfSize_, y, upperLarge(index), 0, 0, halfSize_);
-  else p.drawPixmap(x+halfSize_, y, rightSmall(index));
-
-  p.drawPixmap(x, y+halfSize_, lowerLarge(index));
-}
-
-void
-ImageData::floor(QPainter &p, int x, int y) {
-  p.eraseRect(x, y, size_, size_);
-}
-
-void
-ImageData::goal(QPainter &p, int x, int y) {
-  p.drawPixmap(x, y, otherPixmaps_[2]);
-}
-
-void
-ImageData::man(QPainter &p, int x, int y) {
-  p.drawPixmap(x, y, otherPixmaps_[3]);
-}
-
-void
-ImageData::object(QPainter &p, int x, int y) {
-  p.drawPixmap(x, y, otherPixmaps_[0]);
-}
-
-void
-ImageData::saveman(QPainter &p, int x, int y) {
-  p.drawPixmap(x, y, otherPixmaps_[4]);
-}
-
-void
-ImageData::treasure(QPainter &p, int x, int y) {
-  p.drawPixmap(x, y, otherPixmaps_[1]);
-}
-
-void
-ImageData::brightObject(QPainter &p, int x, int y) {
-  p.drawPixmap(x, y, brightObject_);
-}
-
-void
-ImageData::brightTreasure(QPainter &p, int x, int y) {
-  p.drawPixmap(x, y, brightTreasure_);
-}

ImageData.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <d95-awi@nada.kth.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef IMAGEDATA_H
-#define IMAGEDATA_H
-
-#include <QImage>
-#include <QPixmap>
-
-#include <KRrandomSequence>
-
-class QPainter;
-
-#define SMALL_STONES 4
-#define LARGE_STONES 6
-#define OTHER_IMAGES 5
-#define NO_OF_IMAGES (SMALL_STONES + LARGE_STONES + OTHER_IMAGES)
-
-class
-ImageData {
-public:
-  virtual ~ImageData();
-
-  int resize(int size);
-  int size() { return size_; }
-
-  void wall(QPainter &p, int x, int y, int index, bool left, bool right);
-  void floor(QPainter &p, int x, int y);
-  void goal(QPainter &p, int x, int y);
-  void man(QPainter &p, int x, int y);
-  void object(QPainter &p, int x, int y);
-  void saveman(QPainter &p, int x, int y);
-  void treasure(QPainter &p, int x, int y);
-  void brightObject(QPainter &p, int x, int y);
-  void brightTreasure(QPainter &p, int x, int y);
-
-  const QPixmap &background() { return background_; }
-  const QImage& objectImg() const { return objectImg_; }
-
-protected:
-  ImageData();
-
-  void expandIndex(int size);
-  void image2pixmap(QImage img, QPixmap& xpm, bool diffuse=true);
-  void brighten(QImage& img);
-
-  const QPixmap &upperLarge(int index);
-  const QPixmap &lowerLarge(int index);
-  const QPixmap &leftSmall(int index);
-  const QPixmap &rightSmall(int index);
-
-  QImage images_[NO_OF_IMAGES];
-
-  QPixmap smallStone_xpm_[SMALL_STONES];
-  QPixmap largeStone_xpm_[LARGE_STONES];
-  QPixmap otherPixmaps_[OTHER_IMAGES];
-  QPixmap background_, brightObject_, brightTreasure_;
-  QImage  objectImg_;
-  
-  int indexSize_;
-  QByteArray upperLargeIndex_;
-  QByteArray lowerLargeIndex_;
-  QByteArray leftSmallIndex_;
-  QByteArray rightSmallIndex_;
-
-  int size_, halfSize_;
-  KRandomSequence random;
-};
-
-#endif  /* IMAGEDATA_H */

InternalCollections.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998-2000  Anders Widell  <awl@hem.passagen.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef INTERNALCOLLECTIONS_H
-#define INTERNALCOLLECTIONS_H
-
-#include <assert.h>
-#include <QString>
-#include <QVector>
-
-#include "LevelCollection.h"
-
-class InternalCollections {
-public:
-  InternalCollections();
-  ~InternalCollections();
-
-  static int toInternalId(int _id) {
-    if (_id < 10 || _id > 14) return 1000;
-    return _id - 10;
-  }
-
-  int collections();
-  LevelCollection *operator[](int n);
-
-private:
-  void add(LevelCollection* c);
-
-  static int configCollection2Real(int collection);
-  static int realCollection2Config(int collection);
-  static QString collectionName(int _level);
-
-  QValueVector<LevelCollection> collections_;
-  char *data_;
-
-};
-
-#endif  /* INTERNALCOLLECTIONS_H */

LevelCollection.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998,1999  Anders Widell  <d95-awi@nada.kth.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef LEVELCOLLECTION_H
-#define LEVELCOLLECTION_H
-
-#include <QString>
-#include <QByteArray>
-#include <QVector>
-
-class Map;
-
-class LevelCollection {
-public:
-  LevelCollection(const char *_def, int _len, const QString &_name, int _id=-1);
-  LevelCollection(const QString &_path, const QString &_name, int _id=-1);
-  ~LevelCollection();
-
-  const QString &name() const { return name_; }
-  int id() const { return id_; }
-  int level() const { return level_; }
-  void level(int _level);
-  void levelCompleted();
-  int completedLevels() const { return completedLevels_; }
-  int noOfLevels() const { return noOfLevels_; }
-  bool loadLevel(Map *_map);
-
-protected:
-  void indexTextCollection();
-  void loadPrefs();
-
-
-private:
-  void addLevel(const char* _level);
-  void addData(const char* _data, unsigned _len);
-  void addSeparator();
-
-  QValueVector<const char> index_;
-  QByteArray    data_;
-  //int    dataLen_;
-
-  int      level_;
-  int      completedLevels_;
-  int      noOfLevels_;
-  QString  name_;
-  QString  path_;
-  int      id_;
-};
-
-#endif  /* LEVELCOLLECTION_H */

LevelMap.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <d95-awi@nada.kth.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef LEVELMAP_H
-#define LEVELMAP_H
-
-#include <assert.h>
-#include <qstring.h>
-
-#include "Map.h"
-class LevelCollection;
-
-//#define EXTERNAL_LEVEL 100
-
-class LevelMap : public Map {
-public:
-  LevelMap();
-  ~LevelMap();
-
-  LevelCollection *collection() const { return collection_; }
-  const QString &collectionName();
-  void changeCollection(LevelCollection *_collection);
-  int totalMoves() const { return totalMoves_; }
-  int totalPushes() const { return totalPushes_; }
-  void level(int _level);
-  int level() const;
-  int noOfLevels() const;
-  int completedLevels() const;
-  bool goodLevel() const { return goodLevel_; }
-
-  bool step(int _x, int _y);
-  bool push(int _x, int _y);
-  bool unstep(int _x, int _y);
-  bool unpush(int _x, int _y);
-
-  //void random();
-
-protected:
-  LevelCollection *collection_;
-
-
-private:
-  int    totalMoves_;
-  int    totalPushes_;
-  bool   goodLevel_;
-
-  static int distance(int x1, int y1, int x2, int y2);
-};
-
-#endif  /* LEVELMAP_H */

MainWindow.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <d95-awi@nada.kth.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include <KMainWindow>
-#include <KUrl>
-#include "Bookmark.h"
-#include "InternalCollections.h"
-
-class KMenuBar;
-class PlayField;
-class QPopupMenu;
-class QFocusEvent;
-class QDragEnterEvent;
-class QDropEvent;
-class LevelCollection;
-
-class MainWindow : public KMainWindow {
-  Q_OBJECT
-public:
-  MainWindow();
-  ~MainWindow();
-
-  void openURL(KURL _url);
-
-public slots:
-  void changeCollection(int id);
-  void updateAnimMenu(int id);
-  void setBookmark(int id);
-  void goToBookmark(int id);
-
-  void loadLevels();
-
-protected:
-  void focusInEvent(QFocusEvent*);
-  void createCollectionMenu();
-  virtual void dragEnterEvent(QDragEnterEvent*);
-  virtual void dropEvent(QDropEvent*);
-
-private:
-  InternalCollections internalCollections_;
-  LevelCollection *externalCollection_;
-  KMenuBar        *menu_;
-  PlayField       *playField_;
-  Bookmark        *bookmarks_[10];
-  int              currentCollection_;
-
-  QPopupMenu      *game_;
-  QPopupMenu      *collection_;
-  QPopupMenu      *animation_;
-  QPopupMenu      *bookmarkMenu_;
-  QPopupMenu      *setBM_;
-  QPopupMenu      *goToBM_;
-  QPopupMenu      *help_;
-  int              checkedCollection_;
-  int              checkedAnim_;
-
-  void updateBookmark(int num);
-
-};
-
-#endif  /* MAINWINDOW_H */

MainWindow.moc

-/****************************************************************************
-** Meta object code from reading C++ file 'MainWindow.h'
-**
-** Created: Tue Jul 17 17:56:43 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "MainWindow.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'MainWindow.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.2. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_MainWindow[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       5,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
- // slots: signature, parameters, type, tag, flags
-      15,   12,   11,   11, 0x0a,
-      37,   12,   11,   11, 0x0a,
-      57,   12,   11,   11, 0x0a,
-      74,   12,   11,   11, 0x0a,
-      92,   11,   11,   11, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_MainWindow[] = {
-    "MainWindow\0\0id\0changeCollection(int)\0"
-    "updateAnimMenu(int)\0setBookmark(int)\0"
-    "goToBookmark(int)\0loadLevels()\0"
-};
-
-void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        MainWindow *_t = static_cast<MainWindow *>(_o);
-        switch (_id) {
-        case 0: _t->changeCollection((*reinterpret_cast< int(*)>(_a[1]))); break;
-        case 1: _t->updateAnimMenu((*reinterpret_cast< int(*)>(_a[1]))); break;
-        case 2: _t->setBookmark((*reinterpret_cast< int(*)>(_a[1]))); break;
-        case 3: _t->goToBookmark((*reinterpret_cast< int(*)>(_a[1]))); break;
-        case 4: _t->loadLevels(); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData MainWindow::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject MainWindow::staticMetaObject = {
-    { &KMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow,
-      qt_meta_data_MainWindow, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &MainWindow::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *MainWindow::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *MainWindow::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_MainWindow))
-        return static_cast<void*>(const_cast< MainWindow*>(this));
-    return KMainWindow::qt_metacast(_clname);
-}
-
-int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = KMainWindow::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 5)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 5;
-    }
-    return _id;
-}
-QT_END_MOC_NAMESPACE

ModalLabel.moc

-/****************************************************************************
-** Meta object code from reading C++ file 'ModalLabel.h'
-**
-** Created: Sat Jul 14 14:19:27 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "ModalLabel.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'ModalLabel.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.2. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_ModalLabel[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       0,    0, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_ModalLabel[] = {
-    "ModalLabel\0"
-};
-
-void ModalLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    Q_UNUSED(_o);
-    Q_UNUSED(_id);
-    Q_UNUSED(_c);
-    Q_UNUSED(_a);
-}
-
-const QMetaObjectExtraData ModalLabel::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject ModalLabel::staticMetaObject = {
-    { &QLabel::staticMetaObject, qt_meta_stringdata_ModalLabel,
-      qt_meta_data_ModalLabel, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &ModalLabel::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *ModalLabel::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *ModalLabel::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_ModalLabel))
-        return static_cast<void*>(const_cast< ModalLabel*>(this));
-    return QLabel::qt_metacast(_clname);
-}
-
-int ModalLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QLabel::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    return _id;
-}
-QT_END_MOC_NAMESPACE

Move.h~

-/*
- *  ksokoban - a Sokoban game for KDE
- *  Copyright (C) 1998  Anders Widell  <d95-awi@nada.kth.se>
- *
- *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef MOVE_H
-#define MOVE_H
-
-#include <assert.h>
-#include <qstring.h>
-
-#include "Map.h"
-class LevelMap;
-
-/**
- * Holds information about a move
- *
- * The move can consist of several atomic steps and pushes. An atomic
- * step/push is a step/push along a straight line. The reason why these are
- * grouped together in a Move object is that they belong to the same logical
- * move in the player's point of view. An undo/redo will undo/redo all the
- * atomic moves in one step.
- *
- * @short   Maintains game movement move
- * @author  Anders Widell <d95-awi@nada.kth.se>
- * @version 0.1
- * @see     History
- */
-
-class Move {
-  friend class MoveSequence;
-private:
-  unsigned short *moves_;
-  int moveIndex_;
-  bool finished_;
-
-#ifndef NDEBUG
-  int lastX_, lastY_;
-#endif
-
-
-public:
-  Move (int _startX, int _startY);
-  ~Move ();
-
-  /**
-   * Add an atomic move.
-   * NOTE: either (x != (previous x)) or (y != (previous y))
-   * must be true (but not both).
-   *
-   * @see LevelMap#move
-   *
-   * @param x  x position of destination
-   * @param y  y position of destination
-   */
-  void step (int _x, int _y) {
-#ifndef NDEBUG
-    assert (!finished_);
-    assert (_x>=0 && _x<=MAX_X && _y>=0 && _y<=MAX_Y);
-    assert (moveIndex_ < 400);
-    assert ((_x!=lastX_ && _y==lastY_) || (_x==lastX_ && _y!=lastY_));
-    lastX_ = _x;
-    lastY_ = _y;
-#endif
-
-    moves_[moveIndex_++] = _x | (_y<<8);
-  }
-
-  /**
-   * Same as move above, but used when an object is pushed.
-   *
-   * @see LevelMap#push
-   */
-  void push (int _x, int _y) {
-#ifndef NDEBUG
-    assert (!finished_);
-    assert (_x>=0 && _x<=MAX_X && _y>=0 && _y<=MAX_Y);
-    assert (moveIndex_ < 400);
-    assert ((_x!=lastX_ && _y==lastY_) || (_x==lastX_ && _y!=lastY_));
-    lastX_ = _x;
-    lastY_ = _y;
-#endif
-
-    moves_[moveIndex_++] = _x | (_y<<8) | 0x80;
-  }
-
-  void finish ();
-
-  int startX () const { return moves_[0]&0x7f; }
-  int startY () const { return (moves_[0]>>8)&0x7f; }
-  int finalX () const { return moves_[moveIndex_-1]&0x7f; }
-  int finalY () const { return (moves_[moveIndex_-1]>>8)&0x7f; }
-
-
-  void save (QString &_str);
-  const char *load (const char *_str);
-  bool redo (LevelMap *map);
-  bool undo (LevelMap *map);
-};
-
-#endif  /* MOVE_H */

PlayField.moc

-/****************************************************************************
-** Meta object code from reading C++ file 'PlayField.h'
-**
-** Created: Wed Jul 18 12:57:43 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "PlayField.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'PlayField.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.2. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_PlayField[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       7,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
- // slots: signature, parameters, type, tag, flags
-      11,   10,   10,   10, 0x0a,
-      23,   10,   10,   10, 0x0a,
-      39,   10,   10,   10, 0x0a,
-      46,   10,   10,   10, 0x0a,
-      53,   10,   10,   10, 0x0a,
-      79,   68,   10,   10, 0x0a,
-     118,  114,   10,   10, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_PlayField[] = {
-    "PlayField\0\0nextLevel()\0previousLevel()\0"
-    "undo()\0redo()\0restartLevel()\0collection\0"
-    "changeCollection(LevelCollection*)\0"
-    "num\0changeAnim(int)\0"
-};
-
-void PlayField::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        PlayField *_t = static_cast<PlayField *>(_o);
-        switch (_id) {
-        case 0: _t->nextLevel(); break;
-        case 1: _t->previousLevel(); break;
-        case 2: _t->undo(); break;
-        case 3: _t->redo(); break;
-        case 4: _t->restartLevel(); break;
-        case 5: _t->changeCollection((*reinterpret_cast< LevelCollection*(*)>(_a[1]))); break;
-        case 6: _t->changeAnim((*reinterpret_cast< int(*)>(_a[1]))); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData PlayField::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject PlayField::staticMetaObject = {
-    { &QWidget::staticMetaObject, qt_meta_stringdata_PlayField,
-      qt_meta_data_PlayField, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &PlayField::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *PlayField::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *PlayField::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_PlayField))
-        return static_cast<void*>(const_cast< PlayField*>(this));
-    return QWidget::qt_metacast(_clname);
-}
-
-int PlayField::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QWidget::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 7)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 7;
-    }
-    return _id;
-}
-QT_END_MOC_NAMESPACE

config.h

-/* config.h.  Generated from config.h.in by configure.  */
-/* config.h.in.  Generated from configure.in by autoheader.  */
-
-/* Define if aRts is available */
-#define HAVE_ARTS 0
-
-/* Define to 1 if you have the <Carbon/Carbon.h> header file. */
-/* #undef HAVE_CARBON_CARBON_H */
-
-/* Define if you have the CoreAudio API */
-/* #undef HAVE_COREAUDIO */
-
-/* Define to 1 if you have the <crt_externs.h> header file. */
-/* #undef HAVE_CRT_EXTERNS_H */
-
-/* Defines if your system has the crypt function */
-#define HAVE_CRYPT 1
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#define HAVE_DLFCN_H 1
-
-/* Define to 1 if you have the <fcntl.h> header file. */
-#define HAVE_FCNTL_H 1
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#define HAVE_INTTYPES_H 1
-
-/* Define if you have libjpeg */
-#define HAVE_LIBJPEG 1
-
-/* Define if you have libpng */
-#define HAVE_LIBPNG 1
-
-/* Define if you have a working libpthread (will enable threaded code) */
-#define HAVE_LIBPTHREAD 1
-
-/* Define if you have libz */
-#define HAVE_LIBZ 1
-
-/* Define to 1 if you have the <memory.h> header file. */
-#define HAVE_MEMORY_H 1
-
-/* Define if your system needs _NSGetEnviron to set up the environment */
-/* #undef HAVE_NSGETENVIRON */
-
-/* Define if you have random */
-#define HAVE_RANDOM 1
-
-/* Define if you have the random prototype */
-#define HAVE_RANDOM_PROTO 1
-
-/* Define if you have res_init */
-#define HAVE_RES_INIT 1
-
-/* Define if you have the res_init prototype */
-#define HAVE_RES_INIT_PROTO 1
-
-/* Define if you have a STL implementation by SGI */
-#define HAVE_SGI_STL 1
-
-/* Define to 1 if you have the `snprintf' function. */
-#define HAVE_SNPRINTF 1
-
-/* Define if you have srandom */
-#define HAVE_SRANDOM 1
-
-/* Define if you have the srandom prototype */
-#define HAVE_SRANDOM_PROTO 1
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#define HAVE_STDINT_H 1
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-#define HAVE_STRINGS_H 1
-
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
-/* Define if you have strlcat */
-/* #undef HAVE_STRLCAT */
-
-/* Define if you have the strlcat prototype */
-/* #undef HAVE_STRLCAT_PROTO */
-
-/* Define if you have strlcpy */
-/* #undef HAVE_STRLCPY */
-
-/* Define if you have the strlcpy prototype */
-/* #undef HAVE_STRLCPY_PROTO */
-
-/* Define to 1 if you have the <stropts.h> header file. */
-#define HAVE_STROPTS_H 1
-
-/* Define to 1 if you have the <sys/bitypes.h> header file. */
-#define HAVE_SYS_BITYPES_H 1
-
-/* Define to 1 if you have the <sys/filio.h> header file. */
-/* #undef HAVE_SYS_FILIO_H */
-
-/* Define to 1 if you have the <sys/select.h> header file. */
-#define HAVE_SYS_SELECT_H 1
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#define HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the <sys/time.h> header file. */
-#define HAVE_SYS_TIME_H 1
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
-
-/* Define if you have usleep */
-#define HAVE_USLEEP 1
-
-/* Define if you have the usleep prototype */
-#define HAVE_USLEEP_PROTO 1
-
-/* Define to 1 if you have the `vsnprintf' function. */
-#define HAVE_VSNPRINTF 1
-
-/* The system-wide highscore directory */
-/* #undef HIGHSCORE_DIRECTORY */
-
-/* Suffix for lib directories */
-#define KDELIBSUFF ""
-
-/* Name of package */
-#define PACKAGE "kdegames"
-
-/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT ""
-
-/* Define to the full name of this package. */
-#define PACKAGE_NAME ""
-
-/* Define to the full name and version of this package. */
-#define PACKAGE_STRING ""
-
-/* Define to the one symbol short name of this package. */
-#define PACKAGE_TARNAME ""
-
-/* Define to the version of this package. */
-#define PACKAGE_VERSION ""
-
-/* The size of `char *', as computed by sizeof. */
-#define SIZEOF_CHAR_P 8
-
-/* The size of `int', as computed by sizeof. */
-#define SIZEOF_INT 4
-
-/* The size of `long', as computed by sizeof. */
-#define SIZEOF_LONG 8
-
-/* The size of `short', as computed by sizeof. */
-#define SIZEOF_SHORT 2
-
-/* The size of `size_t', as computed by sizeof. */
-#define SIZEOF_SIZE_T 8
-
-/* The size of `unsigned long', as computed by sizeof. */
-#define SIZEOF_UNSIGNED_LONG 8
-
-/* Define to 1 if you have the ANSI C header files. */
-#define STDC_HEADERS 1
-
-/* Version number of package */
-#define VERSION "3.5.10"
-
-/* Defined if compiling without arts */
-#define WITHOUT_ARTS 1
-
-/*
- * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
- * headers and I'm too lazy to write a configure test as long as only
- * unixware is related
- */
-#ifdef _UNIXWARE
-#define HAVE_BOOLEAN
-#endif
-
-
-
-/*
- * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
- * that defines bzero.
- */
-
-#if defined(_AIX)
-#include <strings.h>
-#endif
-
-
-
-#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
-# include <sys/time.h>
-# include <crt_externs.h>
-# define environ (*_NSGetEnviron())
-#endif
-
-
-
-#if !defined(HAVE_RANDOM_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-long int random(void);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_RES_INIT_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-int res_init(void);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_SRANDOM_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-void srandom(unsigned int);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_STRLCAT_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-unsigned long strlcat(char*, const char*, unsigned long);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_STRLCPY_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-unsigned long strlcpy(char*, const char*, unsigned long);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_USLEEP_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-int usleep (unsigned int);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-/*
- * On HP-UX, the declaration of vsnprintf() is needed every time !
- */
-
-#if !defined(HAVE_VSNPRINTF) || defined(hpux)
-#if __STDC__
-#include <stdarg.h>
-#include <stdlib.h>
-#else
-#include <varargs.h>
-#endif
-#ifdef __cplusplus
-extern "C"
-#endif
-int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
-#ifdef __cplusplus
-extern "C"
-#endif
-int snprintf(char *str, size_t n, char const *fmt, ...);
-#endif
-
-
-/* define to 1 if -fvisibility is supported */
-/* #undef __KDE_HAVE_GCC_VISIBILITY */
-
-
-#if defined(__SVR4) && !defined(__svr4__)
-#define __svr4__ 1
-#endif
-
-
-/* type to use in place of socklen_t if not defined */
-#define kde_socklen_t socklen_t
-
-/* type to use in place of socklen_t if not defined (deprecated, use
-   kde_socklen_t) */
-#define ksize_t socklen_t

data/Makefile

-# Makefile.in generated by automake 1.10.1 from Makefile.am.
-# KDE tags expanded automatically by am_edit - $Revision: 483858 $ 
-# ksokoban/data/Makefile.  Generated from Makefile.in by configure.
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-pkgdatadir = $(datadir)/kdegames
-pkglibdir = $(libdir)/kdegames
-pkgincludedir = $(includedir)/kdegames
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-target_triplet = x86_64-unknown-linux-gnu
-subdir = ksokoban/data
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
-	$(top_srcdir)/configure.in
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-    *) f=$$p;; \
-  esac;
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-am__installdirs = "$(DESTDIR)$(xdg_appsdir)"
-xdg_appsDATA_INSTALL = $(INSTALL_DATA)
-DATA = $(xdg_apps_DATA)
-#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-#>+ 1
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
-ACLOCAL = ${SHELL} /mnt/dane/lukasz/roboczy/kdegames-3.5.10/admin/missing --run aclocal-1.10
-AMTAR = ${SHELL} /mnt/dane/lukasz/roboczy/kdegames-3.5.10/admin/missing --run tar
-AR = ar
-ARTSCCONFIG = no
-ARTS_CFLAGS = 
-AUTOCONF = $(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure
-AUTODIRS = 
-AUTOHEADER = ${SHELL} /mnt/dane/lukasz/roboczy/kdegames-3.5.10/admin/missing --run autoheader
-AUTOMAKE = ${SHELL} /mnt/dane/lukasz/roboczy/kdegames-3.5.10/admin/missing --run automake-1.10
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CFLAGS = -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security -Wmissing-format-attribute
-CONF_FILES =  $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in $(top_srcdir)/./kasteroids/configure.in.in $(top_srcdir)/./kbattleship/configure.in.in $(top_srcdir)/./kbounce/configure.in.in $(top_srcdir)/./knetwalk/configure.in.in $(top_srcdir)/./kolf/configure.in.in $(top_srcdir)/./ksirtet/configure.in.in $(top_srcdir)/./kspaceduel/configure.in.in $(top_srcdir)/./libkdegames/configure.in.in $(top_srcdir)/./libksirtet/configure.in.in
-CPP = gcc -E
-CPPFLAGS =  -DQT_THREAD_SUPPORT  -D_REENTRANT
-CXX = g++
-CXXCPP = g++ -E
-CXXDEPMODE = depmode=gcc3
-CXXFLAGS = -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-CYGPATH_W = echo
-DCOPIDL = /home/lukasz/ksoko/bin/dcopidl
-DCOPIDL2CPP = /home/lukasz/ksoko/bin/dcopidl2cpp
-DCOPIDLNG = /home/lukasz/ksoko/bin/dcopidlng
-DCOP_DEPENDENCIES = $(DCOPIDL) $(DCOPIDLNG)
-DEFS = -DHAVE_CONFIG_H
-DEPDIR = .deps
-DOXYGEN = 
-DOXYGEN_PROJECT_NAME = KDE Games API Reference
-DOXYGEN_PROJECT_NUMBER = Version 3.5.10
-ECHO = echo
-ECHO_C = 
-ECHO_N = -n
-ECHO_T = 
-EGREP = /bin/grep -E
-ENABLE_PERMISSIVE_FLAG = -fpermissive
-EXEEXT = 
-F77 = 
-FFLAGS = 
-FRAMEWORK_COREAUDIO = 
-GMSGFMT = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_GCC_VISIBILITY = 0
-HIGHSCORE_DIRECTORY = 
-INSTALL = /usr/bin/install -c -p
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL} $(INSTALL_STRIP_FLAG)
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-KCFG_DEPENDENCIES = $(KCONFIG_COMPILER)
-KCONFIG_COMPILER = /home/lukasz/ksoko/bin/kconfig_compiler
-KDECONFIG = /home/lukasz/ksoko/bin/kde-config
-KDE_CHECK_PLUGIN = $(KDE_PLUGIN) -rpath $(libdir)
-KDE_EXTRA_RPATH = 
-KDE_HAS_DOXYGEN = no
-KDE_HAVE_DOT = YES
-KDE_INCLUDES = 
-KDE_LDFLAGS = -L/home/lukasz/ksoko/lib
-KDE_MT_LDFLAGS = 
-KDE_MT_LIBS = -lpthread
-KDE_NO_UNDEFINED = -Wl,--no-undefined -Wl,--allow-shlib-undefined
-KDE_PLUGIN = -avoid-version -module -no-undefined $(KDE_NO_UNDEFINED) $(KDE_RPATH) $(KDE_MT_LDFLAGS)
-KDE_RPATH = -R $(libdir) -R $(kde_libraries) -R $(qt_libraries)
-KDE_USE_CLOSURE_FALSE = 
-KDE_USE_CLOSURE_TRUE = #
-KDE_USE_FINAL_FALSE = 
-KDE_USE_FINAL_TRUE = #
-KDE_USE_FPIE = -fPIE
-KDE_USE_NMCHECK_FALSE = 
-KDE_USE_NMCHECK_TRUE = #
-KDE_USE_PIE = -pie
-KDE_XSL_STYLESHEET = /home/lukasz/ksoko/share/apps/ksgmltools2/customization/kde-chunk.xsl
-LDFLAGS = 
-LDFLAGS_AS_NEEDED = 
-LDFLAGS_NEW_DTAGS = 
-LIBCOMPAT = 
-LIBCRYPT = -lcrypt
-LIBDL = -ldl
-LIBJPEG = -ljpeg
-LIBOBJS = 
-LIBPNG = -lpng -lz -lm
-LIBPTHREAD = -lpthread
-LIBRESOLV = -lresolv
-LIBS = 
-LIBSM = -lSM -lICE
-LIBSOCKET = 
-LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent
-LIBUCB = 
-LIBUTIL = -lutil
-LIBZ = -lz
-LIB_ARTS = 
-LIB_KAB = -lkab
-LIB_KABC = -lkabc
-LIB_KDECORE = -lkdecore
-LIB_KDED = 
-LIB_KDEGAMES = $(top_builddir)/libkdegames/libkdegames.la
-LIB_KDEGAMES_DEP = $(LIB_KDEGAMES)
-LIB_KDEPIM = -lkdepim
-LIB_KDEPRINT = -lkdeprint
-LIB_KDEUI = -lkdeui
-LIB_KDNSSD = -lkdnssd
-LIB_KFILE = -lkio
-LIB_KFM = 
-LIB_KHTML = -lkhtml
-LIB_KIMPROXY = -lkimproxy
-LIB_KIO = -lkio
-LIB_KJS = -lkjs
-LIB_KNEWSTUFF = -lknewstuff
-LIB_KPARTS = -lkparts
-LIB_KSPELL = -lkspell
-LIB_KSYCOCA = -lkio
-LIB_KUNITTEST = -lkunittest
-LIB_KUTILS = -lkutils
-LIB_POLL = 
-LIB_QPE = 
-LIB_QT = -lqt-mt  $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread
-LIB_SMB = -lsmb
-LIB_X11 = -lX11 $(LIBSOCKET)
-LIB_XEXT = -lXext
-LIB_XRENDER = 
-LN_S = ln -s
-LTLIBOBJS = 
-MAKEINFO = ${SHELL} /mnt/dane/lukasz/roboczy/kdegames-3.5.10/admin/missing --run makeinfo
-MAKEKDEWIDGETS = /home/lukasz/ksoko/bin/makekdewidgets
-MCOPIDL = 
-MEINPROC = /home/lukasz/ksoko/bin/meinproc
-MKDIR_P = /bin/mkdir -p
-MOC = /home/lukasz/ksoko/bin/moc
-MSGFMT = /usr/bin/msgfmt
-NOOPT_CFLAGS = -O0
-NOOPT_CXXFLAGS = -O0
-OBJEXT = o
-PACKAGE = kdegames
-PACKAGE_BUGREPORT = 
-PACKAGE_NAME = 
-PACKAGE_STRING = 
-PACKAGE_TARNAME = 
-PACKAGE_VERSION = 
-PATH_SEPARATOR = :
-PERL = /usr/bin/perl
-PKG_CONFIG = /usr/bin/pkg-config
-QTDOCDIR = /home/lukasz/ksoko/doc/html
-QTE_NORTTI = 
-QT_INCLUDES = -I/home/lukasz/ksoko/include
-QT_LDFLAGS = -L/home/lukasz/ksoko/lib
-RANLIB = ranlib
-SET_MAKE = 
-SHELL = /bin/bash
-STRIP = strip
-TOPSUBDIRS =  libkdegames atlantik doc katomic kbackgammon kbattleship kblackbox kbounce kenolaba kgoldrunner kjumpingcube klines kmahjongg kmines knetwalk konquest kpat kpoker kreversi ksame kshisen ksmiletris ksnake ksokoban kspaceduel ktron ktuberling kwin4 libksirtet lskat klickety kfouleggs ksirtet
-UIC = /home/lukasz/ksoko/bin/uic -L $(kde_widgetdir) -nounload
-UIC_TR = tr2i18n
-USER_INCLUDES = 
-USER_LDFLAGS = 
-USE_EXCEPTIONS = -fexceptions
-USE_RTTI = 
-USE_THREADS = 
-VERSION = 3.5.10
-WOVERLOADED_VIRTUAL = 
-XGETTEXT = /usr/bin/xgettext
-XMKMF = 
-XMLLINT = /usr/bin/xmllint
-X_EXTRA_LIBS = 
-X_INCLUDES = -I.
-X_LDFLAGS = 
-X_PRE_LIBS = 
-X_RPATH = 
-abs_builddir = /mnt/dane/lukasz/roboczy/kdegames-3.5.10/ksokoban/data
-abs_srcdir = /mnt/dane/lukasz/roboczy/kdegames-3.5.10/ksokoban/data
-abs_top_builddir = /mnt/dane/lukasz/roboczy/kdegames-3.5.10
-abs_top_srcdir = /mnt/dane/lukasz/roboczy/kdegames-3.5.10
-ac_ct_CC = gcc
-ac_ct_CXX = g++
-ac_ct_F77 = 
-all_includes = -I/home/lukasz/ksoko/include -I. 
-all_libraries = -L/home/lukasz/ksoko/lib    
-am__include = include
-am__leading_dot = .
-am__quote = 
-am__tar = ${AMTAR} chof - "$$tardir"
-am__untar = ${AMTAR} xf -
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias = 
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE}
-dvidir = ${docdir}
-exec_prefix = ${prefix}
-highscore_group = games
-highscore_user = games
-host = x86_64-unknown-linux-gnu
-host_alias = 
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = $(SHELL) /mnt/dane/lukasz/roboczy/kdegames-3.5.10/admin/install-sh
-kde_appsdir = ${datadir}/applnk
-kde_bindir = ${exec_prefix}/bin
-kde_confdir = ${datadir}/config
-kde_datadir = ${datadir}/apps
-kde_htmldir = ${datadir}/doc/HTML
-kde_icondir = ${datadir}/icons
-kde_includes = /home/lukasz/ksoko/include
-kde_kcfgdir = ${datadir}/config.kcfg
-kde_libraries = /home/lukasz/ksoko/lib
-kde_libs_htmldir = /home/lukasz/ksoko/share/doc/HTML
-kde_libs_prefix = /home/lukasz/ksoko
-kde_locale = ${datadir}/locale
-kde_mimedir = ${datadir}/mimelnk
-kde_moduledir = ${libdir}/kde3
-kde_qtver = 3
-kde_servicesdir = ${datadir}/services
-kde_servicetypesdir = ${datadir}/servicetypes
-kde_sounddir = ${datadir}/sounds
-kde_styledir = ${libdir}/kde3/plugins/styles
-kde_templatesdir = ${datadir}/templates
-kde_wallpaperdir = ${datadir}/wallpapers
-kde_widgetdir = /home/lukasz/ksoko/lib/kde3/plugins/designer
-kdeinitdir = $(kde_moduledir)
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = /bin/mkdir -p
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /home/lukasz/ksoko
-program_transform_name = s,x,x,
-psdir = ${docdir}
-qt_includes = /home/lukasz/ksoko/include
-qt_libraries = /home/lukasz/ksoko/lib
-sbindir = ${exec_prefix}/sbin
-setgid = false
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target = x86_64-unknown-linux-gnu
-target_alias = 
-target_cpu = x86_64
-target_os = linux-gnu
-target_vendor = unknown
-top_builddir = ../..
-top_srcdir = ../..
-x_includes = .
-x_libraries = /usr/lib
-xdg_appsdir = ${datadir}/applications/kde
-xdg_directorydir = ${datadir}/desktop-directories
-xdg_menudir = ${sysconfdir}/xdg/menus
-KDE_ICON = ksokoban
-xdg_apps_DATA = ksokoban.desktop
-#>- all: all-am
-#>+ 1
-all: docs-am  all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-#>- 	@for dep in $?; do \
-#>- 	  case '$(am__configure_deps)' in \
-#>- 	    *$$dep*) \
-#>- 	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-#>- 		&& exit 0; \
-#>- 	      exit 1;; \
-#>- 	  esac; \
-#>- 	done; \
-#>- 	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  ksokoban/data/Makefile'; \
-#>- 	cd $(top_srcdir) && \
-#>- 	  $(AUTOMAKE) --foreign  ksokoban/data/Makefile
-#>+ 12
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-		&& exit 0; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  ksokoban/data/Makefile'; \
-	cd $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign  ksokoban/data/Makefile
-	cd $(top_srcdir) && perl admin/am_edit ksokoban/data/Makefile.in
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-install-xdg_appsDATA: $(xdg_apps_DATA)
-	@$(NORMAL_INSTALL)
-	test -z "$(xdg_appsdir)" || $(MKDIR_P) "$(DESTDIR)$(xdg_appsdir)"
-	@list='$(xdg_apps_DATA)'; for p in $$list; do \
-	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-	  f=$(am__strip_dir) \
-	  echo " $(xdg_appsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(xdg_appsdir)/$$f'"; \
-	  $(xdg_appsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(xdg_appsdir)/$$f"; \
-	done
-
-uninstall-xdg_appsDATA:
-	@$(NORMAL_UNINSTALL)
-	@list='$(xdg_apps_DATA)'; for p in $$list; do \
-	  f=$(am__strip_dir) \
-	  echo " rm -f '$(DESTDIR)$(xdg_appsdir)/$$f'"; \
-	  rm -f "$(DESTDIR)$(xdg_appsdir)/$$f"; \
-	done
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
-	    fi; \
-	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
-	  else \
-	    test -f $(distdir)/$$file \
-	    || cp -p $$d/$$file $(distdir)/$$file \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(DATA)
-installdirs:
-	for dir in "$(DESTDIR)$(xdg_appsdir)"; do \
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
-	done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	  `test -z '$(STRIP)' || \
-	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-#>- clean: clean-am
-#>+ 1
-clean: kde-rpo-clean  clean-am
-
-#>- clean-am: clean-generic clean-libtool mostlyclean-am
-#>+ 1
-clean-am: clean-bcheck  clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
-	-rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-#>- install-data-am: install-xdg_appsDATA
-#>+ 1
-install-data-am: install-kde-icons  install-xdg_appsDATA
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-#>- uninstall-am: uninstall-xdg_appsDATA
-#>+ 1
-uninstall-am: uninstall-kde-icons  uninstall-xdg_appsDATA
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
-	distclean distclean-generic distclean-libtool distdir dvi \
-	dvi-am html html-am info info-am install install-am \
-	install-data install-data-am install-dvi install-dvi-am \
-	install-exec install-exec-am install-html install-html-am \
-	install-info install-info-am install-man install-pdf \
-	install-pdf-am install-ps install-ps-am install-strip \
-	install-xdg_appsDATA installcheck installcheck-am installdirs \