My Project
0.0.16
QUCS Mapping
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DownLoad
QUCS-src
qucs-0.0.16
qucs
paintings
rectangle.h
Go to the documentation of this file.
1
/***************************************************************************
2
rectangle.h
3
-------------
4
begin : Sat Nov 22 2003
5
copyright : (C) 2003 by Michael Margraf
6
email : michael.margraf@alumni.tu-berlin.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef RECTANGLE_H
19
#define RECTANGLE_H
20
21
#include "
painting.h
"
22
23
#include <qpen.h>
24
25
26
class
Rectangle
:
public
Painting
{
27
public
:
28
Rectangle
(
bool
_filled=
false
);
29
~Rectangle
();
30
31
void
paintScheme
(QPainter*);
32
void
getCenter
(
int
&,
int
&);
33
void
setCenter
(
int
,
int
,
bool
relative=
false
);
34
35
Painting
*
newOne
();
36
static
Element
*
info
(QString&,
char
* &,
bool
getNewOne=
false
);
37
static
Element
*
info_filled
(QString&,
char
* &,
bool
getNewOne=
false
);
38
bool
load
(
const
QString&);
39
QString
save
();
40
QString
saveCpp
();
41
void
paint
(
ViewPainter
*);
42
void
MouseMoving
(QPainter*,
int
,
int
,
int
,
int
, QPainter*,
int
,
int
,
bool
);
43
bool
MousePressing
();
44
bool
getSelected
(
float
,
float
,
float
);
45
bool
resizeTouched
(
float
,
float
,
float
);
46
void
MouseResizeMoving
(
int
,
int
, QPainter*);
47
48
void
rotate
();
49
void
mirrorX
();
50
void
mirrorY
();
51
bool
Dialog
();
52
53
QPen
Pen
;
54
QBrush
Brush
;
// filling style/color
55
bool
filled
;
// filled or not (for "getSelected" etc.)
56
};
57
58
#endif
Generated on Tue Dec 25 2012 14:30:43 for My Project by
1.8.2