A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/constraint__panel_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/constraint_panel.cpp Source File

34 #include "wx/wxprec.h" 86

objects::CSeq_entry_Handle seh,

87

vector<const objects::CFeatListItem *> *featlist,

88  bool

load_macro_fields,

93

: m_TopSeqEntry(seh), m_featlist(featlist), m_LoadMacroFields(load_macro_fields)

107 

wxPanel::Create( parent,

id

, pos,

size

, style );

112

GetSizer()->SetSizeHints(

this

);

142

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

143

itemPanel1->SetSizer(itemBoxSizer2);

146

itemBoxSizer2->Add(

m_Notebook

, 0, wxALIGN_TOP|wxALL, 5);

160  m_Notebook

->AddPage(panel4,

_

(

"CDS-Gene-Prot-mRNA"

));

173

panel6->

SetMacroSelf

(macro::CMacroBioData::sm_MolInfo);

182

panel7->

SetMacroSelf

(macro::CMacroBioData::sm_Pubdesc);

186  m_Notebook

->AddPage(panel8,

_

(

"Structured Comment"

));

194

panel9->

SetMacroSelf

(macro::CMacroBioData::sm_DBLink);

217

wxCommandEvent fieldTypeEvent(wxEVT_COMMAND_UPDATE_STRUCTCOMMENT_FIELD);

218

fieldTypeEvent.SetEventObject(

this

);

219

GetEventHandler()->ProcessEvent(fieldTypeEvent);

226

wxWindow *win =

m_Notebook

->GetCurrentPage();

245  if

(sel != wxNOT_FOUND)

247

field_type =

m_Notebook

->GetPageText(sel).ToStdString();

296  if

(page != wxNOT_FOUND)

308

wxWindow* win =

m_Notebook

->GetCurrentPage();

310  if

(panel && !field.empty())

322

wxWindow* win =

m_Notebook

->GetCurrentPage();

325  bool

allow_other =

true

;

326

vector<string> choices = panel->

GetChoices

(allow_other);

344  string

const_ncRNA_class;

345  auto

const_subtype =

GetSubtype

(field_name_panel, const_ncRNA_class);

349

field, field_type, subtype, ncRNA_class,

385

: m_TopSeqEntry(seh), m_featlist(featlist)

399 

wxPanel::Create( parent,

id

, pos,

size

, style );

404

GetSizer()->SetSizeHints(

this

);

446

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

447

itemPanel1->SetSizer(itemBoxSizer2);

450

itemBoxSizer2->Add(

m_Notebook

, 1, wxGROW|wxALL, 0);

511

wxWindow* win =

m_Notebook

->GetCurrentPage();

515  return

panel->

GetConstraint

(field, field_type, subtype, ncRNA_class);

566 

wxPanel::Create( parent,

id

, pos,

size

, style );

571

GetSizer()->SetSizeHints(

this

);

612

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

613

itemPanel1->SetSizer(itemBoxSizer2);

618

wxBoxSizer* itemBoxSizer12 =

new

wxBoxSizer(wxHORIZONTAL);

619

itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

621

wxButton* itemButton13 =

new

wxButton( itemPanel1,

ID_CONSTRAINT_ADD

,

_

(

"Add Constraint"

), wxDefaultPosition, wxDefaultSize, 0 );

622

itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

624

wxButton* itemButton14 =

new

wxButton( itemPanel1,

ID_CONSTRAINT_REMOVE

,

_

(

"Clear Constraints"

), wxDefaultPosition, wxDefaultSize, 0 );

625

itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

686

item.second.field_type,

688

item.second.m_ncRNAClass,

689

item.second.matcher);

692  if

(item.second.enabled2)

699

item.second.field_type2,

700

item.second.subtype2,

701

item.second.m_ncRNAClass2,

702

item.second.matcher2);

720

wxArrayInt checked_items;

722  if

(checked_items.IsEmpty())

724  int

answer = wxMessageBox (

_

(

"No items checked, remove all?"

),

ToWxString

(

"Warning"

), wxYES_NO | wxICON_QUESTION);

736  for

(

size_t i

= 0;

i

< checked_items.GetCount();

i

++)

738  int

j = checked_items.Item(

i

);

744  for

(

auto

rit=to_delete.rbegin(); rit != to_delete.rend(); ++rit)

770  const string

&

label

=

event

.GetString().ToStdString();

771  int id

=

event

.GetInt();

void SetSelection(int page)

void SetConstraint(const SFieldTypeAndMatcher &constraint)

CConstraintPanel * m_BasicConstraintPanel

CCompoundConstraintPanel * m_CompoundConstraintPanel

static bool ShowToolTips()

wxIcon GetIconResource(const wxString &name)

vector< const objects::CFeatListItem * > * m_featlist

bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)

CAdvancedConstraintPanel()

CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)

void SetSelection(int page)

~CAdvancedConstraintPanel()

wxBitmap GetBitmapResource(const wxString &name)

objects::CSeq_entry_Handle m_TopSeqEntry

virtual bool SetFieldName(const string &field)

wxBitmap GetBitmapResource(const wxString &name)

void OnRemoveConstraint(wxCommandEvent &event)

void AddConstraint(pair< string, SFieldTypeAndMatcher > item, int id)

void SetSelection(int page)

void OnAddConstraint(wxCommandEvent &event)

bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)

objects::CSeq_entry_Handle m_TopSeqEntry

CCompoundConstraintPanel()

void OnEditConstraint(wxCommandEvent &event)

static bool ShowToolTips()

~CCompoundConstraintPanel()

wxIcon GetIconResource(const wxString &name)

wxCheckListBox * m_CheckListBox

map< string, SFieldTypeAndMatcher > m_label_to_constraint

virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)

CFeatureFieldNamePanel * m_feat_field_panel

static bool ShowToolTips()

virtual void UpdateEditor(void)

virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)

CStringConstraintPanel * m_StringConstraintPanel

void SetSelection(int page)

vector< const objects::CFeatListItem * > * m_featlist

objects::CSeq_entry_Handle m_TopSeqEntry

string GetFieldType(void) const

CFieldNamePanel * GetFieldNamePanel(void)

wxBitmap GetBitmapResource(const wxString &name)

bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)

string GetMacroStringConstraint(const string &field_name)

wxChoicebook * m_Notebook

bool SetFieldName(const string &field)

wxIcon GetIconResource(const wxString &name)

void OnPageChanged(wxBookCtrlEvent &event)

CRef< edit::CStringConstraint > GetStringConstraint(void)

static vector< string > GetFieldNames()

void ListPresentFeaturesFirst(objects::CSeq_entry_Handle seh, vector< const objects::CFeatListItem * > *featlist=nullptr)

void SetMacroFieldNames(const vector< string > &field_names)

void SetMacroSelf(const string &self)

virtual bool SetFieldName(const string &field)

void SetFieldNames(const vector< string > &field_names)

virtual string GetFieldName(const bool subfield=false)=0

Returns the name of the field as selected in the panel.

virtual vector< string > GetChoices(bool &allow_other)

virtual bool SetFieldName(const string &field)=0

static EFieldType GetFieldTypeFromName(const string &field_type_name)

virtual vector< string > GetMacroValues()

virtual void ClearValues(void)

static vector< string > GetStrings()

static vector< string > GetMacroFieldNames()

static vector< string > GetFieldNames()

static vector< string > GetMacroFieldNames()

static vector< string > GetMacroFieldNames(bool extended=false)

static vector< string > GetFieldNames(bool extended=false)

virtual bool SetFieldName(const string &field)

virtual bool SetFieldName(const string &field)

CRef< edit::CStringConstraint > GetStringConstraint()

void SetChoices(const vector< string > &choices, const vector< string > &values)

string GetMacroStringConstraint(const string &field_name)

virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)=0

iterator_bool insert(const value_type &val)

iterator_bool insert(const value_type &val)

#define ID_CONSTRAINT_LIST

#define ID_CONSTRAINT_ADD

#define ID_CONSTRAINT_CHOICEBOOK

#define ID_CONSTRAINT_REMOVE

CRef< CEditingActionConstraint > CreateEditingActionConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class, const string &const_field, CFieldNamePanel::EFieldType const_field_type, int const_subtype, string &const_ncRNA_class, CRef< CConstraintMatcher >constraint)

int GetSubtype(CFieldNamePanel *field_name_panel, string &ncRNA_class)

const char * kDefinitionLineLabel

const char * kFieldTypeSeqId

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static const char label[]

const struct ncbi::grid::netcache::search::fields::SIZE size

wxString ToWxString(const string &s)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4