5 #include "util/window_state_store.hpp" 6 #include "block/bom.hpp" 7 #include "util/changeable.hpp" 14 BOMExportWindow(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &x,
class Block *block,
18 void set_can_export(
bool v);
20 void update_preview();
26 Gtk::Button *export_button =
nullptr;
27 Gtk::ComboBoxText *sort_column_combo =
nullptr;
28 Gtk::ComboBoxText *sort_order_combo =
nullptr;
29 Gtk::Revealer *done_revealer =
nullptr;
30 Gtk::Label *done_label =
nullptr;
31 Gtk::Entry *filename_entry =
nullptr;
32 Gtk::Button *filename_button =
nullptr;
34 class ListColumns :
public Gtk::TreeModelColumnRecord {
38 Gtk::TreeModelColumnRecord::add(name);
39 Gtk::TreeModelColumnRecord::add(column);
41 Gtk::TreeModelColumn<BOMColumn> column;
42 Gtk::TreeModelColumn<Glib::ustring> name;
44 ListColumns list_columns;
46 Glib::RefPtr<Gtk::ListStore> columns_store;
47 Glib::RefPtr<Gtk::TreeModelFilter> columns_available;
49 Glib::RefPtr<Gtk::ListStore> columns_store_included;
51 Gtk::TreeView *cols_available_tv =
nullptr;
52 Gtk::TreeView *cols_included_tv =
nullptr;
53 Gtk::TreeView *preview_tv =
nullptr;
55 Gtk::Button *col_inc_button =
nullptr;
56 Gtk::Button *col_excl_button =
nullptr;
57 Gtk::Button *col_up_button =
nullptr;
58 Gtk::Button *col_down_button =
nullptr;
62 void incl_excl_col(
bool incl);
63 void up_down_col(
bool up);
64 void update_incl_excl_sensitivity();
65 void update_cols_included();
67 void flash(
const std::string &s);
68 sigc::connection flash_connection;
70 class ListColumnsPreview :
public Gtk::TreeModelColumnRecord {
74 Gtk::TreeModelColumnRecord::add(row);
76 Gtk::TreeModelColumn<BOMRow> row;
78 ListColumnsPreview list_columns_preview;
80 Glib::RefPtr<Gtk::ListStore> bom_store;
Definition: changeable.hpp:5
Definition: window_state_store.hpp:20
Definition: bom_export_settings.hpp:10
A block is one level of hierarchy in the netlist.
Definition: block.hpp:26
Definition: bom_export_window.hpp:11