23 #ifndef __LIBS_GUI_UTILS_MULTI_INTERFACE_CHOOSER_DIALOG_H_ 24 #define __LIBS_GUI_UTILS_MULTI_INTERFACE_CHOOSER_DIALOG_H_ 30 #include <gui_utils/interface_chooser_dialog.h> 38 typedef std::pair<Glib::ustring, Glib::ustring>
TypeIdPair;
45 const char *type_pattern,
46 const char *id_pattern,
47 const TypeIdPairList& loaded_interfaces,
60 Gtk::TreeModelColumn<bool>
load;
64 const TypeIdPairList& loaded_interfaces,
65 const Glib::ustring& title);
73 typedef std::set<TypeIdPair> TypeIdPairSet;
75 void on_load_toggled(
const Glib::ustring& path);
78 TypeIdPairSet __loaded_interfaces;
Blackboard interface record.
Blackboard interface chooser dialog.
MultiInterfaceChooserDialog(Gtk::Window &parent, const TypeIdPairList &loaded_interfaces, const Glib::ustring &title)
Constructor for subclasses.
virtual ~MultiInterfaceChooserDialog()
Destructor.
std::list< TypeIdPair > TypeIdPairList
List of type and ID of an interface.
Fawkes library namespace.
Gtk::TreeModelColumn< bool > load
Load this interface?
virtual int init_columns()
Initializes the columns GUI-wise.
static const char *const DEFAULT_TITLE
Default title of interface chooser dialogs.
Blackboard interface chooser dialog that supports multiple choices.
TypeIdPairList get_newly_selected_interfaces() const
Get selected interface types and their respective IDs.
std::pair< Glib::ustring, Glib::ustring > TypeIdPair
Pair of type and IDs of interfaces.
virtual void init_row(Gtk::TreeModel::Row &row, const InterfaceInfo &ii)
Initializes a row with the given interface.
TypeIdPairList get_selected_interfaces() const
Get selected interface types and their respective IDs.
Blackboard interface record.
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.
The BlackBoard abstract class.