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

#ifndef UI_CONFIGDIALOG_HH
#define UI_CONFIGDIALOG_HH

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

namespace Ui {
struct ConfigDialog {
	Glib::RefPtr<Gtk::Builder> builder;
	Gtk::Image* imageHelp = nullptr;
	Gtk::Image* imageLangsAddCancel = nullptr;
	Gtk::Image* imageLangsAddOk = nullptr;
	Gtk::Image* imageLangsEditAdd = nullptr;
	Gtk::Image* imageLangsEditRemove = nullptr;
	Gtk::Image* imageOk = nullptr;
	Gtk::Dialog* dialogConfig = nullptr;
	Gtk::Button* buttonHelp = nullptr;
	Gtk::Button* buttonOk = nullptr;
	Gtk::Grid* grid = nullptr;
	Gtk::Label* labelPaneorient = nullptr;
	Gtk::ComboBoxText* comboPaneorient = nullptr;
	Gtk::CheckButton* checkDictinstall = nullptr;
	Gtk::CheckButton* checkUpdate = nullptr;
	Gtk::Separator* separatorSep2 = nullptr;
	Gtk::Label* labelLangsPredef = nullptr;
	Gtk::ScrolledWindow* scrollwinLangsPredef = nullptr;
	Gtk::TreeView* treeviewLangsPredef = nullptr;
	Gtk::Label* labelLangsCustom = nullptr;
	Gtk::ScrolledWindow* scrollwinLangsCustom = nullptr;
	Gtk::TreeView* treeviewLangsCustom = nullptr;
	Gtk::ButtonBox* buttonboxLangsEdit = nullptr;
	Gtk::Button* buttonLangsEditAdd = nullptr;
	Gtk::Button* buttonLangsEditRemove = nullptr;
	Gtk::Box* boxLangsAdd = nullptr;
	Gtk::Entry* entryLangsAddPrefix = nullptr;
	Gtk::Entry* entryLangsAddCode = nullptr;
	Gtk::Entry* entryLangsAddName = nullptr;
	Gtk::Button* buttonLangsAddOk = nullptr;
	Gtk::Button* buttonLangsAddCancel = nullptr;
	Gtk::Label* labelOutputfont = nullptr;
	Gtk::Box* boxOutputfont = nullptr;
	Gtk::CheckButton* checkbuttonDefaultoutputfont = nullptr;
	Gtk::FontButton* fontbuttonCustomoutputfont = nullptr;
	Gtk::Label* labelDatadirs = nullptr;
	Gtk::Label* labelTessdatadir = nullptr;
	Gtk::Label* labelSpelldir = nullptr;
	Gtk::Separator* separatorSep3 = nullptr;
	Gtk::ComboBoxText* comboDatadirs = nullptr;
	Gtk::Entry* entryTessdatadir = nullptr;
	Gtk::Entry* entrySpelldir = nullptr;
	Gtk::CheckButton* checkOpenExported = nullptr;

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

	void setupUi() {
		builder->get_widget("imageHelp", imageHelp);
		builder->get_widget("imageLangsAddCancel", imageLangsAddCancel);
		builder->get_widget("imageLangsAddOk", imageLangsAddOk);
		builder->get_widget("imageLangsEditAdd", imageLangsEditAdd);
		builder->get_widget("imageLangsEditRemove", imageLangsEditRemove);
		builder->get_widget("imageOk", imageOk);
		builder->get_widget("dialogConfig", dialogConfig);
		builder->get_widget("buttonHelp", buttonHelp);
		builder->get_widget("buttonOk", buttonOk);
		builder->get_widget("grid", grid);
		builder->get_widget("labelPaneorient", labelPaneorient);
		builder->get_widget("comboPaneorient", comboPaneorient);
		builder->get_widget("checkDictinstall", checkDictinstall);
		builder->get_widget("checkUpdate", checkUpdate);
		builder->get_widget("separatorSep2", separatorSep2);
		builder->get_widget("labelLangsPredef", labelLangsPredef);
		builder->get_widget("scrollwinLangsPredef", scrollwinLangsPredef);
		builder->get_widget("treeviewLangsPredef", treeviewLangsPredef);
		builder->get_widget("labelLangsCustom", labelLangsCustom);
		builder->get_widget("scrollwinLangsCustom", scrollwinLangsCustom);
		builder->get_widget("treeviewLangsCustom", treeviewLangsCustom);
		builder->get_widget("buttonboxLangsEdit", buttonboxLangsEdit);
		builder->get_widget("buttonLangsEditAdd", buttonLangsEditAdd);
		builder->get_widget("buttonLangsEditRemove", buttonLangsEditRemove);
		builder->get_widget("boxLangsAdd", boxLangsAdd);
		builder->get_widget("entryLangsAddPrefix", entryLangsAddPrefix);
		builder->get_widget("entryLangsAddCode", entryLangsAddCode);
		builder->get_widget("entryLangsAddName", entryLangsAddName);
		builder->get_widget("buttonLangsAddOk", buttonLangsAddOk);
		builder->get_widget("buttonLangsAddCancel", buttonLangsAddCancel);
		builder->get_widget("labelOutputfont", labelOutputfont);
		builder->get_widget("boxOutputfont", boxOutputfont);
		builder->get_widget("checkbuttonDefaultoutputfont", checkbuttonDefaultoutputfont);
		builder->get_widget("fontbuttonCustomoutputfont", fontbuttonCustomoutputfont);
		builder->get_widget("labelDatadirs", labelDatadirs);
		builder->get_widget("labelTessdatadir", labelTessdatadir);
		builder->get_widget("labelSpelldir", labelSpelldir);
		builder->get_widget("separatorSep3", separatorSep3);
		builder->get_widget("comboDatadirs", comboDatadirs);
		builder->get_widget("entryTessdatadir", entryTessdatadir);
		builder->get_widget("entrySpelldir", entrySpelldir);
		builder->get_widget("checkOpenExported", checkOpenExported);
	}

	~ConfigDialog() {
		std::vector<Gtk::Widget*> toplevelWidgets;
		if(!imageHelp->get_parent()) toplevelWidgets.push_back(imageHelp);
		if(!imageLangsAddCancel->get_parent()) toplevelWidgets.push_back(imageLangsAddCancel);
		if(!imageLangsAddOk->get_parent()) toplevelWidgets.push_back(imageLangsAddOk);
		if(!imageLangsEditAdd->get_parent()) toplevelWidgets.push_back(imageLangsEditAdd);
		if(!imageLangsEditRemove->get_parent()) toplevelWidgets.push_back(imageLangsEditRemove);
		if(!imageOk->get_parent()) toplevelWidgets.push_back(imageOk);
		if(!dialogConfig->get_parent()) toplevelWidgets.push_back(dialogConfig);
		if(!buttonHelp->get_parent()) toplevelWidgets.push_back(buttonHelp);
		if(!buttonOk->get_parent()) toplevelWidgets.push_back(buttonOk);
		if(!grid->get_parent()) toplevelWidgets.push_back(grid);
		if(!labelPaneorient->get_parent()) toplevelWidgets.push_back(labelPaneorient);
		if(!comboPaneorient->get_parent()) toplevelWidgets.push_back(comboPaneorient);
		if(!checkDictinstall->get_parent()) toplevelWidgets.push_back(checkDictinstall);
		if(!checkUpdate->get_parent()) toplevelWidgets.push_back(checkUpdate);
		if(!separatorSep2->get_parent()) toplevelWidgets.push_back(separatorSep2);
		if(!labelLangsPredef->get_parent()) toplevelWidgets.push_back(labelLangsPredef);
		if(!scrollwinLangsPredef->get_parent()) toplevelWidgets.push_back(scrollwinLangsPredef);
		if(!treeviewLangsPredef->get_parent()) toplevelWidgets.push_back(treeviewLangsPredef);
		if(!labelLangsCustom->get_parent()) toplevelWidgets.push_back(labelLangsCustom);
		if(!scrollwinLangsCustom->get_parent()) toplevelWidgets.push_back(scrollwinLangsCustom);
		if(!treeviewLangsCustom->get_parent()) toplevelWidgets.push_back(treeviewLangsCustom);
		if(!buttonboxLangsEdit->get_parent()) toplevelWidgets.push_back(buttonboxLangsEdit);
		if(!buttonLangsEditAdd->get_parent()) toplevelWidgets.push_back(buttonLangsEditAdd);
		if(!buttonLangsEditRemove->get_parent()) toplevelWidgets.push_back(buttonLangsEditRemove);
		if(!boxLangsAdd->get_parent()) toplevelWidgets.push_back(boxLangsAdd);
		if(!entryLangsAddPrefix->get_parent()) toplevelWidgets.push_back(entryLangsAddPrefix);
		if(!entryLangsAddCode->get_parent()) toplevelWidgets.push_back(entryLangsAddCode);
		if(!entryLangsAddName->get_parent()) toplevelWidgets.push_back(entryLangsAddName);
		if(!buttonLangsAddOk->get_parent()) toplevelWidgets.push_back(buttonLangsAddOk);
		if(!buttonLangsAddCancel->get_parent()) toplevelWidgets.push_back(buttonLangsAddCancel);
		if(!labelOutputfont->get_parent()) toplevelWidgets.push_back(labelOutputfont);
		if(!boxOutputfont->get_parent()) toplevelWidgets.push_back(boxOutputfont);
		if(!checkbuttonDefaultoutputfont->get_parent()) toplevelWidgets.push_back(checkbuttonDefaultoutputfont);
		if(!fontbuttonCustomoutputfont->get_parent()) toplevelWidgets.push_back(fontbuttonCustomoutputfont);
		if(!labelDatadirs->get_parent()) toplevelWidgets.push_back(labelDatadirs);
		if(!labelTessdatadir->get_parent()) toplevelWidgets.push_back(labelTessdatadir);
		if(!labelSpelldir->get_parent()) toplevelWidgets.push_back(labelSpelldir);
		if(!separatorSep3->get_parent()) toplevelWidgets.push_back(separatorSep3);
		if(!comboDatadirs->get_parent()) toplevelWidgets.push_back(comboDatadirs);
		if(!entryTessdatadir->get_parent()) toplevelWidgets.push_back(entryTessdatadir);
		if(!entrySpelldir->get_parent()) toplevelWidgets.push_back(entrySpelldir);
		if(!checkOpenExported->get_parent()) toplevelWidgets.push_back(checkOpenExported);
		std::for_each(toplevelWidgets.begin(), toplevelWidgets.end(), [](Gtk::Widget* w) { delete w; });
	}
};
} // Ui
#endif // UI_CONFIGDIALOG_HH
