Qucs-GUI
0.0.18
Main Page
Related Pages
Data Structures
Files
File List
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
qucs
dialogs
exportdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
exportdiagramdialog.h
3
------------------
4
begin : Thu Nov 28 2013
5
copyright : (C) 2013 by Vadim Kuznetzov
6
email : <ra3xdh@gmail.com>
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
#ifndef EXPORTDIALOG_H
18
#define EXPORTDIALOG_H
19
20
#include <QObject>
21
#include <QtGui>
22
#include <QDialog>
23
24
25
class
ExportDialog
:
public
QDialog
26
{
27
Q_OBJECT
28
public
:
29
explicit
ExportDialog
(
int
w,
int
h,
int
wsel,
int
hsel, QString filename_,
bool
nosel_=
true
, QWidget *parent = 0);
30
31
private
:
32
QPushButton*
ExportButt
;
33
QPushButton*
CancelButt
;
34
QPushButton*
SaveButt
;
35
36
QLabel*
lblFilename
;
37
QLabel*
lblResolutionX
;
38
QLabel*
lblResolutionY
;
39
QLabel*
lblRatio
;
40
QLabel*
lblFormat
;
41
42
QCheckBox*
cbResolution
;
43
QCheckBox*
cbRatio
;
44
QCheckBox*
cbSelected
;
45
46
QLineEdit*
editFilename
;
47
QLineEdit*
editResolutionX
;
48
QLineEdit*
editResolutionY
;
49
QLineEdit*
editScale
;
50
51
QComboBox*
cbxImgType
;
52
53
QHBoxLayout*
lower1
;
54
QHBoxLayout*
lower2
;
55
QHBoxLayout*
lower3
;
56
QHBoxLayout*
lower4
;
57
QVBoxLayout*
top
;
58
59
int
dwidth
,
dheight
;
60
61
int
dwidthsel
,
dheightsel
;
62
63
float
scale
;
64
65
bool
svg
,
noselected
;
66
67
QString
filename
;
68
69
public
:
70
71
enum
ImgFormat
{
Coloured
,
Monochrome
};
72
73
QString
FileToSave
();
74
bool
isOriginalSize
();
75
bool
isExportSelected
();
76
int
Xpixels
();
77
int
Ypixels
();
78
bool
isSvg
();
79
bool
needsInkscape
();
80
bool
isValidFilename
();
81
bool
isPdf
();
82
bool
isPdf_Tex
();
83
bool
isEps
();
84
void
setDiagram
();
85
float
getScale
();
86
87
ExportDialog::ImgFormat
getImgFormat
();
88
89
signals:
90
91
private
slots:
92
void
setFileName
();
93
void
calcWidth
();
94
void
calcHeight
();
95
void
recalcRatio
();
96
void
restoreOriginalWtoH
();
97
void
setSvg
(QString
filename
);
98
void
setSelectedWH
();
99
void
recalcScale
();
100
101
public
slots:
102
103
};
104
105
#endif // EXPORTDIALOG_H
ExportDialog::lblRatio
QLabel * lblRatio
Definition:
exportdialog.h:39
ExportDialog::Coloured
Definition:
exportdialog.h:71
ExportDialog::editResolutionX
QLineEdit * editResolutionX
Definition:
exportdialog.h:47
ExportDialog::cbResolution
QCheckBox * cbResolution
Definition:
exportdialog.h:42
ExportDialog::svg
bool svg
Definition:
exportdialog.h:65
ExportDialog::setFileName
void setFileName()
Definition:
exportdialog.cpp:146
ExportDialog::isEps
bool isEps()
Definition:
exportdialog.cpp:287
ExportDialog::ImgFormat
ImgFormat
Definition:
exportdialog.h:71
ExportDialog::ExportButt
QPushButton * ExportButt
Definition:
exportdialog.h:32
ExportDialog::Ypixels
int Ypixels()
Definition:
exportdialog.cpp:141
ExportDialog::getScale
float getScale()
Definition:
exportdialog.cpp:313
ExportDialog::editScale
QLineEdit * editScale
Definition:
exportdialog.h:49
ExportDialog::needsInkscape
bool needsInkscape()
Definition:
exportdialog.cpp:259
ExportDialog::calcWidth
void calcWidth()
Definition:
exportdialog.cpp:179
ExportDialog::dheightsel
int dheightsel
Definition:
exportdialog.h:61
ExportDialog::FileToSave
QString FileToSave()
Definition:
exportdialog.cpp:126
ExportDialog::scale
float scale
Definition:
exportdialog.h:63
ExportDialog::editFilename
QLineEdit * editFilename
Definition:
exportdialog.h:46
ExportDialog::Monochrome
Definition:
exportdialog.h:71
ExportDialog::setDiagram
void setDiagram()
Definition:
exportdialog.cpp:306
ExportDialog::cbxImgType
QComboBox * cbxImgType
Definition:
exportdialog.h:51
ExportDialog::top
QVBoxLayout * top
Definition:
exportdialog.h:57
ExportDialog::isSvg
bool isSvg()
Definition:
exportdialog.cpp:215
ExportDialog::getImgFormat
ExportDialog::ImgFormat getImgFormat()
Definition:
exportdialog.cpp:332
ExportDialog::dheight
int dheight
Definition:
exportdialog.h:59
ExportDialog::restoreOriginalWtoH
void restoreOriginalWtoH()
Definition:
exportdialog.cpp:206
ExportDialog::lblFilename
QLabel * lblFilename
Definition:
exportdialog.h:36
ExportDialog
Definition:
exportdialog.h:25
ExportDialog::SaveButt
QPushButton * SaveButt
Definition:
exportdialog.h:34
ExportDialog::recalcScale
void recalcScale()
Definition:
exportdialog.cpp:319
ExportDialog::editResolutionY
QLineEdit * editResolutionY
Definition:
exportdialog.h:48
ExportDialog::isPdf_Tex
bool isPdf_Tex()
Definition:
exportdialog.cpp:280
ExportDialog::dwidth
int dwidth
Definition:
exportdialog.h:59
ExportDialog::cbSelected
QCheckBox * cbSelected
Definition:
exportdialog.h:44
ExportDialog::lower4
QHBoxLayout * lower4
Definition:
exportdialog.h:56
ExportDialog::setSelectedWH
void setSelectedWH()
Definition:
exportdialog.cpp:294
ExportDialog::recalcRatio
void recalcRatio()
Definition:
exportdialog.cpp:199
ExportDialog::ExportDialog
ExportDialog(int w, int h, int wsel, int hsel, QString filename_, bool nosel_=true, QWidget *parent=0)
Definition:
exportdialog.cpp:20
ExportDialog::lblFormat
QLabel * lblFormat
Definition:
exportdialog.h:40
ExportDialog::setSvg
void setSvg(QString filename)
Definition:
exportdialog.cpp:225
ExportDialog::isPdf
bool isPdf()
Definition:
exportdialog.cpp:273
ExportDialog::isOriginalSize
bool isOriginalSize()
Definition:
exportdialog.cpp:131
ExportDialog::filename
QString filename
Definition:
exportdialog.h:67
ExportDialog::lblResolutionX
QLabel * lblResolutionX
Definition:
exportdialog.h:37
ExportDialog::isValidFilename
bool isValidFilename()
Definition:
exportdialog.cpp:243
ExportDialog::isExportSelected
bool isExportSelected()
Definition:
exportdialog.cpp:220
ExportDialog::cbRatio
QCheckBox * cbRatio
Definition:
exportdialog.h:43
ExportDialog::lower2
QHBoxLayout * lower2
Definition:
exportdialog.h:54
ExportDialog::CancelButt
QPushButton * CancelButt
Definition:
exportdialog.h:33
ExportDialog::calcHeight
void calcHeight()
Definition:
exportdialog.cpp:189
ExportDialog::lower1
QHBoxLayout * lower1
Definition:
exportdialog.h:53
ExportDialog::noselected
bool noselected
Definition:
exportdialog.h:65
ExportDialog::lblResolutionY
QLabel * lblResolutionY
Definition:
exportdialog.h:38
ExportDialog::Xpixels
int Xpixels()
Definition:
exportdialog.cpp:136
ExportDialog::lower3
QHBoxLayout * lower3
Definition:
exportdialog.h:55
ExportDialog::dwidthsel
int dwidthsel
Definition:
exportdialog.h:61
Generated on Mon Sep 1 2014 20:05:20 for Qucs-GUI by
1.8.6