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

#ifndef UI_OUTPUTEDITORHOCR_HH
#define UI_OUTPUTEDITORHOCR_HH

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

namespace Ui {
struct OutputEditorHOCR {
	Glib::RefPtr<Gtk::Builder> builder;
	Gtk::Dialog* dialogAddWord = nullptr;
	Gtk::Box* boxAddWord = nullptr;
	Gtk::ButtonBox* buttonBoxAddWord = nullptr;
	Gtk::Button* buttonAddWordCancel = nullptr;
	Gtk::Button* buttonAddWordOk = nullptr;
	Gtk::Label* labelAddWord = nullptr;
	Gtk::Entry* entryAddWord = nullptr;
	Gtk::Image* imageClear = nullptr;
	Gtk::Image* imageCollapseAll = nullptr;
	Gtk::Image* imageExpandAll = nullptr;
	Gtk::Image* imageFindreplace = nullptr;
	Gtk::Image* imageInsertAppend = nullptr;
	Gtk::Image* imageInsertBefore = nullptr;
	Gtk::Menu* menuInsert = nullptr;
	Gtk::ImageMenuItem* menuItemInsertAppend = nullptr;
	Gtk::ImageMenuItem* menuItemInsertBefore = nullptr;
	Gtk::Image* imageNavigationNext = nullptr;
	Gtk::Image* imageNavigationPrev = nullptr;
	Gtk::Image* imagePreview = nullptr;
	Gtk::Image* imageSave = nullptr;
	Gtk::Image* imageSourcesAdd = nullptr;
	Gtk::Image* imageWconf = nullptr;
	Gtk::Menu* menuExport = nullptr;
	Gtk::MenuItem* menuitemExportText = nullptr;
	Gtk::MenuItem* menuitemExportPdf = nullptr;
	Gtk::MenuItem* menuitemExportOdt = nullptr;
	Gtk::Menu* menuOpen = nullptr;
	Gtk::MenuItem* menuItemOpenAppend = nullptr;
	Gtk::MenuItem* menuItemOpenInsert = nullptr;
	Gtk::Box* boxEditorHOCR = nullptr;
	Gtk::Box* boxactions = nullptr;
	Gtk::MenuButton* menubuttonInsert = nullptr;
	Gtk::Box* boxInsert = nullptr;
	Gtk::Image* imageInsert = nullptr;
	Gtk::Arrow* arrowInsert = nullptr;
	Gtk::Box* boxOpen = nullptr;
	Gtk::Button* buttonOpen = nullptr;
	Gtk::MenuButton* menubuttonOpen = nullptr;
	Gtk::Arrow* arrowOpen = nullptr;
	Gtk::Button* buttonSave = nullptr;
	Gtk::MenuButton* buttonExport = nullptr;
	Gtk::Box* boxExport = nullptr;
	Gtk::Image* imageExport = nullptr;
	Gtk::Arrow* arrowExport = nullptr;
	Gtk::Button* buttonClear = nullptr;
	Gtk::ToggleButton* buttonFindreplace = nullptr;
	Gtk::ToggleButton* buttonWconf = nullptr;
	Gtk::ToggleButton* buttonPreview = nullptr;
	Gtk::Box* boxSearch = nullptr;
	Gtk::Paned* paned = nullptr;
	Gtk::Box* boxItems = nullptr;
	Gtk::ScrolledWindow* scrolledwindowItems = nullptr;
	Gtk::TreeView* treeviewItems = nullptr;
	Gtk::Box* boxNavigation = nullptr;
	Gtk::ComboBox* comboNavigation = nullptr;
	Gtk::Separator* sep1 = nullptr;
	Gtk::Button* buttonNavigationNext = nullptr;
	Gtk::Button* buttonNavigationPrev = nullptr;
	Gtk::Separator* sep2 = nullptr;
	Gtk::Button* buttonExpandAll = nullptr;
	Gtk::Button* buttonCollapseAll = nullptr;
	Gtk::Notebook* notebook = nullptr;
	Gtk::ScrolledWindow* scrolledwindowProperties = nullptr;
	Gtk::TreeView* treeviewProperties = nullptr;
	Gtk::Label* labelProperties = nullptr;
	Gtk::ScrolledWindow* scrolledwindowSource = nullptr;
	Gsv::View* textviewSource = nullptr;
	Gtk::Label* labelSource = nullptr;

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

	void setupUi() {
		builder->get_widget("dialogAddWord", dialogAddWord);
		builder->get_widget("boxAddWord", boxAddWord);
		builder->get_widget("buttonBoxAddWord", buttonBoxAddWord);
		builder->get_widget("buttonAddWordCancel", buttonAddWordCancel);
		builder->get_widget("buttonAddWordOk", buttonAddWordOk);
		builder->get_widget("labelAddWord", labelAddWord);
		builder->get_widget("entryAddWord", entryAddWord);
		builder->get_widget("imageClear", imageClear);
		builder->get_widget("imageCollapseAll", imageCollapseAll);
		imageCollapseAll->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/collapse.png"));
		builder->get_widget("imageExpandAll", imageExpandAll);
		imageExpandAll->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/expand.png"));
		builder->get_widget("imageFindreplace", imageFindreplace);
		builder->get_widget("imageInsertAppend", imageInsertAppend);
		imageInsertAppend->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/ins_hocr_append.png"));
		builder->get_widget("imageInsertBefore", imageInsertBefore);
		imageInsertBefore->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/ins_hocr_before.png"));
		builder->get_widget("menuInsert", menuInsert);
		builder->get_widget("menuItemInsertAppend", menuItemInsertAppend);
		builder->get_widget("menuItemInsertBefore", menuItemInsertBefore);
		builder->get_widget("imageNavigationNext", imageNavigationNext);
		builder->get_widget("imageNavigationPrev", imageNavigationPrev);
		builder->get_widget("imagePreview", imagePreview);
		builder->get_widget("imageSave", imageSave);
		builder->get_widget("imageSourcesAdd", imageSourcesAdd);
		builder->get_widget("imageWconf", imageWconf);
		imageWconf->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/wconf.png"));
		builder->get_widget("menuExport", menuExport);
		builder->get_widget("menuitemExportText", menuitemExportText);
		builder->get_widget("menuitemExportPdf", menuitemExportPdf);
		builder->get_widget("menuitemExportOdt", menuitemExportOdt);
		builder->get_widget("menuOpen", menuOpen);
		builder->get_widget("menuItemOpenAppend", menuItemOpenAppend);
		builder->get_widget("menuItemOpenInsert", menuItemOpenInsert);
		builder->get_widget("boxEditorHOCR", boxEditorHOCR);
		builder->get_widget("boxactions", boxactions);
		builder->get_widget("menubuttonInsert", menubuttonInsert);
		builder->get_widget("boxInsert", boxInsert);
		builder->get_widget("imageInsert", imageInsert);
		imageInsert->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/ins_append.png"));
		builder->get_widget("arrowInsert", arrowInsert);
		builder->get_widget("boxOpen", boxOpen);
		builder->get_widget("buttonOpen", buttonOpen);
		builder->get_widget("menubuttonOpen", menubuttonOpen);
		builder->get_widget("arrowOpen", arrowOpen);
		builder->get_widget("buttonSave", buttonSave);
		builder->get_widget("buttonExport", buttonExport);
		builder->get_widget("boxExport", boxExport);
		builder->get_widget("imageExport", imageExport);
		builder->get_widget("arrowExport", arrowExport);
		builder->get_widget("buttonClear", buttonClear);
		builder->get_widget("buttonFindreplace", buttonFindreplace);
		builder->get_widget("buttonWconf", buttonWconf);
		builder->get_widget("buttonPreview", buttonPreview);
		builder->get_widget("boxSearch", boxSearch);
		builder->get_widget("paned", paned);
		builder->get_widget("boxItems", boxItems);
		builder->get_widget("scrolledwindowItems", scrolledwindowItems);
		builder->get_widget("treeviewItems", treeviewItems);
		builder->get_widget("boxNavigation", boxNavigation);
		builder->get_widget("comboNavigation", comboNavigation);
		builder->get_widget("sep1", sep1);
		builder->get_widget("buttonNavigationNext", buttonNavigationNext);
		builder->get_widget("buttonNavigationPrev", buttonNavigationPrev);
		builder->get_widget("sep2", sep2);
		builder->get_widget("buttonExpandAll", buttonExpandAll);
		builder->get_widget("buttonCollapseAll", buttonCollapseAll);
		builder->get_widget("notebook", notebook);
		builder->get_widget("scrolledwindowProperties", scrolledwindowProperties);
		builder->get_widget("treeviewProperties", treeviewProperties);
		builder->get_widget("labelProperties", labelProperties);
		builder->get_widget("scrolledwindowSource", scrolledwindowSource);
		builder->get_widget("textviewSource", textviewSource);
		builder->get_widget("labelSource", labelSource);
	}

	~OutputEditorHOCR() {
		std::vector<Gtk::Widget*> toplevelWidgets;
		if(!dialogAddWord->get_parent()) toplevelWidgets.push_back(dialogAddWord);
		if(!boxAddWord->get_parent()) toplevelWidgets.push_back(boxAddWord);
		if(!buttonBoxAddWord->get_parent()) toplevelWidgets.push_back(buttonBoxAddWord);
		if(!buttonAddWordCancel->get_parent()) toplevelWidgets.push_back(buttonAddWordCancel);
		if(!buttonAddWordOk->get_parent()) toplevelWidgets.push_back(buttonAddWordOk);
		if(!labelAddWord->get_parent()) toplevelWidgets.push_back(labelAddWord);
		if(!entryAddWord->get_parent()) toplevelWidgets.push_back(entryAddWord);
		if(!imageClear->get_parent()) toplevelWidgets.push_back(imageClear);
		if(!imageCollapseAll->get_parent()) toplevelWidgets.push_back(imageCollapseAll);
		if(!imageExpandAll->get_parent()) toplevelWidgets.push_back(imageExpandAll);
		if(!imageFindreplace->get_parent()) toplevelWidgets.push_back(imageFindreplace);
		if(!imageInsertAppend->get_parent()) toplevelWidgets.push_back(imageInsertAppend);
		if(!imageInsertBefore->get_parent()) toplevelWidgets.push_back(imageInsertBefore);
		if(!menuInsert->get_parent()) toplevelWidgets.push_back(menuInsert);
		if(!menuItemInsertAppend->get_parent()) toplevelWidgets.push_back(menuItemInsertAppend);
		if(!menuItemInsertBefore->get_parent()) toplevelWidgets.push_back(menuItemInsertBefore);
		if(!imageNavigationNext->get_parent()) toplevelWidgets.push_back(imageNavigationNext);
		if(!imageNavigationPrev->get_parent()) toplevelWidgets.push_back(imageNavigationPrev);
		if(!imagePreview->get_parent()) toplevelWidgets.push_back(imagePreview);
		if(!imageSave->get_parent()) toplevelWidgets.push_back(imageSave);
		if(!imageSourcesAdd->get_parent()) toplevelWidgets.push_back(imageSourcesAdd);
		if(!imageWconf->get_parent()) toplevelWidgets.push_back(imageWconf);
		if(!menuExport->get_parent()) toplevelWidgets.push_back(menuExport);
		if(!menuitemExportText->get_parent()) toplevelWidgets.push_back(menuitemExportText);
		if(!menuitemExportPdf->get_parent()) toplevelWidgets.push_back(menuitemExportPdf);
		if(!menuitemExportOdt->get_parent()) toplevelWidgets.push_back(menuitemExportOdt);
		if(!menuOpen->get_parent()) toplevelWidgets.push_back(menuOpen);
		if(!menuItemOpenAppend->get_parent()) toplevelWidgets.push_back(menuItemOpenAppend);
		if(!menuItemOpenInsert->get_parent()) toplevelWidgets.push_back(menuItemOpenInsert);
		if(!boxEditorHOCR->get_parent()) toplevelWidgets.push_back(boxEditorHOCR);
		if(!boxactions->get_parent()) toplevelWidgets.push_back(boxactions);
		if(!menubuttonInsert->get_parent()) toplevelWidgets.push_back(menubuttonInsert);
		if(!boxInsert->get_parent()) toplevelWidgets.push_back(boxInsert);
		if(!imageInsert->get_parent()) toplevelWidgets.push_back(imageInsert);
		if(!arrowInsert->get_parent()) toplevelWidgets.push_back(arrowInsert);
		if(!boxOpen->get_parent()) toplevelWidgets.push_back(boxOpen);
		if(!buttonOpen->get_parent()) toplevelWidgets.push_back(buttonOpen);
		if(!menubuttonOpen->get_parent()) toplevelWidgets.push_back(menubuttonOpen);
		if(!arrowOpen->get_parent()) toplevelWidgets.push_back(arrowOpen);
		if(!buttonSave->get_parent()) toplevelWidgets.push_back(buttonSave);
		if(!buttonExport->get_parent()) toplevelWidgets.push_back(buttonExport);
		if(!boxExport->get_parent()) toplevelWidgets.push_back(boxExport);
		if(!imageExport->get_parent()) toplevelWidgets.push_back(imageExport);
		if(!arrowExport->get_parent()) toplevelWidgets.push_back(arrowExport);
		if(!buttonClear->get_parent()) toplevelWidgets.push_back(buttonClear);
		if(!buttonFindreplace->get_parent()) toplevelWidgets.push_back(buttonFindreplace);
		if(!buttonWconf->get_parent()) toplevelWidgets.push_back(buttonWconf);
		if(!buttonPreview->get_parent()) toplevelWidgets.push_back(buttonPreview);
		if(!boxSearch->get_parent()) toplevelWidgets.push_back(boxSearch);
		if(!paned->get_parent()) toplevelWidgets.push_back(paned);
		if(!boxItems->get_parent()) toplevelWidgets.push_back(boxItems);
		if(!scrolledwindowItems->get_parent()) toplevelWidgets.push_back(scrolledwindowItems);
		if(!treeviewItems->get_parent()) toplevelWidgets.push_back(treeviewItems);
		if(!boxNavigation->get_parent()) toplevelWidgets.push_back(boxNavigation);
		if(!comboNavigation->get_parent()) toplevelWidgets.push_back(comboNavigation);
		if(!sep1->get_parent()) toplevelWidgets.push_back(sep1);
		if(!buttonNavigationNext->get_parent()) toplevelWidgets.push_back(buttonNavigationNext);
		if(!buttonNavigationPrev->get_parent()) toplevelWidgets.push_back(buttonNavigationPrev);
		if(!sep2->get_parent()) toplevelWidgets.push_back(sep2);
		if(!buttonExpandAll->get_parent()) toplevelWidgets.push_back(buttonExpandAll);
		if(!buttonCollapseAll->get_parent()) toplevelWidgets.push_back(buttonCollapseAll);
		if(!notebook->get_parent()) toplevelWidgets.push_back(notebook);
		if(!scrolledwindowProperties->get_parent()) toplevelWidgets.push_back(scrolledwindowProperties);
		if(!treeviewProperties->get_parent()) toplevelWidgets.push_back(treeviewProperties);
		if(!labelProperties->get_parent()) toplevelWidgets.push_back(labelProperties);
		if(!scrolledwindowSource->get_parent()) toplevelWidgets.push_back(scrolledwindowSource);
		if(!textviewSource->get_parent()) toplevelWidgets.push_back(textviewSource);
		if(!labelSource->get_parent()) toplevelWidgets.push_back(labelSource);
		std::for_each(toplevelWidgets.begin(), toplevelWidgets.end(), [](Gtk::Widget* w) { delete w; });
	}
};
} // Ui
#endif // UI_OUTPUTEDITORHOCR_HH
