23 #ifndef _LIBS_GUI_UTILS_MULTI_INTERFACE_CHOOSER_DIALOG_H_
24 #define _LIBS_GUI_UTILS_MULTI_INTERFACE_CHOOSER_DIALOG_H_
26 #include <gui_utils/interface_chooser_dialog.h>
38 typedef std::pair<Glib::ustring, Glib::ustring>
TypeIdPair;
44 const char * type_pattern,
45 const char * id_pattern,
59 Gtk::TreeModelColumn<bool>
load;
64 const Glib::ustring & title);
72 typedef std::set<TypeIdPair> TypeIdPairSet;
74 void on_load_toggled(
const Glib::ustring &path);
77 TypeIdPairSet loaded_interfaces_;
The BlackBoard abstract class.
Blackboard interface record.
Blackboard interface chooser dialog.
static const char *const DEFAULT_TITLE
Default title of interface chooser dialogs.
Blackboard interface record.
Gtk::TreeModelColumn< bool > load
Load this interface?
Blackboard interface chooser dialog that supports multiple choices.
virtual int init_columns()
Initializes the columns GUI-wise.
std::list< TypeIdPair > TypeIdPairList
List of type and ID of an interface.
virtual ~MultiInterfaceChooserDialog()
Destructor.
TypeIdPairList get_selected_interfaces() const
Get selected interface types and their respective IDs.
TypeIdPairList get_newly_selected_interfaces() const
Get selected interface types and their respective IDs.
virtual const Record & record() const
Returns the Record of this chooser dialog.
static MultiInterfaceChooserDialog * create(Gtk::Window &parent, BlackBoard *blackboard, const char *type_pattern, const char *id_pattern, const TypeIdPairList &loaded_interfaces, const Glib::ustring &title=DEFAULT_TITLE)
Factory method.
virtual void init_row(Gtk::TreeModel::Row &row, const InterfaceInfo &ii)
Initializes a row with the given interface.
std::pair< Glib::ustring, Glib::ustring > TypeIdPair
Pair of type and IDs of interfaces.
MultiInterfaceChooserDialog(Gtk::Window &parent, const TypeIdPairList &loaded_interfaces, const Glib::ustring &title)
Constructor for subclasses.
Fawkes library namespace.