// This file was autogenerated from /build/gimagereader/src/gimagereader-3.4.3/gtk/data/PdfExportWidget.ui

#ifndef UI_PDFEXPORTWIDGET_HH
#define UI_PDFEXPORTWIDGET_HH

#include <vector>
#include <gtkmm.h>

namespace Ui {
struct PdfExportWidget {
	Glib::RefPtr<Gtk::Builder> builder;
	Gtk::Image* imageLandscape = nullptr;
	Gtk::Image* imagePortrait = nullptr;
	Gtk::Box* pdfExportWidget = nullptr;
	Gtk::CheckButton* checkboxPreview = nullptr;
	Gtk::Notebook* notebook = nullptr;
	Gtk::Grid* grid = nullptr;
	Gtk::Label* labelMode = nullptr;
	Gtk::ComboBoxText* comboMode = nullptr;
	Gtk::Frame* frameImagesettings = nullptr;
	Gtk::Alignment* alignmentImagesettings = nullptr;
	Gtk::Grid* gridImagesettings = nullptr;
	Gtk::ComboBox* comboImageformat = nullptr;
	Gtk::Label* labelImageformat = nullptr;
	Gtk::Label* labelCompression = nullptr;
	Gtk::ComboBox* comboCompression = nullptr;
	Gtk::Label* labelQuality = nullptr;
	Gtk::SpinButton* spinQuality = nullptr;
	Gtk::Label* labelDpi = nullptr;
	Gtk::SpinButton* spinDpi = nullptr;
	Gtk::Label* labelDithering = nullptr;
	Gtk::ComboBox* comboDithering = nullptr;
	Gtk::Label* labelImagesettings = nullptr;
	Gtk::Frame* frameTextsettings = nullptr;
	Gtk::Alignment* alignmentTextsettings = nullptr;
	Gtk::Grid* gridTextsettings = nullptr;
	Gtk::CheckButton* checkboxUniformlinespacing = nullptr;
	Gtk::CheckButton* checkboxOverridefontfamily = nullptr;
	Gtk::Label* labelFallbackfontfamily = nullptr;
	Gtk::CheckButton* checkboxOverridefontsize = nullptr;
	Gtk::Label* labelFontscale = nullptr;
	Gtk::SpinButton* spinFontscale = nullptr;
	Gtk::Label* labelPt = nullptr;
	Gtk::SpinButton* spinOverridefontsize = nullptr;
	Gtk::Label* labelPercent = nullptr;
	Gtk::Label* labelPreserve = nullptr;
	Gtk::SpinButton* spinPreserve = nullptr;
	Gtk::Label* labelPreserve2 = nullptr;
	Gtk::ComboBox* comboOverridefontfamily = nullptr;
	Gtk::ComboBox* comboFallbackfontfamily = nullptr;
	Gtk::CheckButton* checkboxSanitizeHyphens = nullptr;
	Gtk::Label* labelTextsettings = nullptr;
	Gtk::Label* labelPaperSize = nullptr;
	Gtk::Box* boxPaperFormat = nullptr;
	Gtk::ComboBox* comboPaperFormat = nullptr;
	Gtk::Box* boxPaperOrientation = nullptr;
	Gtk::ToggleButton* buttonPortrait = nullptr;
	Gtk::ToggleButton* buttonLandscape = nullptr;
	Gtk::Box* boxPaperSize = nullptr;
	Gtk::Entry* entryPaperWidth = nullptr;
	Gtk::Label* labelX = nullptr;
	Gtk::Entry* entryPaperHeight = nullptr;
	Gtk::ComboBox* comboPaperSizeUnit = nullptr;
	Gtk::Box* boxPaperSizeDpi = nullptr;
	Gtk::Label* labelPaperSizeDpi = nullptr;
	Gtk::SpinButton* spinBoxPaperSizeDpi = nullptr;
	Gtk::Label* labelBasic = nullptr;
	Gtk::Box* boxAdvanced = nullptr;
	Gtk::Box* boxPdfVersion = nullptr;
	Gtk::Label* labelPdfVersion = nullptr;
	Gtk::ComboBox* comboPdfVersion = nullptr;
	Gtk::Frame* frameEncryption = nullptr;
	Gtk::Alignment* alignmentEncryption = nullptr;
	Gtk::Grid* gridEncryption = nullptr;
	Gtk::Label* labelEncryptionPassword = nullptr;
	Gtk::Label* labelEncryptionConfirm = nullptr;
	Gtk::Entry* entryEncryptionPassword = nullptr;
	Gtk::Entry* entryEncryptionConfirm = nullptr;
	Gtk::Label* labelEncryption = nullptr;
	Gtk::Frame* frameMetadata = nullptr;
	Gtk::Alignment* alignmentMetadata = nullptr;
	Gtk::Grid* gridMetadata = nullptr;
	Gtk::Label* labelMetadataAuthor = nullptr;
	Gtk::Label* labelMetadataTitle = nullptr;
	Gtk::Label* labelMetadataSubject = nullptr;
	Gtk::Label* labelMetadataCreator = nullptr;
	Gtk::Label* labelMetadataProducer = nullptr;
	Gtk::Label* labelMetadataKeywords = nullptr;
	Gtk::Entry* entryMetadataAuthor = nullptr;
	Gtk::Entry* entryMetadataSubject = nullptr;
	Gtk::Entry* entryMetadataTitle = nullptr;
	Gtk::Entry* entryMetadataCreator = nullptr;
	Gtk::Entry* entryMetadataProducer = nullptr;
	Gtk::Entry* entryMetadataKeywords = nullptr;
	Gtk::Label* labelMetadata = nullptr;
	Gtk::Button* buttonImportFromSource = nullptr;
	Gtk::Label* labelAdvanced = nullptr;

	PdfExportWidget() {
		builder = Gtk::Builder::create_from_resource("/org/gnome/gimagereader/PdfExportWidget.ui");
		builder->set_translation_domain(GETTEXT_PACKAGE);
	}

	void setupUi() {
		builder->get_widget("imageLandscape", imageLandscape);
		imageLandscape->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/landscape.png"));
		builder->get_widget("imagePortrait", imagePortrait);
		imagePortrait->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/portrait.png"));
		builder->get_widget("pdfExportWidget", pdfExportWidget);
		builder->get_widget("checkboxPreview", checkboxPreview);
		builder->get_widget("notebook", notebook);
		builder->get_widget("grid", grid);
		builder->get_widget("labelMode", labelMode);
		builder->get_widget("comboMode", comboMode);
		builder->get_widget("frameImagesettings", frameImagesettings);
		builder->get_widget("alignmentImagesettings", alignmentImagesettings);
		builder->get_widget("gridImagesettings", gridImagesettings);
		builder->get_widget("comboImageformat", comboImageformat);
		builder->get_widget("labelImageformat", labelImageformat);
		builder->get_widget("labelCompression", labelCompression);
		builder->get_widget("comboCompression", comboCompression);
		builder->get_widget("labelQuality", labelQuality);
		builder->get_widget("spinQuality", spinQuality);
		builder->get_widget("labelDpi", labelDpi);
		builder->get_widget("spinDpi", spinDpi);
		builder->get_widget("labelDithering", labelDithering);
		builder->get_widget("comboDithering", comboDithering);
		builder->get_widget("labelImagesettings", labelImagesettings);
		builder->get_widget("frameTextsettings", frameTextsettings);
		builder->get_widget("alignmentTextsettings", alignmentTextsettings);
		builder->get_widget("gridTextsettings", gridTextsettings);
		builder->get_widget("checkboxUniformlinespacing", checkboxUniformlinespacing);
		builder->get_widget("checkboxOverridefontfamily", checkboxOverridefontfamily);
		builder->get_widget("labelFallbackfontfamily", labelFallbackfontfamily);
		builder->get_widget("checkboxOverridefontsize", checkboxOverridefontsize);
		builder->get_widget("labelFontscale", labelFontscale);
		builder->get_widget("spinFontscale", spinFontscale);
		builder->get_widget("labelPt", labelPt);
		builder->get_widget("spinOverridefontsize", spinOverridefontsize);
		builder->get_widget("labelPercent", labelPercent);
		builder->get_widget("labelPreserve", labelPreserve);
		builder->get_widget("spinPreserve", spinPreserve);
		builder->get_widget("labelPreserve2", labelPreserve2);
		builder->get_widget("comboOverridefontfamily", comboOverridefontfamily);
		builder->get_widget("comboFallbackfontfamily", comboFallbackfontfamily);
		builder->get_widget("checkboxSanitizeHyphens", checkboxSanitizeHyphens);
		builder->get_widget("labelTextsettings", labelTextsettings);
		builder->get_widget("labelPaperSize", labelPaperSize);
		builder->get_widget("boxPaperFormat", boxPaperFormat);
		builder->get_widget("comboPaperFormat", comboPaperFormat);
		builder->get_widget("boxPaperOrientation", boxPaperOrientation);
		builder->get_widget("buttonPortrait", buttonPortrait);
		builder->get_widget("buttonLandscape", buttonLandscape);
		builder->get_widget("boxPaperSize", boxPaperSize);
		builder->get_widget("entryPaperWidth", entryPaperWidth);
		builder->get_widget("labelX", labelX);
		builder->get_widget("entryPaperHeight", entryPaperHeight);
		builder->get_widget("comboPaperSizeUnit", comboPaperSizeUnit);
		builder->get_widget("boxPaperSizeDpi", boxPaperSizeDpi);
		builder->get_widget("labelPaperSizeDpi", labelPaperSizeDpi);
		builder->get_widget("spinBoxPaperSizeDpi", spinBoxPaperSizeDpi);
		builder->get_widget("labelBasic", labelBasic);
		builder->get_widget("boxAdvanced", boxAdvanced);
		builder->get_widget("boxPdfVersion", boxPdfVersion);
		builder->get_widget("labelPdfVersion", labelPdfVersion);
		builder->get_widget("comboPdfVersion", comboPdfVersion);
		builder->get_widget("frameEncryption", frameEncryption);
		builder->get_widget("alignmentEncryption", alignmentEncryption);
		builder->get_widget("gridEncryption", gridEncryption);
		builder->get_widget("labelEncryptionPassword", labelEncryptionPassword);
		builder->get_widget("labelEncryptionConfirm", labelEncryptionConfirm);
		builder->get_widget("entryEncryptionPassword", entryEncryptionPassword);
		builder->get_widget("entryEncryptionConfirm", entryEncryptionConfirm);
		builder->get_widget("labelEncryption", labelEncryption);
		builder->get_widget("frameMetadata", frameMetadata);
		builder->get_widget("alignmentMetadata", alignmentMetadata);
		builder->get_widget("gridMetadata", gridMetadata);
		builder->get_widget("labelMetadataAuthor", labelMetadataAuthor);
		builder->get_widget("labelMetadataTitle", labelMetadataTitle);
		builder->get_widget("labelMetadataSubject", labelMetadataSubject);
		builder->get_widget("labelMetadataCreator", labelMetadataCreator);
		builder->get_widget("labelMetadataProducer", labelMetadataProducer);
		builder->get_widget("labelMetadataKeywords", labelMetadataKeywords);
		builder->get_widget("entryMetadataAuthor", entryMetadataAuthor);
		builder->get_widget("entryMetadataSubject", entryMetadataSubject);
		builder->get_widget("entryMetadataTitle", entryMetadataTitle);
		builder->get_widget("entryMetadataCreator", entryMetadataCreator);
		builder->get_widget("entryMetadataProducer", entryMetadataProducer);
		builder->get_widget("entryMetadataKeywords", entryMetadataKeywords);
		builder->get_widget("labelMetadata", labelMetadata);
		builder->get_widget("buttonImportFromSource", buttonImportFromSource);
		builder->get_widget("labelAdvanced", labelAdvanced);
	}

	~PdfExportWidget() {
		std::vector<Gtk::Widget*> toplevelWidgets;
		if(!imageLandscape->get_parent()) toplevelWidgets.push_back(imageLandscape);
		if(!imagePortrait->get_parent()) toplevelWidgets.push_back(imagePortrait);
		if(!pdfExportWidget->get_parent()) toplevelWidgets.push_back(pdfExportWidget);
		if(!checkboxPreview->get_parent()) toplevelWidgets.push_back(checkboxPreview);
		if(!notebook->get_parent()) toplevelWidgets.push_back(notebook);
		if(!grid->get_parent()) toplevelWidgets.push_back(grid);
		if(!labelMode->get_parent()) toplevelWidgets.push_back(labelMode);
		if(!comboMode->get_parent()) toplevelWidgets.push_back(comboMode);
		if(!frameImagesettings->get_parent()) toplevelWidgets.push_back(frameImagesettings);
		if(!alignmentImagesettings->get_parent()) toplevelWidgets.push_back(alignmentImagesettings);
		if(!gridImagesettings->get_parent()) toplevelWidgets.push_back(gridImagesettings);
		if(!comboImageformat->get_parent()) toplevelWidgets.push_back(comboImageformat);
		if(!labelImageformat->get_parent()) toplevelWidgets.push_back(labelImageformat);
		if(!labelCompression->get_parent()) toplevelWidgets.push_back(labelCompression);
		if(!comboCompression->get_parent()) toplevelWidgets.push_back(comboCompression);
		if(!labelQuality->get_parent()) toplevelWidgets.push_back(labelQuality);
		if(!spinQuality->get_parent()) toplevelWidgets.push_back(spinQuality);
		if(!labelDpi->get_parent()) toplevelWidgets.push_back(labelDpi);
		if(!spinDpi->get_parent()) toplevelWidgets.push_back(spinDpi);
		if(!labelDithering->get_parent()) toplevelWidgets.push_back(labelDithering);
		if(!comboDithering->get_parent()) toplevelWidgets.push_back(comboDithering);
		if(!labelImagesettings->get_parent()) toplevelWidgets.push_back(labelImagesettings);
		if(!frameTextsettings->get_parent()) toplevelWidgets.push_back(frameTextsettings);
		if(!alignmentTextsettings->get_parent()) toplevelWidgets.push_back(alignmentTextsettings);
		if(!gridTextsettings->get_parent()) toplevelWidgets.push_back(gridTextsettings);
		if(!checkboxUniformlinespacing->get_parent()) toplevelWidgets.push_back(checkboxUniformlinespacing);
		if(!checkboxOverridefontfamily->get_parent()) toplevelWidgets.push_back(checkboxOverridefontfamily);
		if(!labelFallbackfontfamily->get_parent()) toplevelWidgets.push_back(labelFallbackfontfamily);
		if(!checkboxOverridefontsize->get_parent()) toplevelWidgets.push_back(checkboxOverridefontsize);
		if(!labelFontscale->get_parent()) toplevelWidgets.push_back(labelFontscale);
		if(!spinFontscale->get_parent()) toplevelWidgets.push_back(spinFontscale);
		if(!labelPt->get_parent()) toplevelWidgets.push_back(labelPt);
		if(!spinOverridefontsize->get_parent()) toplevelWidgets.push_back(spinOverridefontsize);
		if(!labelPercent->get_parent()) toplevelWidgets.push_back(labelPercent);
		if(!labelPreserve->get_parent()) toplevelWidgets.push_back(labelPreserve);
		if(!spinPreserve->get_parent()) toplevelWidgets.push_back(spinPreserve);
		if(!labelPreserve2->get_parent()) toplevelWidgets.push_back(labelPreserve2);
		if(!comboOverridefontfamily->get_parent()) toplevelWidgets.push_back(comboOverridefontfamily);
		if(!comboFallbackfontfamily->get_parent()) toplevelWidgets.push_back(comboFallbackfontfamily);
		if(!checkboxSanitizeHyphens->get_parent()) toplevelWidgets.push_back(checkboxSanitizeHyphens);
		if(!labelTextsettings->get_parent()) toplevelWidgets.push_back(labelTextsettings);
		if(!labelPaperSize->get_parent()) toplevelWidgets.push_back(labelPaperSize);
		if(!boxPaperFormat->get_parent()) toplevelWidgets.push_back(boxPaperFormat);
		if(!comboPaperFormat->get_parent()) toplevelWidgets.push_back(comboPaperFormat);
		if(!boxPaperOrientation->get_parent()) toplevelWidgets.push_back(boxPaperOrientation);
		if(!buttonPortrait->get_parent()) toplevelWidgets.push_back(buttonPortrait);
		if(!buttonLandscape->get_parent()) toplevelWidgets.push_back(buttonLandscape);
		if(!boxPaperSize->get_parent()) toplevelWidgets.push_back(boxPaperSize);
		if(!entryPaperWidth->get_parent()) toplevelWidgets.push_back(entryPaperWidth);
		if(!labelX->get_parent()) toplevelWidgets.push_back(labelX);
		if(!entryPaperHeight->get_parent()) toplevelWidgets.push_back(entryPaperHeight);
		if(!comboPaperSizeUnit->get_parent()) toplevelWidgets.push_back(comboPaperSizeUnit);
		if(!boxPaperSizeDpi->get_parent()) toplevelWidgets.push_back(boxPaperSizeDpi);
		if(!labelPaperSizeDpi->get_parent()) toplevelWidgets.push_back(labelPaperSizeDpi);
		if(!spinBoxPaperSizeDpi->get_parent()) toplevelWidgets.push_back(spinBoxPaperSizeDpi);
		if(!labelBasic->get_parent()) toplevelWidgets.push_back(labelBasic);
		if(!boxAdvanced->get_parent()) toplevelWidgets.push_back(boxAdvanced);
		if(!boxPdfVersion->get_parent()) toplevelWidgets.push_back(boxPdfVersion);
		if(!labelPdfVersion->get_parent()) toplevelWidgets.push_back(labelPdfVersion);
		if(!comboPdfVersion->get_parent()) toplevelWidgets.push_back(comboPdfVersion);
		if(!frameEncryption->get_parent()) toplevelWidgets.push_back(frameEncryption);
		if(!alignmentEncryption->get_parent()) toplevelWidgets.push_back(alignmentEncryption);
		if(!gridEncryption->get_parent()) toplevelWidgets.push_back(gridEncryption);
		if(!labelEncryptionPassword->get_parent()) toplevelWidgets.push_back(labelEncryptionPassword);
		if(!labelEncryptionConfirm->get_parent()) toplevelWidgets.push_back(labelEncryptionConfirm);
		if(!entryEncryptionPassword->get_parent()) toplevelWidgets.push_back(entryEncryptionPassword);
		if(!entryEncryptionConfirm->get_parent()) toplevelWidgets.push_back(entryEncryptionConfirm);
		if(!labelEncryption->get_parent()) toplevelWidgets.push_back(labelEncryption);
		if(!frameMetadata->get_parent()) toplevelWidgets.push_back(frameMetadata);
		if(!alignmentMetadata->get_parent()) toplevelWidgets.push_back(alignmentMetadata);
		if(!gridMetadata->get_parent()) toplevelWidgets.push_back(gridMetadata);
		if(!labelMetadataAuthor->get_parent()) toplevelWidgets.push_back(labelMetadataAuthor);
		if(!labelMetadataTitle->get_parent()) toplevelWidgets.push_back(labelMetadataTitle);
		if(!labelMetadataSubject->get_parent()) toplevelWidgets.push_back(labelMetadataSubject);
		if(!labelMetadataCreator->get_parent()) toplevelWidgets.push_back(labelMetadataCreator);
		if(!labelMetadataProducer->get_parent()) toplevelWidgets.push_back(labelMetadataProducer);
		if(!labelMetadataKeywords->get_parent()) toplevelWidgets.push_back(labelMetadataKeywords);
		if(!entryMetadataAuthor->get_parent()) toplevelWidgets.push_back(entryMetadataAuthor);
		if(!entryMetadataSubject->get_parent()) toplevelWidgets.push_back(entryMetadataSubject);
		if(!entryMetadataTitle->get_parent()) toplevelWidgets.push_back(entryMetadataTitle);
		if(!entryMetadataCreator->get_parent()) toplevelWidgets.push_back(entryMetadataCreator);
		if(!entryMetadataProducer->get_parent()) toplevelWidgets.push_back(entryMetadataProducer);
		if(!entryMetadataKeywords->get_parent()) toplevelWidgets.push_back(entryMetadataKeywords);
		if(!labelMetadata->get_parent()) toplevelWidgets.push_back(labelMetadata);
		if(!buttonImportFromSource->get_parent()) toplevelWidgets.push_back(buttonImportFromSource);
		if(!labelAdvanced->get_parent()) toplevelWidgets.push_back(labelAdvanced);
		std::for_each(toplevelWidgets.begin(), toplevelWidgets.end(), [](Gtk::Widget* w) { delete w; });
	}
};
} // Ui
#endif // UI_PDFEXPORTWIDGET_HH
