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

#ifndef UI_HOCRBATCHEXPORTDIALOG_HH
#define UI_HOCRBATCHEXPORTDIALOG_HH

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

namespace Ui {
struct HOCRBatchExportDialog {
	Glib::RefPtr<Gtk::Builder> builder;
	Gtk::Image* imageApply = nullptr;
	Gtk::Image* imageClose = nullptr;
	Gtk::Image* imageOpen = nullptr;
	Gtk::Dialog* BatchExportDialog = nullptr;
	Gtk::ProgressBar* progressBar = nullptr;
	Gtk::Button* button1 = nullptr;
	Gtk::Button* button2 = nullptr;
	Gtk::Notebook* tabWidget = nullptr;
	Gtk::Label* labelSourceFolder = nullptr;
	Gtk::Label* labelFormat = nullptr;
	Gtk::Label* labelExportLevel = nullptr;
	Gtk::ComboBox* comboBoxFormat = nullptr;
	Gtk::SpinButton* spinBoxExportLevel = nullptr;
	Gtk::Entry* lineEditSourceFolder = nullptr;
	Gtk::Button* buttonSourceFolder = nullptr;
	Gtk::Frame* frameFiles = nullptr;
	Gtk::Label* labelInput = nullptr;
	Gtk::Label* labelOutput = nullptr;
	Gtk::TreeView* treeViewInput = nullptr;
	Gtk::TreeView* treeViewOutput = nullptr;
	Gtk::Box* boxExportOptions = nullptr;

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

	void setupUi() {
		builder->get_widget("imageApply", imageApply);
		builder->get_widget("imageClose", imageClose);
		builder->get_widget("imageOpen", imageOpen);
		builder->get_widget("BatchExportDialog", BatchExportDialog);
		builder->get_widget("progressBar", progressBar);
		builder->get_widget("button1", button1);
		builder->get_widget("button2", button2);
		builder->get_widget("tabWidget", tabWidget);
		builder->get_widget("labelSourceFolder", labelSourceFolder);
		builder->get_widget("labelFormat", labelFormat);
		builder->get_widget("labelExportLevel", labelExportLevel);
		builder->get_widget("comboBoxFormat", comboBoxFormat);
		builder->get_widget("spinBoxExportLevel", spinBoxExportLevel);
		builder->get_widget("lineEditSourceFolder", lineEditSourceFolder);
		builder->get_widget("buttonSourceFolder", buttonSourceFolder);
		builder->get_widget("frameFiles", frameFiles);
		builder->get_widget("labelInput", labelInput);
		builder->get_widget("labelOutput", labelOutput);
		builder->get_widget("treeViewInput", treeViewInput);
		builder->get_widget("treeViewOutput", treeViewOutput);
		builder->get_widget("boxExportOptions", boxExportOptions);
	}

	~HOCRBatchExportDialog() {
		std::vector<Gtk::Widget*> toplevelWidgets;
		if(!imageApply->get_parent()) toplevelWidgets.push_back(imageApply);
		if(!imageClose->get_parent()) toplevelWidgets.push_back(imageClose);
		if(!imageOpen->get_parent()) toplevelWidgets.push_back(imageOpen);
		if(!BatchExportDialog->get_parent()) toplevelWidgets.push_back(BatchExportDialog);
		if(!progressBar->get_parent()) toplevelWidgets.push_back(progressBar);
		if(!button1->get_parent()) toplevelWidgets.push_back(button1);
		if(!button2->get_parent()) toplevelWidgets.push_back(button2);
		if(!tabWidget->get_parent()) toplevelWidgets.push_back(tabWidget);
		if(!labelSourceFolder->get_parent()) toplevelWidgets.push_back(labelSourceFolder);
		if(!labelFormat->get_parent()) toplevelWidgets.push_back(labelFormat);
		if(!labelExportLevel->get_parent()) toplevelWidgets.push_back(labelExportLevel);
		if(!comboBoxFormat->get_parent()) toplevelWidgets.push_back(comboBoxFormat);
		if(!spinBoxExportLevel->get_parent()) toplevelWidgets.push_back(spinBoxExportLevel);
		if(!lineEditSourceFolder->get_parent()) toplevelWidgets.push_back(lineEditSourceFolder);
		if(!buttonSourceFolder->get_parent()) toplevelWidgets.push_back(buttonSourceFolder);
		if(!frameFiles->get_parent()) toplevelWidgets.push_back(frameFiles);
		if(!labelInput->get_parent()) toplevelWidgets.push_back(labelInput);
		if(!labelOutput->get_parent()) toplevelWidgets.push_back(labelOutput);
		if(!treeViewInput->get_parent()) toplevelWidgets.push_back(treeViewInput);
		if(!treeViewOutput->get_parent()) toplevelWidgets.push_back(treeViewOutput);
		if(!boxExportOptions->get_parent()) toplevelWidgets.push_back(boxExportOptions);
		std::for_each(toplevelWidgets.begin(), toplevelWidgets.end(), [](Gtk::Widget* w) { delete w; });
	}
};
} // Ui
#endif // UI_HOCRBATCHEXPORTDIALOG_HH
