+// Will be called when the user selects an output file via the file dialog.
+// File extension will be added automatically.
+void RenderWidget::slotUpdateButtons(KUrl url) {
+ if (m_view.out_file->url().isEmpty()) m_view.buttonStart->setEnabled(false);
+ else m_view.buttonStart->setEnabled(true);
+ if (url != 0) {
+ QListWidgetItem *item = m_view.size_list->currentItem();
+ QString extension = item->data(ExtensionRole).toString();
+ url = filenameWithExtension(url, extension);
+ m_view.out_file->setUrl(url);
+ }
+}
+
+// Will be called when the user changes the output file path in the text line.
+// File extension must NOT be added, would make editing impossible!