Fawkes API
Fawkes Development Version
|
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>
34 class MultiInterfaceChooserDialog :
public InterfaceChooserDialog
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);
66 virtual const Record &
record()
const;
72 typedef std::set<TypeIdPair> TypeIdPairSet;
74 void on_load_toggled(
const Glib::ustring &path);
77 TypeIdPairSet loaded_interfaces_;
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.
TypeIdPairList get_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.
std::list< TypeIdPair > TypeIdPairList
List of type and ID of an interface.
static const char *const DEFAULT_TITLE
Default title of interface chooser dialogs.
virtual int init_columns()
Initializes the columns GUI-wise.
virtual ~MultiInterfaceChooserDialog()
Destructor.
virtual const Record & record() const
Returns the Record of this chooser dialog.
virtual void init_row(Gtk::TreeModel::Row &row, const InterfaceInfo &ii)
Initializes a row with the given interface.
Gtk::TreeModelColumn< bool > load
Load this interface?
MultiInterfaceChooserDialog(Gtk::Window &parent, const TypeIdPairList &loaded_interfaces, const Glib::ustring &title)
Constructor for subclasses.
TypeIdPairList get_newly_selected_interfaces() const
Get selected interface types and their respective IDs.