Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qt
CanvasSettings.h
Go to the documentation of this file.
1
/* -*- mode: c++ -*- */
2
14
#ifndef CanvasSettings_H
15
#define CanvasSettings_H
16
17
#include <qglobal.h>
// for version
18
// #if QT_VERSION < 0x040000
19
#include "
qtui/CanvasSettingsBase.h
"
20
21
// #else
22
// #include "CanvasSettingsUI.h"
23
// #endif
24
25
#include <qprinter.h>
26
27
namespace
hippodraw {
28
39
// #if QT_VERSION < 0x040000
40
class
CanvasSettings
:
public
CanvasSettingsBase
41
{
42
// #else
43
// class CanvasSettings : public QDialog, private Ui::CanvasSettingsUI
44
// {
45
// Q_OBJECT
46
// #endif
47
48
public
:
49
52
enum
Type
{
Accepted
,
53
Rejected
,
54
AcceptedAndRetile
,
55
Retile
56
};
57
58
private
:
59
62
void
orientationChanged
();
63
64
65
#if QT_VERSION < 0x040000
66
protected
:
67
#else
68
protected
slots:
69
#endif
70
73
virtual
void
cancel
();
74
77
virtual
void
saveRetile
();
78
81
virtual
void
portraitRadioButton_toggled
(
bool
);
82
85
virtual
void
retile_clicked
();
86
87
public
:
88
91
CanvasSettings
(
QWidget
* parent = 0,
92
const
char
* name = 0,
93
bool
modal =
false
,
94
Qt::WFlags fl = 0 );
95
98
int
getWidthNumber
()
const
;
99
102
void
setWidthNumber
(
int
number );
103
106
int
getHeightNumber
()
const
;
107
110
void
setHeightNumber
(
int
number );
111
114
QPrinter::Orientation
orientation
();
115
118
void
setOrientation
( QPrinter::Orientation
orientation
);
119
122
bool
printerBounds
();
123
126
void
setPrinterBounds
(
bool
flag );
127
130
bool
getAddSelected
()
const
;
131
134
void
setAddSelected
(
bool
yes );
135
139
bool
ignorePrinterMargin
()
const
;
140
143
void
setIgnorePrinterMargin
(
bool
yes );
144
145
};
146
147
}
// namespace hippodraw
148
149
#endif // CanvasSettings_H
Generated for HippoDraw Class Library by