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
graphicline.h
Go to the documentation of this file.
1
/***************************************************************************
2
graphicline.h
3
---------------
4
begin : Mon Nov 24 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 GRAPHICLINE_H
19
#define GRAPHICLINE_H
20
21
#include "
painting.h
"
22
23
24
class
GraphicLine
:
public
Painting
{
25
public
:
26
GraphicLine
(
int
cx_=0,
int
cy_=0,
int
x2_=0,
int
y2_=0,
27
QPen Pen_=QPen(QColor()));
28
~GraphicLine
();
29
30
void
paintScheme
(QPainter*);
31
void
getCenter
(
int
&,
int
&);
32
void
setCenter
(
int
,
int
,
bool
relative=
false
);
33
34
Painting
*
newOne
();
35
static
Element
*
info
(QString&,
char
* &,
bool
getNewOne=
false
);
36
bool
load
(
const
QString&);
37
QString
save
();
38
QString
saveCpp
();
39
void
paint
(
ViewPainter
*);
40
void
MouseMoving
(QPainter*,
int
,
int
,
int
,
int
, QPainter*,
int
,
int
,
bool
);
41
bool
MousePressing
();
42
bool
getSelected
(
float
,
float
,
float
);
43
void
Bounding
(
int
&,
int
&,
int
&,
int
&);
44
bool
resizeTouched
(
float
,
float
,
float
);
45
void
MouseResizeMoving
(
int
,
int
, QPainter*);
46
47
void
rotate
();
48
void
mirrorX
();
49
void
mirrorY
();
50
bool
Dialog
();
51
52
QPen
Pen
;
53
};
54
55
#endif
Generated on Tue Dec 25 2012 14:30:43 for My Project by
1.8.2