QtiPlot
0.9.8.2
Main Page
Related Pages
Classes
Files
File List
File Members
qtiplot
src
plot2D
dialogs
LayerDialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : LayerDialog.h
3
Project : QtiPlot
4
--------------------------------------------------------------------
5
Copyright : (C) 2004-2010 by Ion Vasilief
6
Email (use @ for *) : ion_vasilief*yahoo.fr
7
Description : Arrange layers dialog
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
22
* *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
27
* *
28
***************************************************************************/
29
#ifndef LAYERDIALOG_H
30
#define LAYERDIALOG_H
31
32
#include <
MultiLayer.h
>
33
34
#include <QDialog>
35
36
class
DoubleSpinBox
;
37
class
QGroupBox;
38
class
QPushButton;
39
class
QSpinBox;
40
class
QCheckBox;
41
class
QComboBox;
42
44
class
LayerDialog
:
public
QDialog
45
{
46
Q_OBJECT
47
48
public
:
49
LayerDialog
(QWidget* parent,
bool
okMode =
false
, Qt::WFlags fl = 0);
50
void
setMultiLayer
(
MultiLayer
*g);
51
void
setLayers
(
int
layers);
52
void
setLayerCanvasSize
(
int
w,
int
h,
int
unit);
53
void
setMargins
(
int
,
int
,
int
,
int
);
54
void
setRows
(
int
);
55
void
setColumns
(
int
);
56
void
setSharedAxes
(
bool
=
true
);
57
58
protected
slots:
59
void
accept
();
60
void
update
();
61
void
enableLayoutOptions
(
bool
ok);
62
void
swapLayers
();
63
void
updateSizes
(
int
unit);
64
void
adjustCanvasHeight
(
double
width);
65
void
adjustCanvasWidth
(
double
height);
66
void
showCommonAxesBox
();
67
68
private
:
69
void
closeEvent
(QCloseEvent*);
70
int
convertToPixels
(
double
w,
FrameWidget::Unit
unit,
int
dimension);
71
double
convertFromPixels
(
int
w,
FrameWidget::Unit
unit,
int
dimension);
72
73
MultiLayer
*
multi_layer
;
74
75
QPushButton*
buttonOk
;
76
QPushButton*
buttonCancel
;
77
QPushButton*
buttonApply
;
78
QPushButton*
buttonSwapLayers
;
79
QGroupBox *
GroupCanvasSize
, *
GroupGrid
;
80
QSpinBox *
boxX
, *
boxY
, *
boxColsGap
, *
boxRowsGap
;
81
QSpinBox *
boxRightSpace
, *
boxLeftSpace
, *
boxTopSpace
, *
boxBottomSpace
;
82
DoubleSpinBox
*
boxCanvasWidth
, *
boxCanvasHeight
;
83
QSpinBox *
layersBox
;
84
QSpinBox *
boxLayerDest
, *
boxLayerSrc
;
85
QCheckBox *
fitBox
;
86
QComboBox *
alignHorBox
, *
alignVertBox
;
87
QComboBox *
unitBox
;
88
QCheckBox *
keepRatioBox
;
89
QComboBox *
alignPolicyBox
;
90
QCheckBox *
commonAxesBox
;
91
QCheckBox *
fixedSizeBox
;
92
QCheckBox *
linkXAxesBox
;
93
94
double
aspect_ratio
;
95
};
96
97
#endif
Generated on Fri Mar 14 2014 22:59:34 for QtiPlot by
1.8.1.2