~ubuntu-branches/ubuntu/natty/kdegames/natty-proposed

« back to all changes in this revision

Viewing changes to kblocks/kblocksview.h

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2010-05-28 20:16:42 UTC
  • mfrom: (1.2.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20100528201642-vh75rp06hh5hjt6l
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release
* New package for kajongg in debian/control
* Custom deb flag for kajongg in debian/rules
* New install file for kajongg
* Remove README.source from debian/
* Bump dep on kde-sc-dev-latest to 4.4.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   KBlocks, a falling blocks game for KDE                                *
3
 
 *   Copyright (C) 2007 Mauricio Piacentini <mauricio@tabuleiro.com>       *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 ***************************************************************************/
10
 
 
11
 
#ifndef KBLOCKSVIEW_H
12
 
#define KBLOCKSVIEW_H
13
 
 
14
 
#include <QGraphicsView>
15
 
 
16
 
class KBlocksScene;
17
 
 
18
 
class KBlocksView : public QGraphicsView
19
 
{
20
 
  Q_OBJECT
21
 
  public:
22
 
    KBlocksView (QWidget * parent = 0 );
23
 
    ~KBlocksView();
24
 
    QObject * getSceneObject() { return (QObject *) m_scene; }
25
 
    
26
 
  public slots:
27
 
    void newGame();
28
 
    void pauseGame(bool pressed);
29
 
    void settingsChanged();
30
 
    void setSoundsEnabled(bool enabled);
31
 
    void rotateCW();
32
 
    void rotateCCW();
33
 
    void moveLeft();
34
 
    void moveRight();
35
 
    void moveDown();
36
 
    void pushDown();
37
 
    
38
 
  protected:
39
 
    void focusInEvent ( QFocusEvent * event );
40
 
    void focusOutEvent ( QFocusEvent * event );
41
 
 
42
 
  protected:
43
 
    KBlocksScene * m_scene;
44
 
    void resizeEvent(QResizeEvent* event);
45
 
};
46
 
 
47
 
#endif