26 setMinimumHeight(720);
60 return(export_properties);
69 int index =
format -> findData(export_properties.
format);
70 if (index == -1) index = 0;
71 format -> setCurrentIndex(index);
97 format -> setVisible(!mode);
106 QString user_dir = QFileDialog::getExistingDirectory(
108 tr(
"Exporter dans le dossier",
"dialog title"),
111 if (!user_dir.isEmpty()) {
112 dirpath -> setText(QDir::toNativeSeparators(user_dir));
121 QVBoxLayout *vboxLayout =
new QVBoxLayout();
122 vboxLayout -> setContentsMargins(0, 0, 0, 0);
125 QHBoxLayout *hboxLayout =
new QHBoxLayout();
128 QCompleter *completer =
new QCompleter(
this);
129 completer -> setModel(
new QDirModel(completer));
130 dirpath -> setCompleter(completer);
133 hboxLayout -> addWidget(
dirpath);
135 hboxLayout -> addStretch();
137 vboxLayout -> addLayout(hboxLayout);
140 QHBoxLayout *hboxLayout1 =
new QHBoxLayout();
143 hboxLayout1 -> addWidget(
format =
new QComboBox(
this));
144 format -> addItem(
tr(
"PNG (*.png)"),
"PNG");
145 format -> addItem(
tr(
"JPEG (*.jpg)"),
"JPG");
146 format -> addItem(
tr(
"Bitmap (*.bmp)"),
"BMP");
147 format -> addItem(
tr(
"SVG (*.svg)"),
"SVG");
148 format -> addItem(
tr(
"DXF (*.dxf)"),
"DXF");
149 hboxLayout1 -> addStretch();
151 vboxLayout -> addLayout(hboxLayout1);
154 QGroupBox *groupbox_options =
new QGroupBox(
tr(
"Options de rendu",
"groupbox title"));
155 QGridLayout *optionshlayout =
new QGridLayout(groupbox_options);
159 export_border =
new QRadioButton(
tr(
"Exporter entièrement le folio"), groupbox_options);
162 export_elements =
new QRadioButton(
tr(
"Exporter seulement les éléments"), groupbox_options);
167 draw_grid =
new QCheckBox(
tr(
"Dessiner la grille"), groupbox_options);
168 optionshlayout -> addWidget(
draw_grid, 1, 1);
171 draw_border =
new QCheckBox(
tr(
"Dessiner le cadre"), groupbox_options);
179 draw_terminals =
new QCheckBox(
tr(
"Dessiner les bornes"), groupbox_options);
186 vboxLayout -> addWidget(groupbox_options);
188 setLayout(vboxLayout);
QString format
Image format of generated files.
bool draw_border
Whether to render the border (along with rows/columns headers)
bool draw_colored_conductors
Whether to render conductors colors.
Export the content of the diagram only.
QDir destination_directory
Target directory for generated files.
bool draw_titleblock
Whether to render the title block.
bool draw_grid
Whether to render the diagram grid.
QET::DiagramArea exported_area
Area of diagrams to be rendered.
Export the diagram along with its border and title block.
bool draw_terminals
Whether to render terminals.