• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kmahjongg

  • sources
  • kde-4.14
  • kdegames
  • kmahjongg
FrameImage.h
Go to the documentation of this file.
1 /* Copyright (C) 1997 Mathias Mueller <in5y158@public.uni-hamburg.de>
2  * Copyright (C) 2006 Mauricio Piacentini <mauricio@tabuleiro.com>
3  *
4  * Kmahjongg is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17 
18 #ifndef FRAMEIMAGE_H
19 #define FRAMEIMAGE_H
20 
21 #define USE_UNSTABLE_LIBKDEGAMESPRIVATE_API
22 #include <libkdegamesprivate/kgamecanvas.h>
23 
24 #include "kmahjonggtileset.h"
25 #include "kmahjonggbackground.h"
26 #include "BoardLayout.h"
27 
28 #include <qframe.h>
29 
30 #include <kdialog.h>
31 
32 
33 class QComboBox;
34 class QPixmap;
35 
42 class FrameImage: public KGameCanvasWidget
43 {
44  Q_OBJECT
45 
46 public:
52  FrameImage(QWidget *parent, const QSize &initialImageSize);
53 
56  ~FrameImage();
57 
62  QPixmap* getPreviewPixmap() {return thePixmap;}
63 
73  void setRect(int x, int y, int w, int h, int ss, int type);
74 
75 signals:
78  void mousePressed(QMouseEvent *e);
79 
82  void mouseMoved(QMouseEvent *e);
83 
84 protected:
87  void mousePressEvent(QMouseEvent *e);
88 
91  void mouseMoveEvent(QMouseEvent *e);
92 
95  void resizeEvent(QResizeEvent *e);
96 
99  void paintEvent( QPaintEvent* pa );
100 
101 private:
102  int rx;
103  int ry;
104  int rw;
105  int rh;
106  int rs;
107  int rt;
108 
109  QPixmap *thePixmap;
110 };
111 
112 
113 #endif
QResizeEvent
QWidget
KGameCanvasWidget
QMouseEvent
FrameImage::paintEvent
void paintEvent(QPaintEvent *pa)
Event Description.
Definition: FrameImage.cpp:54
FrameImage::mouseMoved
void mouseMoved(QMouseEvent *e)
Signal Description.
FrameImage::FrameImage
FrameImage(QWidget *parent, const QSize &initialImageSize)
Constructor.
Definition: FrameImage.cpp:37
FrameImage::resizeEvent
void resizeEvent(QResizeEvent *e)
Event Description.
Definition: FrameImage.cpp:49
FrameImage
This class implements.
Definition: FrameImage.h:42
FrameImage::mousePressed
void mousePressed(QMouseEvent *e)
Signal Description.
FrameImage::getPreviewPixmap
QPixmap * getPreviewPixmap()
Method Description.
Definition: FrameImage.h:62
BoardLayout.h
QPixmap
QSize
FrameImage::mousePressEvent
void mousePressEvent(QMouseEvent *e)
Event Description.
Definition: FrameImage.cpp:117
FrameImage::~FrameImage
~FrameImage()
Default Destructor.
Definition: FrameImage.cpp:44
FrameImage::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *e)
Event Description.
Definition: FrameImage.cpp:122
QPaintEvent
FrameImage::setRect
void setRect(int x, int y, int w, int h, int ss, int type)
Method Description.
Definition: FrameImage.cpp:107
QComboBox
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmahjongg

Skip menu "kmahjongg"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal