Commit 4200f81f authored by Benjamin Meyer's avatar Benjamin Meyer

formating/cleanup

svn path=/trunk/kdegames/lskat/; revision=330972
parent 62739a12
......@@ -17,7 +17,6 @@
#ifndef _KEINPUT_H_
#define _KEINPUT_H_
#include <string.h>
#include <qptrlist.h>
#include <qobject.h>
#include <qtimer.h>
......
......@@ -14,28 +14,11 @@
* (at your option) any later version. *
* *
***************************************************************************/
/***************************************************************************
FILENAME| - description
-------------------
begin : Tue Apr 4 2000
copyright : (C) |1995-2000 by Martin Heni
email : martin@heni-online.de
***************************************************************************/
/***************************************************************************
* *
* 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 <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "KMessageEntry.h"
void KMessageEntry::SetType(KGM_TYPE t)
{
type=t;
......
......@@ -14,14 +14,12 @@
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _KMESSAGEENTRY_H_
#define _KMESSAGEENTRY_H_
#include <string.h>
#include "KConnectTypes.h"
class KMessageEntry
{
private:
......
......@@ -209,9 +209,7 @@ public:
int stat_games[2]; // how many games
int stat_brk[2]; // how many games aborted
int cardvalues[14];
public slots:
/** calls repaint() on all views connected to the document object and is called by the view by which the document has been changed.
......@@ -229,7 +227,6 @@ public:
QString title;
QString absFilePath;
QString deckPath,cardPath;
};
#endif // LSKATDOC_H
......@@ -24,17 +24,15 @@
#include <qwidget.h>
#include <qrect.h>
#include "lskat.h"
class LSkatDoc;
/** The LSkatView class provides the view widget for the LSkatApp instance.
/** The LSkatView class provides the view widget for the LSkatApp instance.
* The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As LSkatView is part of the
* docuement-view model, it needs a reference to the document object connected with it by the LSkatApp class to manipulate and display
* the document structure provided by the LSkatDoc class.
*
*
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 0.4 code generation
*/
......@@ -42,20 +40,20 @@ class LSkatView : public QWidget
{
Q_OBJECT
public:
/** Constructor for the main view */
LSkatView(QWidget *parent = 0, const char *name=0);
/** Constructor for the main view */
LSkatView(QWidget *parent = 0, const char *name=0);
/** returns a pointer to the document connected to the view instance. Mind that this method requires a LSkatApp instance as a parent
* widget to get to the window document pointer by calling the LSkatApp::getDocument() method.
*
* @see LSkatApp#getDocument
*/
LSkatDoc *getDocument() const;
/** returns a pointer to the document connected to the view instance. Mind that this method requires a LSkatApp instance as a parent
* widget to get to the window document pointer by calling the LSkatApp::getDocument() method.
*
* @see LSkatApp#getDocument
*/
LSkatDoc *getDocument() const;
void paintEvent( QPaintEvent * p);
void Paint(QPainter *p);
void InitMove(int player,int x,int y);
void updateStatus();
void paintEvent( QPaintEvent * p);
void Paint(QPainter *p);
void InitMove(int player,int x,int y);
void updateStatus();
protected:
void drawDeck(QPainter *p);
......@@ -67,7 +65,7 @@ class LSkatView : public QWidget
QPoint calcCardPos(int x,int y);
void mousePressEvent ( QMouseEvent *m );
protected slots:
void moveTimerReady();
void introTimerReady();
......@@ -87,7 +85,7 @@ class LSkatView : public QWidget
QPoint cardorigin;
QPoint cardend;
int introCards[NO_OF_CARDS];
};
#endif // LSKATVIEW_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment