#include <casecombobox.h>
Public Member Functions | |
LocationComboBox (const LocationMap &locations) | |
Constructor. | |
bool | empty () const |
See if the combo box is empty. | |
void | set_active_internal (const Glib::ustring &id) |
Set the active location by internal name. | |
Glib::ustring | get_selected_name () const |
Get the selected location's name. | |
Glib::ustring | get_selected_internal () |
Get the selected locations's internal name. | |
Case::Location * | get_selected_location () |
Get the selected location. | |
Protected Member Functions | |
Glib::ustring | is_court_location (const Glib::ustring &str) |
Check if a location is a court location. | |
Glib::ustring | internal_is_court_location (const Glib::ustring &str) |
Check if a location is a court location by internal ID. | |
Protected Attributes | |
LocationMap | m_Locations |
Internal map of locations. |
LocationComboBox::LocationComboBox | ( | const LocationMap & | locations | ) |
Constructor.
locations | Map of locations to display |
bool LocationComboBox::empty | ( | ) | const [inline] |
See if the combo box is empty.
void LocationComboBox::set_active_internal | ( | const Glib::ustring & | id | ) |
Set the active location by internal name.
id | The internal ID |
Glib::ustring LocationComboBox::get_selected_name | ( | ) | const |
Get the selected location's name.
Glib::ustring LocationComboBox::get_selected_internal | ( | ) |
Get the selected locations's internal name.
Case::Location * LocationComboBox::get_selected_location | ( | ) |
Get the selected location.
Glib::ustring LocationComboBox::is_court_location | ( | const Glib::ustring & | str | ) | [protected] |
Check if a location is a court location.
str | The display name of the location to test |
Glib::ustring LocationComboBox::internal_is_court_location | ( | const Glib::ustring & | str | ) | [protected] |
Check if a location is a court location by internal ID.
str | The internal ID of the location to test |