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

#ifndef UI_OUTPUTEDITORTEXT_HH
#define UI_OUTPUTEDITORTEXT_HH

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

namespace Ui {
struct OutputEditorText {
	Glib::RefPtr<Gtk::Builder> builder;
	Gtk::Image* imageAddTab = nullptr;
	Gtk::Image* imageClear = nullptr;
	Gtk::Image* imageFindreplace = nullptr;
	Gtk::Image* imageInsertAppend = nullptr;
	Gtk::Image* imageInsertCursor = nullptr;
	Gtk::Image* imageInsertReplace = nullptr;
	Gtk::Menu* menuInsert = nullptr;
	Gtk::ImageMenuItem* menuitemInsertAppend = nullptr;
	Gtk::ImageMenuItem* menuitemInsertCursor = nullptr;
	Gtk::ImageMenuItem* menuitemInsertReplace = nullptr;
	Gtk::Image* imageOpen = nullptr;
	Gtk::Image* imageRedo = nullptr;
	Gtk::Image* imageSave = nullptr;
	Gtk::Image* imageStripcrlf = nullptr;
	Gtk::Image* imageUndo = nullptr;
	Gtk::Menu* menuStripcrlf = nullptr;
	Gtk::MenuItem* menuitemStripcrlfTitle = nullptr;
	Gtk::CheckMenuItem* menuitemStripcrlfKeependmark = nullptr;
	Gtk::CheckMenuItem* menuitemStripcrlfKeepquote = nullptr;
	Gtk::SeparatorMenuItem* menuitemStripcrlfSep = nullptr;
	Gtk::MenuItem* menuitemStripcrlfTitle2 = nullptr;
	Gtk::CheckMenuItem* menuitemStripcrlfJoinhyphen = nullptr;
	Gtk::CheckMenuItem* menuitemStripcrlfJoinspace = nullptr;
	Gtk::CheckMenuItem* menuitemStripcrlfKeepparagraphs = nullptr;
	Gtk::SeparatorMenuItem* menuitemStripcrlfSep2 = nullptr;
	Gtk::MenuItem* menuitemStripcrlfTitle3 = nullptr;
	Gtk::CheckMenuItem* menuitemStripcrlfDrawwhitespace = nullptr;
	Gtk::Box* boxEditorText = nullptr;
	Gtk::Box* boxActions = nullptr;
	Gtk::Box* boxOpen = nullptr;
	Gtk::Button* buttonOpen = nullptr;
	Gtk::MenuButton* menuButtonOpenRecent = nullptr;
	Gtk::Arrow* arrowOpenRecent = nullptr;
	Gtk::Button* buttonSave = nullptr;
	Gtk::MenuButton* menubuttonInsert = nullptr;
	Gtk::Box* boxInsert = nullptr;
	Gtk::Image* imageInsert = nullptr;
	Gtk::Arrow* arrowInsert = nullptr;
	Gtk::Box* boxStripcrlf = nullptr;
	Gtk::Button* buttonStripcrlf = nullptr;
	Gtk::MenuButton* menubuttonStripcrlf = nullptr;
	Gtk::Arrow* arrowStripcrlf = nullptr;
	Gtk::ToggleButton* buttonFindreplace = nullptr;
	Gtk::Button* buttonUndo = nullptr;
	Gtk::Button* buttonRedo = nullptr;
	Gtk::Button* buttonClear = nullptr;
	Gtk::Box* boxSearch = nullptr;
	Gtk::Notebook* notebook = nullptr;
	Gtk::Button* buttonAddTab = nullptr;

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

	void setupUi() {
		builder->get_widget("imageAddTab", imageAddTab);
		builder->get_widget("imageClear", imageClear);
		builder->get_widget("imageFindreplace", imageFindreplace);
		builder->get_widget("imageInsertAppend", imageInsertAppend);
		imageInsertAppend->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/ins_append.png"));
		builder->get_widget("imageInsertCursor", imageInsertCursor);
		imageInsertCursor->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/ins_cursor.png"));
		builder->get_widget("imageInsertReplace", imageInsertReplace);
		imageInsertReplace->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/ins_replace.png"));
		builder->get_widget("menuInsert", menuInsert);
		builder->get_widget("menuitemInsertAppend", menuitemInsertAppend);
		builder->get_widget("menuitemInsertCursor", menuitemInsertCursor);
		builder->get_widget("menuitemInsertReplace", menuitemInsertReplace);
		builder->get_widget("imageOpen", imageOpen);
		builder->get_widget("imageRedo", imageRedo);
		builder->get_widget("imageSave", imageSave);
		builder->get_widget("imageStripcrlf", imageStripcrlf);
		imageStripcrlf->set(Gdk::Pixbuf::create_from_resource("/org/gnome/gimagereader/stripcrlf.png"));
		builder->get_widget("imageUndo", imageUndo);
		builder->get_widget("menuStripcrlf", menuStripcrlf);
		builder->get_widget("menuitemStripcrlfTitle", menuitemStripcrlfTitle);
		builder->get_widget("menuitemStripcrlfKeependmark", menuitemStripcrlfKeependmark);
		builder->get_widget("menuitemStripcrlfKeepquote", menuitemStripcrlfKeepquote);
		builder->get_widget("menuitemStripcrlfSep", menuitemStripcrlfSep);
		builder->get_widget("menuitemStripcrlfTitle2", menuitemStripcrlfTitle2);
		builder->get_widget("menuitemStripcrlfJoinhyphen", menuitemStripcrlfJoinhyphen);
		builder->get_widget("menuitemStripcrlfJoinspace", menuitemStripcrlfJoinspace);
		builder->get_widget("menuitemStripcrlfKeepparagraphs", menuitemStripcrlfKeepparagraphs);
		builder->get_widget("menuitemStripcrlfSep2", menuitemStripcrlfSep2);
		builder->get_widget("menuitemStripcrlfTitle3", menuitemStripcrlfTitle3);
		builder->get_widget("menuitemStripcrlfDrawwhitespace", menuitemStripcrlfDrawwhitespace);
		builder->get_widget("boxEditorText", boxEditorText);
		builder->get_widget("boxActions", boxActions);
		builder->get_widget("boxOpen", boxOpen);
		builder->get_widget("buttonOpen", buttonOpen);
		builder->get_widget("menuButtonOpenRecent", menuButtonOpenRecent);
		builder->get_widget("arrowOpenRecent", arrowOpenRecent);
		builder->get_widget("buttonSave", buttonSave);
		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("boxStripcrlf", boxStripcrlf);
		builder->get_widget("buttonStripcrlf", buttonStripcrlf);
		builder->get_widget("menubuttonStripcrlf", menubuttonStripcrlf);
		builder->get_widget("arrowStripcrlf", arrowStripcrlf);
		builder->get_widget("buttonFindreplace", buttonFindreplace);
		builder->get_widget("buttonUndo", buttonUndo);
		builder->get_widget("buttonRedo", buttonRedo);
		builder->get_widget("buttonClear", buttonClear);
		builder->get_widget("boxSearch", boxSearch);
		builder->get_widget("notebook", notebook);
		builder->get_widget("buttonAddTab", buttonAddTab);
	}

	~OutputEditorText() {
		std::vector<Gtk::Widget*> toplevelWidgets;
		if(!imageAddTab->get_parent()) toplevelWidgets.push_back(imageAddTab);
		if(!imageClear->get_parent()) toplevelWidgets.push_back(imageClear);
		if(!imageFindreplace->get_parent()) toplevelWidgets.push_back(imageFindreplace);
		if(!imageInsertAppend->get_parent()) toplevelWidgets.push_back(imageInsertAppend);
		if(!imageInsertCursor->get_parent()) toplevelWidgets.push_back(imageInsertCursor);
		if(!imageInsertReplace->get_parent()) toplevelWidgets.push_back(imageInsertReplace);
		if(!menuInsert->get_parent()) toplevelWidgets.push_back(menuInsert);
		if(!menuitemInsertAppend->get_parent()) toplevelWidgets.push_back(menuitemInsertAppend);
		if(!menuitemInsertCursor->get_parent()) toplevelWidgets.push_back(menuitemInsertCursor);
		if(!menuitemInsertReplace->get_parent()) toplevelWidgets.push_back(menuitemInsertReplace);
		if(!imageOpen->get_parent()) toplevelWidgets.push_back(imageOpen);
		if(!imageRedo->get_parent()) toplevelWidgets.push_back(imageRedo);
		if(!imageSave->get_parent()) toplevelWidgets.push_back(imageSave);
		if(!imageStripcrlf->get_parent()) toplevelWidgets.push_back(imageStripcrlf);
		if(!imageUndo->get_parent()) toplevelWidgets.push_back(imageUndo);
		if(!menuStripcrlf->get_parent()) toplevelWidgets.push_back(menuStripcrlf);
		if(!menuitemStripcrlfTitle->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfTitle);
		if(!menuitemStripcrlfKeependmark->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfKeependmark);
		if(!menuitemStripcrlfKeepquote->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfKeepquote);
		if(!menuitemStripcrlfSep->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfSep);
		if(!menuitemStripcrlfTitle2->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfTitle2);
		if(!menuitemStripcrlfJoinhyphen->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfJoinhyphen);
		if(!menuitemStripcrlfJoinspace->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfJoinspace);
		if(!menuitemStripcrlfKeepparagraphs->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfKeepparagraphs);
		if(!menuitemStripcrlfSep2->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfSep2);
		if(!menuitemStripcrlfTitle3->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfTitle3);
		if(!menuitemStripcrlfDrawwhitespace->get_parent()) toplevelWidgets.push_back(menuitemStripcrlfDrawwhitespace);
		if(!boxEditorText->get_parent()) toplevelWidgets.push_back(boxEditorText);
		if(!boxActions->get_parent()) toplevelWidgets.push_back(boxActions);
		if(!boxOpen->get_parent()) toplevelWidgets.push_back(boxOpen);
		if(!buttonOpen->get_parent()) toplevelWidgets.push_back(buttonOpen);
		if(!menuButtonOpenRecent->get_parent()) toplevelWidgets.push_back(menuButtonOpenRecent);
		if(!arrowOpenRecent->get_parent()) toplevelWidgets.push_back(arrowOpenRecent);
		if(!buttonSave->get_parent()) toplevelWidgets.push_back(buttonSave);
		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(!boxStripcrlf->get_parent()) toplevelWidgets.push_back(boxStripcrlf);
		if(!buttonStripcrlf->get_parent()) toplevelWidgets.push_back(buttonStripcrlf);
		if(!menubuttonStripcrlf->get_parent()) toplevelWidgets.push_back(menubuttonStripcrlf);
		if(!arrowStripcrlf->get_parent()) toplevelWidgets.push_back(arrowStripcrlf);
		if(!buttonFindreplace->get_parent()) toplevelWidgets.push_back(buttonFindreplace);
		if(!buttonUndo->get_parent()) toplevelWidgets.push_back(buttonUndo);
		if(!buttonRedo->get_parent()) toplevelWidgets.push_back(buttonRedo);
		if(!buttonClear->get_parent()) toplevelWidgets.push_back(buttonClear);
		if(!boxSearch->get_parent()) toplevelWidgets.push_back(boxSearch);
		if(!notebook->get_parent()) toplevelWidgets.push_back(notebook);
		if(!buttonAddTab->get_parent()) toplevelWidgets.push_back(buttonAddTab);
		std::for_each(toplevelWidgets.begin(), toplevelWidgets.end(), [](Gtk::Widget* w) { delete w; });
	}
};
} // Ui
#endif // UI_OUTPUTEDITORTEXT_HH
