NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CFieldNamePanel Class Referenceabstract

Search Toolkit Book for CFieldNamePanel

#include <gui/widgets/edit/field_name_panel.hpp>

+ Inheritance diagram for CFieldNamePanel:
+ Collaboration diagram for CFieldNamePanel:

Public Types

enum  EFieldType {
  eFieldType_Unknown = 0 , eFieldType_Source , eFieldType_Feature , eFieldType_CDSGeneProt ,
  eFieldType_RNA , eFieldType_Gene , eFieldType_Protein , eFieldType_MolInfo ,
  eFieldType_Pub , eFieldType_StructuredComment , eFieldType_BankITComment , eFieldType_Comment ,
  eFieldType_DBLink , eFieldType_Dbxref , eFieldType_Misc , eFieldType_DefLine ,
  eFieldType_TaxnameAfterBinomial , eFieldType_FlatFile , eFieldType_FileId , eFieldType_GeneralId ,
  eFieldType_LocalId , eFieldType_SeqId , eFieldType_Taxname
}
 

Public Member Functions

 CFieldNamePanel ()
 Constructors. More...
 
 ~CFieldNamePanel ()
 Destructor. More...
 
virtual string GetFieldName (const bool subfield=false)=0
 Returns the name of the field as selected in the panel. More...
 
virtual bool SetFieldName (const string &field)=0
 
virtual vector< stringGetChoices (bool &allow_other)
 
virtual vector< stringGetMacroValues ()
 
virtual void ClearValues (void)
 
virtual void SetShowLegalOnly (bool show)
 
virtual string GetMacroFieldName (const string &target, const string &selected_field=kEmptyStr)
 
virtual string GetMacroFieldLabel (const string &target, const string &selected_field=kEmptyStr)
 

Static Public Member Functions

static string GetFieldTypeName (EFieldType field_type)
 
static EFieldType GetFieldTypeFromName (const string &field_type_name)
 
static bool IsFeature (const string &target)
 
static bool IsDescriptor (const string &target)
 

Protected Member Functions

void x_UpdateParent (void)
 
bool x_IsParentAECRDlg (void)
 
void x_UpdateAECRDlgLayout (void)
 
bool x_ShouldDecreaseStrConstrPanel (void)
 

Detailed Description

CFieldNamePanel class declaration

Definition at line 50 of file field_name_panel.hpp.

Member Enumeration Documentation

◆ EFieldType

Enumerator
eFieldType_Unknown 
eFieldType_Source 
eFieldType_Feature 
eFieldType_CDSGeneProt 
eFieldType_RNA 
eFieldType_Gene 
eFieldType_Protein 
eFieldType_MolInfo 
eFieldType_Pub 
eFieldType_StructuredComment 
eFieldType_BankITComment 
eFieldType_Comment 
eFieldType_DBLink 
eFieldType_Dbxref 
eFieldType_Misc 
eFieldType_DefLine 
eFieldType_TaxnameAfterBinomial 
eFieldType_FlatFile 
eFieldType_FileId 
eFieldType_GeneralId 
eFieldType_LocalId 
eFieldType_SeqId 
eFieldType_Taxname 

Definition at line 70 of file field_name_panel.hpp.

Constructor & Destructor Documentation

◆ CFieldNamePanel()

CFieldNamePanel::CFieldNamePanel ( )
inline

Constructors.

Definition at line 54 of file field_name_panel.hpp.

◆ ~CFieldNamePanel()

CFieldNamePanel::~CFieldNamePanel ( )
inline

Destructor.

Definition at line 57 of file field_name_panel.hpp.

Member Function Documentation

◆ ClearValues()

virtual void CFieldNamePanel::ClearValues ( void  )
inlinevirtual

◆ GetChoices()

vector< string > CFieldNamePanel::GetChoices ( bool allow_other)
virtual

◆ GetFieldName()

virtual string CFieldNamePanel::GetFieldName ( const bool  subfield = false)
pure virtual

◆ GetFieldTypeFromName()

CFieldNamePanel::EFieldType CFieldNamePanel::GetFieldTypeFromName ( const string field_type_name)
static

◆ GetFieldTypeName()

string CFieldNamePanel::GetFieldTypeName ( EFieldType  field_type)
static

◆ GetMacroFieldLabel()

virtual string CFieldNamePanel::GetMacroFieldLabel ( const string target,
const string selected_field = kEmptyStr 
)
inlinevirtual

Reimplemented in CFieldHandlerNamePanel.

Definition at line 69 of file field_name_panel.hpp.

References kEmptyStr.

Referenced by CMacroAdvStringConstraintPanel< T >::GetMatcher().

◆ GetMacroFieldName()

virtual string CFieldNamePanel::GetMacroFieldName ( const string target,
const string selected_field = kEmptyStr 
)
inlinevirtual

◆ GetMacroValues()

vector< string > CFieldNamePanel::GetMacroValues ( )
virtual

◆ IsDescriptor()

bool CFieldNamePanel::IsDescriptor ( const string target)
static

◆ IsFeature()

bool CFieldNamePanel::IsFeature ( const string target)
static

◆ SetFieldName()

virtual bool CFieldNamePanel::SetFieldName ( const string field)
pure virtual

◆ SetShowLegalOnly()

virtual void CFieldNamePanel::SetShowLegalOnly ( bool  show)
inlinevirtual

Reimplemented in CFieldChoicePanel, CFeatureTypePanel, and CFeatureFieldNamePanel.

Definition at line 66 of file field_name_panel.hpp.

Referenced by CFieldChoicePanel::SetFieldType().

◆ x_IsParentAECRDlg()

bool CFieldNamePanel::x_IsParentAECRDlg ( void  )
protected

◆ x_ShouldDecreaseStrConstrPanel()

bool CFieldNamePanel::x_ShouldDecreaseStrConstrPanel ( void  )
protected

Definition at line 79 of file field_name_panel.cpp.

Referenced by CFieldConstraintPanel::CreateControls().

◆ x_UpdateAECRDlgLayout()

void CFieldNamePanel::x_UpdateAECRDlgLayout ( void  )
protected

Definition at line 75 of file field_name_panel.cpp.

Referenced by CFieldConstraintPanel::UpdateEditor().

◆ x_UpdateParent()

void CFieldNamePanel::x_UpdateParent ( void  )
protected

The documentation for this class was generated from the following files:
Modified on Wed Dec 06 07:13:15 2023 by modify_doxy.py rev. 669887