14 #ifndef _GLIBCXX_STRING
35 shortname(shortname_),
36 fieldname(fieldname_),
73 static void create_instance();
75 mutable SmartCharPtr header;
76 mutable int header_length;
79 int min_flag_distance;
84 min_flag_distance(INT_MAX)
86 void build_header_text()
const;
91 if (!SINGLETON) create_instance();
104 if (header.isNull()) build_header_text();
108 if (header_length<0) {
111 return header_length;
119 return min_flag_distance;
128 #error ed4_flags.hxx included twice
129 #endif // ED4_FLAGS_HXX
return string(buffer, length)
const char * get_header_text() const
static const SpeciesFlags & instance()
void set_dimension(int xpos_, int width_)
static SpeciesFlags & mutable_instance()
int get_header_length() const
AW_window * ED4_configure_species_flags(AW_root *root, GBDATA *gb_main)
int get_min_flag_distance() const
SpeciesFlagList::iterator SpeciesFlagIter
SpeciesFlagList::const_iterator SpeciesFlagCiter
const char * prepare_itemfield() const
const std::string & get_shortname() const
SpeciesFlag(const std::string &shortname_, const std::string &fieldname_, int awar_idx)
void calculate_header_dimensions(AW_device *device, int gc)
double center_xpos() const
std::list< SpeciesFlag > SpeciesFlagList
int get_pixel_width() const
const std::string & get_fieldname() const