NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CFeatureCreateDialog Class Reference

Search Toolkit Book for CFeatureCreateDialog

#include <gui/widgets/seq/feature_create_dlg.hpp>

+ Inheritance diagram for CFeatureCreateDialog:
+ Collaboration diagram for CFeatureCreateDialog:

Public Types

enum  {
  ID_CFEATURECREATEDIALOG = 10015 , ID_CHOICE6 = 10016 , ID_TEXTCTRL2 = 10017 , ID_TEXTCTRL3 = 10019 ,
  ID_GRID1 = 10018
}
 Control identifiers. More...
 

Public Member Functions

 CFeatureCreateDialog ()
 Constructors. More...
 
 CFeatureCreateDialog (wxWindow *parent, wxWindowID id=ID_CFEATURECREATEDIALOG, const wxString &caption=_("Feature Create Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(300, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CFEATURECREATEDIALOG, const wxString &caption=_("Feature Create Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(300, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CFeatureCreateDialog ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
wxString GetLbl () const
 
void SetLbl (wxString value)
 
wxString GetComments () const
 
void SetComments (wxString value)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SetConstraints (vector< objects::CSeqFeatData::ESubtype > &options, objects::CSeqFeatData::ESubtype selected)
 
void SetIO (TConstScopedObjects &in, TConstScopedObjects &out)
 
void OnFeatureTypeChanged (wxCommandEvent &event)
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Public Attributes

wxString m_Label
 
wxString m_Comments
 

Protected Member Functions

void x_InitFeatTypes ()
 
void x_UpdateQualifiers ()
 

Protected Attributes

TConstScopedObjectsm_pIn
 
TConstScopedObjectsm_pOut
 
vector< objects::CSeqFeatData::ESubtype > m_Options
 
objects::CSeqFeatData::ESubtype m_Selected
 
wxChoice * m_pFeatType
 
wxGrid * m_pQualifiers
 

Detailed Description

CFeatureCreateDialog class declaration

Definition at line 78 of file feature_create_dlg.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CFEATURECREATEDIALOG 
ID_CHOICE6 
ID_TEXTCTRL2 
ID_TEXTCTRL3 
ID_GRID1 

Definition at line 127 of file feature_create_dlg.hpp.

Constructor & Destructor Documentation

◆ CFeatureCreateDialog() [1/2]

CFeatureCreateDialog::CFeatureCreateDialog ( )

Constructors.

CFeatureCreateDialog type definition

CFeatureCreateDialog event table definition

CFeatureCreateDialog constructors

Definition at line 84 of file feature_create_dlg.cpp.

References Init().

◆ CFeatureCreateDialog() [2/2]

CFeatureCreateDialog::CFeatureCreateDialog ( wxWindow *  parent,
wxWindowID  id = ID_CFEATURECREATEDIALOG,
const wxString &  caption = _("Feature Create Dialog"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(300, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CFeatureCreateDialog()

CFeatureCreateDialog::~CFeatureCreateDialog ( )

Destructor.

CFeatureCreateDialog destructor

Definition at line 121 of file feature_create_dlg.cpp.

Member Function Documentation

◆ Create()

bool CFeatureCreateDialog::Create ( wxWindow *  parent,
wxWindowID  id = ID_CFEATURECREATEDIALOG,
const wxString &  caption = _("Feature Create Dialog"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(300, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

CFeatureCreateDialog creator

Definition at line 100 of file feature_create_dlg.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

Referenced by CFeatureCreateDialog().

◆ CreateControls()

void CFeatureCreateDialog::CreateControls ( )

Creates the controls and sizers.

Control creation for CFeatureCreateDialog

Definition at line 147 of file feature_create_dlg.cpp.

References _, ID_CHOICE6, ID_GRID1, ID_TEXTCTRL2, ID_TEXTCTRL3, m_Comments, m_Label, m_pFeatType, m_pQualifiers, wxID_ANY, and wxT.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CFeatureCreateDialog::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 237 of file feature_create_dlg.cpp.

◆ GetComments()

wxString CFeatureCreateDialog::GetComments ( void  ) const
inline

Definition at line 109 of file feature_create_dlg.hpp.

References m_Comments.

Referenced by CDataMiningPanel::x_CreateFeature().

◆ GetIconResource()

wxIcon CFeatureCreateDialog::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 250 of file feature_create_dlg.cpp.

◆ GetLbl()

wxString CFeatureCreateDialog::GetLbl ( ) const
inline

Definition at line 106 of file feature_create_dlg.hpp.

References m_Label.

Referenced by CDataMiningPanel::x_CreateFeature().

◆ Init()

void CFeatureCreateDialog::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 132 of file feature_create_dlg.cpp.

References m_pFeatType, m_pIn, m_pOut, m_pQualifiers, and NULL.

Referenced by CFeatureCreateDialog().

◆ OnFeatureTypeChanged()

void CFeatureCreateDialog::OnFeatureTypeChanged ( wxCommandEvent &  event)

Definition at line 259 of file feature_create_dlg.cpp.

References x_UpdateQualifiers().

◆ SetComments()

void CFeatureCreateDialog::SetComments ( wxString  value)
inline

Definition at line 110 of file feature_create_dlg.hpp.

References m_Comments, and rapidjson::value.

◆ SetConstraints()

void CFeatureCreateDialog::SetConstraints ( vector< objects::CSeqFeatData::ESubtype > &  options,
objects::CSeqFeatData::ESubtype  selected 
)

Definition at line 320 of file feature_create_dlg.cpp.

References m_Options, and m_Selected.

Referenced by CDataMiningPanel::x_CreateFeature().

◆ SetIO()

void CFeatureCreateDialog::SetIO ( TConstScopedObjects in,
TConstScopedObjects out 
)

Definition at line 314 of file feature_create_dlg.cpp.

References in(), m_pIn, m_pOut, and out().

Referenced by CDataMiningPanel::x_CreateFeature().

◆ SetLbl()

void CFeatureCreateDialog::SetLbl ( wxString  value)
inline

Definition at line 107 of file feature_create_dlg.hpp.

References m_Label, and rapidjson::value.

Referenced by CDataMiningPanel::x_CreateFeature().

◆ ShowToolTips()

bool CFeatureCreateDialog::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 228 of file feature_create_dlg.cpp.

◆ TransferDataFromWindow()

bool CFeatureCreateDialog::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

bool CFeatureCreateDialog::TransferDataToWindow ( )
virtual

Definition at line 327 of file feature_create_dlg.cpp.

References x_InitFeatTypes(), and x_UpdateQualifiers().

◆ x_InitFeatTypes()

void CFeatureCreateDialog::x_InitFeatTypes ( )
protected

◆ x_UpdateQualifiers()

void CFeatureCreateDialog::x_UpdateQualifiers ( )
protected

Member Data Documentation

◆ m_Comments

wxString CFeatureCreateDialog::m_Comments

Definition at line 125 of file feature_create_dlg.hpp.

Referenced by CreateControls(), GetComments(), and SetComments().

◆ m_Label

wxString CFeatureCreateDialog::m_Label

Definition at line 124 of file feature_create_dlg.hpp.

Referenced by CreateControls(), GetLbl(), and SetLbl().

◆ m_Options

vector<objects::CSeqFeatData::ESubtype> CFeatureCreateDialog::m_Options
protected

Definition at line 149 of file feature_create_dlg.hpp.

Referenced by SetConstraints(), and x_InitFeatTypes().

◆ m_pFeatType

wxChoice* CFeatureCreateDialog::m_pFeatType
protected

◆ m_pIn

TConstScopedObjects* CFeatureCreateDialog::m_pIn
protected

Definition at line 146 of file feature_create_dlg.hpp.

Referenced by Init(), SetIO(), and TransferDataFromWindow().

◆ m_pOut

TConstScopedObjects* CFeatureCreateDialog::m_pOut
protected

Definition at line 147 of file feature_create_dlg.hpp.

Referenced by Init(), SetIO(), and TransferDataFromWindow().

◆ m_pQualifiers

wxGrid* CFeatureCreateDialog::m_pQualifiers
protected

◆ m_Selected

objects::CSeqFeatData::ESubtype CFeatureCreateDialog::m_Selected
protected

Definition at line 150 of file feature_create_dlg.hpp.

Referenced by SetConstraints(), and x_InitFeatTypes().


The documentation for this class was generated from the following files:
Modified on Wed May 22 11:32:18 2024 by modify_doxy.py rev. 669887