Public Member Functions | List of all members
FieldSelDef Class Reference

#include <item_sel_list.h>

Public Member Functions

 FieldSelDef (const char *awar_name_, GBDATA *gb_main_, ItemSelector &selector_, long type_filter_, const char *purpose_="field", SelectableFields field_filter_=SF_STANDARD)
const std::stringget_awarname () const
const std::stringget_described_field () const
long get_type_filter () const
SelectableFields get_field_filter () const
GBDATAget_gb_main () const
ItemSelectorget_itemtype () const
bool new_fields_allowed () const
Itemfield_Selectionbuild_sel (AW_selection_list *from_sellist) const
bool matches4reuse (const FieldSelDef &other) const

Detailed Description

Definition at line 75 of file item_sel_list.h.

Constructor & Destructor Documentation

FieldSelDef::FieldSelDef ( const char awar_name_,
GBDATA gb_main_,
ItemSelector selector_,
long  type_filter_,
const char purpose_ = "field",
SelectableFields  field_filter_ = SF_STANDARD 

parameter collection for itemfield-selections

awar_name_the name of the awar bound to the selection list
gb_main_the database
selector_describes the item type, for which fields are shown
type_filter_is a bitstring which controls what types will be shown in the selection list (several filters are predefined: 'FIELD_FILTER_...', FIELD_UNFILTERED)
purpose_describes purpose of field (defaults to 'field'; appears in popup-title and error-messages)
field_filter_controls if pseudo-fields and/or hidden fields are added and whether new fields are allowed (defaults to SF_STANDARD)

Definition at line 84 of file item_sel_list.h.

Member Function Documentation

const std::string& FieldSelDef::get_awarname ( ) const
const std::string& FieldSelDef::get_described_field ( ) const
long FieldSelDef::get_type_filter ( ) const
SelectableFields FieldSelDef::get_field_filter ( ) const

Definition at line 104 of file item_sel_list.h.

GBDATA* FieldSelDef::get_gb_main ( ) const
ItemSelector& FieldSelDef::get_itemtype ( ) const
bool FieldSelDef::new_fields_allowed ( ) const
Itemfield_Selection * FieldSelDef::build_sel ( AW_selection_list from_sellist) const
bool FieldSelDef::matches4reuse ( const FieldSelDef other) const

Definition at line 312 of file item_sel_list.cxx.

Referenced by RegFieldSelection::registrate().

The documentation for this class was generated from the following files: