Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
widgets
viewport.h
Go to the documentation of this file.
1
8
#ifndef VIEWPORT_H
9
#define VIEWPORT_H
10
11
#include <QWidget>
12
13
class
QCloseEvent;
14
15
class
CAViewPort
:
public
QWidget
{
16
Q_OBJECT
17
18
public
:
19
CAViewPort
(
QWidget
*parent=0);
20
21
virtual
~CAViewPort
();
22
23
enum
CAViewPortType
{
24
ScoreViewPort
,
25
SourceViewPort
26
};
27
28
inline
CAViewPortType
viewPortType
() {
return
_viewPortType
; }
29
30
virtual
CAViewPort
*
clone
() = 0;
31
virtual
CAViewPort
*
clone
(
QWidget
*parent) = 0;
32
33
virtual
void
rebuild
() = 0;
34
35
static
const
int
DEFAULT_VIEWPORT_WIDTH
;
36
static
const
int
DEFAULT_VIEWPORT_HEIGHT
;
37
38
protected
slots:
39
void
mousePressEvent
(QMouseEvent *e);
40
inline
void
closeEvent
(QCloseEvent*) { emit
closed
(
this
); }
41
42
signals:
43
void
clicked
();
44
void
closed
(
CAViewPort
*);
45
46
protected
:
47
inline
void
setViewPortType
(
CAViewPortType
t) {
_viewPortType
= t; }
48
50
// General properties //
52
CAViewPortType
_viewPortType
;
53
};
54
#endif
Generated on Fri Jan 11 2013 14:40:13 for Canorus by
1.8.3