10#ifndef __GUI_WIDGETS_ITEM_FACTORY_H__
11#define __GUI_WIDGETS_ITEM_FACTORY_H__
17#include "gui/backend/gtk_widgets/gtk_wrapper.h"
70 GtkColumnView * column_view,
71 std::vector<std::unique_ptr<ItemFactory>> &item_factories,
76 std::string column_name);
84 Type type_ = Type::Text;
86 bool editable_ =
false;
88 bool ellipsize_label_ =
true;
92 gulong unbind_id_ = 0;
93 gulong teardown_id_ = 0;
99using ItemFactoryPtrVector = std::vector<std::unique_ptr<ItemFactory>>;
ItemFactory(Type type, bool editable, std::string column_name)
Creates a new item factory.
GtkListItemFactory * list_item_factory_
An owned GtkListItemFactory.
static std::unique_ptr< ItemFactory > & generate_and_append_column(GtkColumnView *column_view, std::vector< std::unique_ptr< ItemFactory > > &item_factories, Type type, bool editable, bool resizable, GtkSorter *sorter, std::string column_name)
Shorthand to generate and append a column to a column view.
std::string column_name_
Column name, or empty if used for list views.
Type
Item factory column type.
@ IconAndText
Composite type (eg, used in plugin browser).
@ Integer
Integer display.