Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Slots | Private Attributes
ExportDialog Class Reference

#include <exportdialog.h>

Inheritance diagram for ExportDialog:

Public Types

enum  ImgFormat { Coloured, Monochrome }
 

Public Member Functions

 ExportDialog (int w, int h, int wsel, int hsel, QString filename_, bool nosel_=true, QWidget *parent=0)
 
QString FileToSave ()
 
bool isOriginalSize ()
 
bool isExportSelected ()
 
int Xpixels ()
 
int Ypixels ()
 
bool isSvg ()
 
bool needsInkscape ()
 
bool isValidFilename ()
 
bool isPdf ()
 
bool isPdf_Tex ()
 
bool isEps ()
 
void setDiagram ()
 
float getScale ()
 
ExportDialog::ImgFormat getImgFormat ()
 

Private Slots

void setFileName ()
 
void calcWidth ()
 
void calcHeight ()
 
void recalcRatio ()
 
void restoreOriginalWtoH ()
 
void setSvg (QString filename)
 
void setSelectedWH ()
 
void recalcScale ()
 

Private Attributes

QPushButton * ExportButt
 
QPushButton * CancelButt
 
QPushButton * SaveButt
 
QLabel * lblFilename
 
QLabel * lblResolutionX
 
QLabel * lblResolutionY
 
QLabel * lblRatio
 
QLabel * lblFormat
 
QCheckBox * cbResolution
 
QCheckBox * cbRatio
 
QCheckBox * cbSelected
 
QLineEdit * editFilename
 
QLineEdit * editResolutionX
 
QLineEdit * editResolutionY
 
QLineEdit * editScale
 
QComboBox * cbxImgType
 
QHBoxLayout * lower1
 
QHBoxLayout * lower2
 
QHBoxLayout * lower3
 
QHBoxLayout * lower4
 
QVBoxLayout * top
 
int dwidth
 
int dheight
 
int dwidthsel
 
int dheightsel
 
float scale
 
bool svg
 
bool noselected
 
QString filename
 

Detailed Description

Definition at line 25 of file exportdialog.h.

Member Enumeration Documentation

Enumerator
Coloured 
Monochrome 

Definition at line 71 of file exportdialog.h.

Constructor & Destructor Documentation

ExportDialog::ExportDialog ( int  w,
int  h,
int  wsel,
int  hsel,
QString  filename_,
bool  nosel_ = true,
QWidget *  parent = 0 
)
explicit

Definition at line 20 of file exportdialog.cpp.

Member Function Documentation

void ExportDialog::calcHeight ( )
privateslot

Definition at line 189 of file exportdialog.cpp.

void ExportDialog::calcWidth ( )
privateslot

Definition at line 179 of file exportdialog.cpp.

QString ExportDialog::FileToSave ( )

Definition at line 126 of file exportdialog.cpp.

ExportDialog::ImgFormat ExportDialog::getImgFormat ( )

Definition at line 332 of file exportdialog.cpp.

float ExportDialog::getScale ( )

Definition at line 313 of file exportdialog.cpp.

bool ExportDialog::isEps ( )

Definition at line 287 of file exportdialog.cpp.

bool ExportDialog::isExportSelected ( )

Definition at line 220 of file exportdialog.cpp.

bool ExportDialog::isOriginalSize ( )

Definition at line 131 of file exportdialog.cpp.

bool ExportDialog::isPdf ( )

Definition at line 273 of file exportdialog.cpp.

bool ExportDialog::isPdf_Tex ( )

Definition at line 280 of file exportdialog.cpp.

bool ExportDialog::isSvg ( )

Definition at line 215 of file exportdialog.cpp.

bool ExportDialog::isValidFilename ( )

Definition at line 243 of file exportdialog.cpp.

bool ExportDialog::needsInkscape ( )

Definition at line 259 of file exportdialog.cpp.

void ExportDialog::recalcRatio ( )
privateslot

Definition at line 199 of file exportdialog.cpp.

void ExportDialog::recalcScale ( )
privateslot

Definition at line 319 of file exportdialog.cpp.

void ExportDialog::restoreOriginalWtoH ( )
privateslot

Definition at line 206 of file exportdialog.cpp.

void ExportDialog::setDiagram ( )

Definition at line 306 of file exportdialog.cpp.

void ExportDialog::setFileName ( )
privateslot

Definition at line 146 of file exportdialog.cpp.

void ExportDialog::setSelectedWH ( )
privateslot

Definition at line 294 of file exportdialog.cpp.

void ExportDialog::setSvg ( QString  filename)
privateslot

Definition at line 225 of file exportdialog.cpp.

int ExportDialog::Xpixels ( )

Definition at line 136 of file exportdialog.cpp.

int ExportDialog::Ypixels ( )

Definition at line 141 of file exportdialog.cpp.

Field Documentation

QPushButton* ExportDialog::CancelButt
private

Definition at line 33 of file exportdialog.h.

QCheckBox* ExportDialog::cbRatio
private

Definition at line 43 of file exportdialog.h.

QCheckBox* ExportDialog::cbResolution
private

Definition at line 42 of file exportdialog.h.

QCheckBox* ExportDialog::cbSelected
private

Definition at line 44 of file exportdialog.h.

QComboBox* ExportDialog::cbxImgType
private

Definition at line 51 of file exportdialog.h.

int ExportDialog::dheight
private

Definition at line 59 of file exportdialog.h.

int ExportDialog::dheightsel
private

Definition at line 61 of file exportdialog.h.

int ExportDialog::dwidth
private

Definition at line 59 of file exportdialog.h.

int ExportDialog::dwidthsel
private

Definition at line 61 of file exportdialog.h.

QLineEdit* ExportDialog::editFilename
private

Definition at line 46 of file exportdialog.h.

QLineEdit* ExportDialog::editResolutionX
private

Definition at line 47 of file exportdialog.h.

QLineEdit* ExportDialog::editResolutionY
private

Definition at line 48 of file exportdialog.h.

QLineEdit* ExportDialog::editScale
private

Definition at line 49 of file exportdialog.h.

QPushButton* ExportDialog::ExportButt
private

Definition at line 32 of file exportdialog.h.

QString ExportDialog::filename
private

Definition at line 67 of file exportdialog.h.

QLabel* ExportDialog::lblFilename
private

Definition at line 36 of file exportdialog.h.

QLabel* ExportDialog::lblFormat
private

Definition at line 40 of file exportdialog.h.

QLabel* ExportDialog::lblRatio
private

Definition at line 39 of file exportdialog.h.

QLabel* ExportDialog::lblResolutionX
private

Definition at line 37 of file exportdialog.h.

QLabel* ExportDialog::lblResolutionY
private

Definition at line 38 of file exportdialog.h.

QHBoxLayout* ExportDialog::lower1
private

Definition at line 53 of file exportdialog.h.

QHBoxLayout* ExportDialog::lower2
private

Definition at line 54 of file exportdialog.h.

QHBoxLayout* ExportDialog::lower3
private

Definition at line 55 of file exportdialog.h.

QHBoxLayout* ExportDialog::lower4
private

Definition at line 56 of file exportdialog.h.

bool ExportDialog::noselected
private

Definition at line 65 of file exportdialog.h.

QPushButton* ExportDialog::SaveButt
private

Definition at line 34 of file exportdialog.h.

float ExportDialog::scale
private

Definition at line 63 of file exportdialog.h.

bool ExportDialog::svg
private

Definition at line 65 of file exportdialog.h.

QVBoxLayout* ExportDialog::top
private

Definition at line 57 of file exportdialog.h.


The documentation for this class was generated from the following files: