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
painting.h
Go to the documentation of this file.
1
/***************************************************************************
2
painting.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 PAINTING_H
19
#define PAINTING_H
20
21
#include "
element.h
"
22
#include "
viewpainter.h
"
23
24
class
QPainter;
25
26
27
class
Painting
:
public
Element
{
28
public
:
29
Painting
();
30
~Painting
() {};
31
32
virtual
void
getCenter
(
int
&,
int
&) {};
33
virtual
bool
getSelected
(
float
,
float
,
float
) {
return
false
; };
34
35
virtual
Painting
*
newOne
();
36
virtual
bool
load
(
const
QString&) {
return
true
; };
37
virtual
QString
save
();
38
virtual
QString
saveCpp
();
39
virtual
void
paint
(
ViewPainter
*) {};
40
virtual
void
MouseMoving
(QPainter*,
int
,
int
,
int
,
int
,
41
QPainter*,
int
,
int
,
bool
) {};
42
virtual
bool
MousePressing
() {
return
false
; };
43
virtual
void
Bounding
(
int
&,
int
&,
int
&,
int
&);
44
virtual
bool
resizeTouched
(
float
,
float
,
float
) {
return
false
; };
45
virtual
void
MouseResizeMoving
(
int
,
int
, QPainter*) {};
46
47
virtual
void
rotate
() {};
48
virtual
void
mirrorX
() {};
49
virtual
void
mirrorY
() {};
50
virtual
bool
Dialog
() {
return
false
; };
51
52
QString
toPenString
(
int
);
53
QString
toBrushString
(
int
);
54
QString
Name
;
// name of painting, e.g. for saving
55
int
State
;
// state for different mouse operations
56
};
57
58
#endif
Generated on Tue Dec 25 2012 14:30:43 for My Project by
1.8.2