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/aecr__frame_8cpp_source.html below:

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

34 #include "wx/wxprec.h" 44 #include <wx/display.h> 45 #include <wx/listctrl.h> 72 template

<

template

<

typename

T2>

class

T1>

78  CQualPanel

( wxWindow* parent,

bool

composed =

false

, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

79  bool Create

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

93 template

<

typename

T>

99  CSingleFieldPanel

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

100  bool Create

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

113  virtual

vector<string>

GetChoices

(

bool

& allow_other)

const

{

return m_Field

->GetChoices(allow_other);}

114  virtual string GetField1

(

bool

subfield =

true

)

const

{

return m_Field

->GetFieldName(subfield);}

121 template

<

typename

T>

127  CDualFieldPanel

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

128  bool Create

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

141  virtual

vector<string>

GetChoices

(

bool

& allow_other)

const

{

return m_Field1

->GetChoices(allow_other);}

142  virtual string GetField1

(

bool

subfield =

true

)

const

{

return m_Field1

->GetFieldName(subfield);}

143  virtual string GetField2

(

bool

subfield =

true

)

const

{

return m_Field2

->GetFieldName(subfield);}

158  CSingleFieldPanel

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

159  bool Create

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

169  virtual

vector<string>

GetChoices

(

bool

& allow_other)

const

{

return m_Field

->GetChoices(allow_other);}

170  virtual string GetField1

(

bool

subfield =

true

)

const

{

return m_Field

->GetFieldName(subfield);}

189  CDualFieldPanel

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

190  bool Create

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

201  virtual

vector<string>

GetChoices

(

bool

& allow_other)

const

{

return m_Field1

->GetChoices(allow_other);}

202  virtual string GetField1

(

bool

subfield =

true

)

const

{

return m_Field1

->GetFieldName(subfield);}

203  virtual string GetField2

(

bool

subfield =

true

)

const

{

return m_Field2

->GetFieldName(subfield);}

224  CDualFieldPanel

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

225  bool Create

( wxWindow* parent, wxWindowID

id

=

wxID_ANY

,

const

wxPoint& pos = wxDefaultPosition,

const

wxSize&

size

= wxDefaultSize,

long

style = wxTAB_TRAVERSAL );

236  virtual

vector<string>

GetChoices

(

bool

& allow_other)

const

{

return

m_Field->GetChoices(allow_other);}

237  virtual string GetField1

(

bool

subfield =

true

)

const

{

return

m_Field->GetFieldName(subfield);}

238  virtual string GetField2

(

bool

subfield =

true

)

const

{

return

m_Field->GetFieldName2(subfield);}

255 

EVT_COMMAND(

wxID_ANY

, wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW,

CAECRFrame

::UpdateConstraintFieldType)

269  Create

(parent, wb,

id

, caption, pos,

size

, style);

277 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

283

GetSizer()->SetSizeHints(

this

);

285

Centre(wxBOTH|wxCENTRE_ON_SCREEN);

332  if

(width >= 0 && height >= 0)

333

SetSize(wxSize(width,height));

338  if

(pos_x >= 0 && pos_y >= 0) {

340  for

(

unsigned i

= 0;

i

< wxDisplay::GetCount();

i

++)

342

wxDisplay display(

i

);

343

max_x += display.GetGeometry().GetWidth();

345  if

(pos_x + width > max_x)

346

pos_x = wxGetDisplaySize().GetWidth() - width - 5;

348  if

(pos_y + height > wxGetDisplaySize().GetHeight())

349

pos_y = wxGetDisplaySize().GetHeight()-height-5;

351

SetPosition(wxPoint(pos_x,pos_y));

372

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

373

SetSizer(itemBoxSizer1);

375

wxPanel* parentPanel =

new

wxPanel(

this

,

wxID_ANY

);

376

itemBoxSizer1->Add(parentPanel, 1, wxGROW, 0);

378

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

379

parentPanel->SetSizer(itemBoxSizer2);

383

itemBoxSizer2->Add(

m_Listbook

, 0, wxALIGN_LEFT|wxALL, 5);

407  m_Listbook

->AddPage(page8,

wxT

(

"Remove Outside"

),

false

);

415

itemBoxSizer2->Add(

m_Constraint

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

418

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

419

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL, 0);

423  m_ClearWhenChanging

=

new

wxCheckBox( parentPanel,

wxID_ANY

,

_

(

"Clear when changing actions"

), wxDefaultPosition, wxDefaultSize, 0 );

429

itemBoxSizer3->Add(

m_OkCancel

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

466  string

field = panel->

GetField1

(

false

);

477

wxWindowList &slist = win->GetChildren();

478  for

(wxWindowList::iterator iter = slist.begin(); iter != slist.end(); ++iter)

480

wxWindow* child = *iter;

492

wxWindowList &slist = win->GetChildren();

493  for

(wxWindowList::iterator iter = slist.begin(); iter != slist.end(); ++iter)

495

wxWindow* child = *iter;

499  if

(fieldvalue_panel)

503  if

(strcomm_fields_panel)

516

wxWindow *win =

m_Listbook

->GetCurrentPage();

537

wxWindow *win =

m_Listbook

->GetCurrentPage();

562

wxWindow *win =

m_Listbook

->GetCurrentPage();

573  if

(!title.IsEmpty())

590

wxWindow *win =

m_Listbook

->GetCurrentPage();

591

wxWindow* parentPanel =

m_Listbook

->GetParent();

594

win->Reparent(parentPanel);

595

parentPanel->GetSizer()->Prepend(win, 0, wxGROW|wxALL, 5);

601

GetSizer()->SetSizeHints(

this

);

603

Centre(wxBOTH|wxCENTRE_ON_SCREEN);

611

wxWindow *win =

m_Listbook

->GetCurrentPage();

628  int

uc =

event

.GetKeyCode();

629  if

(uc == WXK_RETURN)

653

wxMessageBox(

ToWxString

(

"No data was selected"

),

wxT

(

"Error"

), wxOK | wxICON_ERROR,

NULL

);

667  if

(sel == wxNOT_FOUND)

670

wxWindow *win =

m_Listbook

->GetCurrentPage();

692

subtype, ncRNA_class);

694

action1->SetConstraint(constraint);

705  cmd

= action1->GetActionCommand();

723

wxWindow* win =

m_Notebook

->GetCurrentPage();

736

wxWindow* parentPanel =

m_Notebook

->GetParent();

737

wxWindow* win =

m_Notebook

->GetCurrentPage();

740

win->Reparent(parentPanel);

741

parentPanel->GetSizer()->Prepend(win, 0, wxGROW|wxALL, 5);

750

vector<string> choices;

753

wxWindow* win =

m_Notebook

->GetCurrentPage();

769

wxWindow* win =

m_Notebook

->GetCurrentPage();

785

wxWindow* win =

m_Notebook

->GetCurrentPage();

801  if

(sel != wxNOT_FOUND)

814

wxWindow* win =

m_Notebook

->GetCurrentPage();

830

wxWindow* win =

m_Notebook

->GetCurrentPage();

845

wxWindow *win =

m_Notebook

->GetCurrentPage();

868

win = win->GetParent();

918  if

(constraint_panel)

921

action1->SetConstraint(constraint);

923

action1->ResetChangedValues();

924

action1->SetMaxRecords(100);

926  if

(!action1->GetChangedValues().empty())

928  val

= action1->GetChangedValues().front();

939  bool value

(

false

);

950  bool value

(

false

);

968  cmd

=

CreateAction

(seh, field2, field_type, subtype2, ncRNA_class, submit);

983  cmd

=

CreateAction

(seh, field1, field_type, subtype1, ncRNA_class, submit);

988 template

<

template

<

typename

T2>

class

T1>

994 template

<

template

<

typename

T2>

class

T1>

996

: m_composed(composed)

1002 template

<

template

<

typename

T2>

class

T1>

1005

wxPanel::Create( parent,

id

, pos,

size

, style );

1009

GetSizer()->SetSizeHints(

this

);

1015 template

<

template

<

typename

T2>

class

T1>

1020 template

<

template

<

typename

T2>

class

T1>

1024

m_SpecificQual =

NULL

;

1027 template

<

template

<

typename

T2>

class

T1>

1032

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1033

itemPanel1->SetSizer(itemBoxSizer2);

1035

m_Notebook =

new

wxNotebook(itemPanel1,

wxID_ANY

, wxDefaultPosition, wxDefaultSize);

1036

itemBoxSizer2->Add(m_Notebook, 0, wxGROW|wxALL, 5);

1039

T1<CSourceFieldNamePanel> *panel1 =

new

T1<CSourceFieldNamePanel>(m_Notebook);

1040

m_Notebook->AddPage(panel1,

_

(

"Taxname"

));

1041

panel1->SetFieldName(

"taxname"

);

1043

T1<CSourceFieldNamePanel> *panel2 =

new

T1<CSourceFieldNamePanel>(m_Notebook);

1044

m_Notebook->AddPage(panel2,

_

(

"Source"

));

1045

panel2->AddAdditionalItems(m_composed);

1047

T1<CFeatureFieldNamePanel> *panel3 =

new

T1<CFeatureFieldNamePanel>(m_Notebook);

1048

m_Notebook->AddPage(panel3,

_

(

"Feature"

));

1050

T1<CCDSGeneProtFieldNamePanel> *panel4 =

new

T1<CCDSGeneProtFieldNamePanel>(m_Notebook);

1051

m_Notebook->AddPage(panel4,

_

(

"CDS-Gene-Prot-mRNA"

));

1052

panel4->SetFieldName(

"protein name"

);

1054

T1<CRNAFieldNamePanel> *panel5 =

new

T1<CRNAFieldNamePanel>(m_Notebook);

1055

m_Notebook->AddPage(panel5,

_

(

"RNA"

));

1056

panel5->SetFieldName(

"product"

);

1058

T1<CFieldHandlerNamePanel> *panel6 =

new

T1<CFieldHandlerNamePanel>(m_Notebook);

1060

m_Notebook->AddPage(panel6,

_

(

"MolInfo"

));

1061

panel6->SetFieldName(

"molecule"

);

1063

T1<CFieldHandlerNamePanel> *panel7 =

new

T1<CFieldHandlerNamePanel>(m_Notebook);

1065

m_Notebook->AddPage(panel7,

_

(

"Pub"

));

1066

panel7->SetFieldName(

"title"

);

1068

T1<CStructCommentFieldPanel> *panel8 =

new

T1<CStructCommentFieldPanel>(m_Notebook);

1069

m_Notebook->AddPage(panel8,

_

(

"Structured Comment"

));

1071

T1<CFieldHandlerNamePanel> *panel9 =

new

T1<CFieldHandlerNamePanel>(m_Notebook);

1073

m_Notebook->AddPage(panel9,

_

(

"DBLink"

));

1074

panel9->SetFieldName(

"title"

);

1076

T1<CFieldHandlerNamePanel> *panel10 =

new

T1<CFieldHandlerNamePanel>(m_Notebook);

1078

m_Notebook->AddPage(panel10,

_

(

"Misc"

));

1081

wxCommandEvent fieldTypeEvent2(wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW,

GetId

());

1082

fieldTypeEvent2.SetEventObject(

this

);

1083

GetEventHandler()->ProcessEvent(fieldTypeEvent2);

1086 template

<

template

<

typename

T2>

class

T1>

1089

wxCommandEvent fieldTypeEvent2(wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW);

1090

fieldTypeEvent2.SetEventObject(

this

);

1091

GetEventHandler()->ProcessEvent(fieldTypeEvent2);

1093

wxCommandEvent fieldTypeEvent3(wxEVT_COMMAND_UPDATE_AECR_QUAL_CHOICES);

1094

fieldTypeEvent3.SetEventObject(

this

);

1095

GetEventHandler()->ProcessEvent(fieldTypeEvent3);

1100 template

<

template

<

typename

T2>

class

T1>

1106 template

<

template

<

typename

T2>

class

T1>

1109  for

(

size_t i

= 0;

i

< m_Notebook->GetPageCount();

i

++)

1111  if

(m_Notebook->GetPageText(

i

) ==

_

(

"Feature"

))

1113

wxWindow *win = m_Notebook->GetPage(

i

);

1121 template

<

template

<

typename

T2>

class

T1>

1127 template

<

template

<

typename

T2>

class

T1>

1131  return

wxNullBitmap;

1134 template

<

template

<

typename

T2>

class

T1>

1162

wxPanel::Create( parent,

id

, pos,

size

, style );

1167

GetSizer()->SetSizeHints(

this

);

1188

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1189

itemPanel1->SetSizer(itemBoxSizer2);

1194

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1201

wxArrayString choice_strings;

1205  ITERATE

(vector<string>, it, choices) {

1210

itemBoxSizer2->Add(

m_ApplyChoiceBox

, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

1226

wxArrayString choice_strings;

1230  ITERATE

(vector<string>, it, choices)

1266  if

(

val

.empty() && old_sel != wxNOT_FOUND)

1287

action1->SetExistingText(existing_text);

1288

action1->Apply(

val

);

1308  return

wxNullBitmap;

1337

wxPanel::Create( parent,

id

, pos,

size

, style );

1342

GetSizer()->SetSizeHints(

this

);

1362

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1363

itemPanel1->SetSizer(itemBoxSizer2);

1368

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1376

itemBoxSizer2->Add(

m_EditOptions

, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

1433  return

wxNullBitmap;

1461

wxPanel::Create( parent,

id

, pos,

size

, style );

1466

GetSizer()->SetSizeHints(

this

);

1484

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1485

itemPanel1->SetSizer(itemBoxSizer2);

1488

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1491

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

1492

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);

1503

itemBoxSizer2->Add(

m_CapChangeOptions

, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

1508

action2->SetExistingText(existing_text);

1516

action1->ConvertFrom(cap_change,

m_LeaveOriginal

->IsChecked(), strip_name, action2);

1538  return

wxNullBitmap;

1567

wxPanel::Create( parent,

id

, pos,

size

, style );

1572

GetSizer()->SetSizeHints(

this

);

1590

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1591

itemPanel1->SetSizer(itemBoxSizer2);

1595

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1598

itemBoxSizer2->Add(

m_ParseOptions

, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

1603

action2->SetExistingText(existing_text);

1624  return

wxNullBitmap;

1653

wxPanel::Create( parent,

id

, pos,

size

, style );

1658

GetSizer()->SetSizeHints(

this

);

1676

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1677

itemPanel1->SetSizer(itemBoxSizer2);

1681

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1707  return

wxNullBitmap;

1735

wxPanel::Create( parent,

id

, pos,

size

, style );

1740

GetSizer()->SetSizeHints(

this

);

1758

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1759

itemPanel1->SetSizer(itemBoxSizer2);

1763

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1785  return

wxNullBitmap;

1813

wxPanel::Create( parent,

id

, pos,

size

, style );

1818

GetSizer()->SetSizeHints(

this

);

1836

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1837

itemPanel1->SetSizer(itemBoxSizer2);

1841

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1846

action2->SetExistingText(existing_text);

1847

action1->CopyFrom(action2);

1867  return

wxNullBitmap;

1895

wxPanel::Create( parent,

id

, pos,

size

, style );

1900

GetSizer()->SetSizeHints(

this

);

1918

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1919

itemPanel1->SetSizer(itemBoxSizer2);

1923

itemBoxSizer2->Add(panel, 0, wxGROW, 0);

1928

action1->SwapFrom(action2);

1948  return

wxNullBitmap;

1958 template

<

typename

T>

1964 template

<

typename

T>

1968

Create(parent,

id

, pos,

size

, style);

1971 template

<

typename

T>

1974

wxPanel::Create( parent,

id

, pos,

size

, style );

1979

GetSizer()->SetSizeHints(

this

);

1985 template

<

typename

T>

1990 template

<

typename

T>

1995 template

<

typename

T>

2000

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

2001

itemPanel1->SetSizer(itemBoxSizer2);

2003

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

2004

itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);

2006

m_Field =

new T

(itemPanel1);

2007

itemBoxSizer3->Add(m_Field, 0, wxALIGN_CENTER_HORIZONTAL, 0);

2010 template

<

typename

T>

2014  return

m_Field->SetFieldName(field);

2018 template

<

typename

T>

2022

m_Field->AddAdditionalItems();

2025 template

<

typename

T>

2031 template

<

typename

T>

2035  return

wxNullBitmap;

2038 template

<

typename

T>

2048 template

<

typename

T>

2054 template

<

typename

T>

2058

Create(parent,

id

, pos,

size

, style);

2061 template

<

typename

T>

2064

wxPanel::Create( parent,

id

, pos,

size

, style );

2069

GetSizer()->SetSizeHints(

this

);

2075 template

<

typename

T>

2080 template

<

typename

T>

2085 template

<

typename

T>

2090

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

2091

itemPanel1->SetSizer(itemBoxSizer2);

2093

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

2094

itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);

2096

wxStaticText* itemStaticText1 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"From"

), wxDefaultPosition, wxDefaultSize, 0 );

2097

itemBoxSizer3->Add(itemStaticText1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2099

m_Field1 =

new T

(itemPanel1);

2100

itemBoxSizer3->Add(m_Field1, 0, wxALIGN_CENTER_HORIZONTAL, 0);

2102

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxVERTICAL);

2103

itemBoxSizer2->Add(itemBoxSizer4, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);

2105

wxStaticText* itemStaticText2 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"To"

), wxDefaultPosition, wxDefaultSize, 0 );

2106

itemBoxSizer4->Add(itemStaticText2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2108

m_Field2 =

new T

(itemPanel1);

2109

itemBoxSizer4->Add(m_Field2, 0, wxALIGN_CENTER_HORIZONTAL, 0);

2112 template

<

typename

T>

2117  return

m_Field1->SetFieldName(field);

2122 template

<

typename

T>

2127  return

m_Field2->SetFieldName(field);

2132 template

<

typename

T>

2138 template

<

typename

T>

2142  return

wxNullBitmap;

2145 template

<

typename

T>

2166

wxPanel::Create( parent,

id

, pos,

size

, style );

2171

GetSizer()->SetSizeHints(

this

);

2189

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

2190

itemPanel1->SetSizer(itemBoxSizer2);

2192

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

2193

itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);

2196

itemBoxSizer3->Add(

m_Field

, 0, wxALIGN_CENTER_HORIZONTAL, 0);

2198

m_UpdatemRNAProduct =

new

wxCheckBox(itemPanel1,

wxID_ANY

,

wxT

(

"Make mRNA product match CDS protein name"

), wxDefaultPosition, wxDefaultSize, 0);

2199

m_UpdatemRNAProduct->SetValue(

true

);

2200

itemBoxSizer3->Add(m_UpdatemRNAProduct, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2202

m_RetranslateCds =

new

wxCheckBox(itemPanel1,

wxID_ANY

,

wxT

(

"Retranslate adjusted coding regions"

), wxDefaultPosition, wxDefaultSize, 0);

2203

m_RetranslateCds->SetValue(

false

);

2204

itemBoxSizer3->Add(m_RetranslateCds, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2209

m_UpdatemRNAProduct->Disable();

2210  string

field =

m_Field

->GetFieldName(

true

);

2213

m_UpdatemRNAProduct->Enable();

2219

m_RetranslateCds->Disable();

2220  string

field =

m_Field

->GetFieldName(

true

);

2223

m_RetranslateCds->Enable();

2229  return

m_UpdatemRNAProduct->IsEnabled() && m_UpdatemRNAProduct->GetValue();

2234  return

m_RetranslateCds->IsEnabled() && m_RetranslateCds->GetValue();

2240  return m_Field

->SetFieldName(field);

2252  return

wxNullBitmap;

2275

wxPanel::Create( parent,

id

, pos,

size

, style );

2280

GetSizer()->SetSizeHints(

this

);

2298

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

2299

itemPanel1->SetSizer(itemBoxSizer1);

2301

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

2302

itemBoxSizer1->Add(itemBoxSizer2, 1, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);

2304

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

2305

itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);

2307

wxStaticText* itemStaticText1 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"From"

), wxDefaultPosition, wxDefaultSize, 0 );

2308

itemBoxSizer3->Add(itemStaticText1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2311

itemBoxSizer3->Add(

m_Field1

, 0, wxALIGN_CENTER_HORIZONTAL, 0);

2313

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxVERTICAL);

2314

itemBoxSizer2->Add(itemBoxSizer4, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);

2316

wxStaticText* itemStaticText2 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"To"

), wxDefaultPosition, wxDefaultSize, 0 );

2317

itemBoxSizer4->Add(itemStaticText2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2320

itemBoxSizer4->Add(

m_Field2

, 0, wxALIGN_CENTER_HORIZONTAL, 0);

2322

m_UpdatemRNAProduct =

new

wxCheckBox(itemPanel1,

wxID_ANY

,

wxT

(

"Make mRNA product match CDS protein name"

), wxDefaultPosition, wxDefaultSize, 0);

2323

m_UpdatemRNAProduct->SetValue(

true

);

2324

itemBoxSizer1->Add(m_UpdatemRNAProduct, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2326

m_RetranslateCds =

new

wxCheckBox(itemPanel1,

wxID_ANY

,

wxT

(

"Retranslate adjusted coding regions"

), wxDefaultPosition, wxDefaultSize, 0);

2327

m_RetranslateCds->SetValue(

false

);

2328

itemBoxSizer1->Add(m_RetranslateCds, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

2333

m_UpdatemRNAProduct->Disable();

2334  string

field1 =

m_Field1

->GetFieldName(

true

);

2335  string

field2 =

m_Field2

->GetFieldName(

true

);

2338

m_UpdatemRNAProduct->Enable();

2344  return

m_UpdatemRNAProduct->IsEnabled() && m_UpdatemRNAProduct->GetValue();

2349

m_RetranslateCds->Disable();

2350  string

field =

m_Field2

->GetFieldName(

true

);

2353

m_RetranslateCds->Enable();

2359  return

m_RetranslateCds->IsEnabled() && m_RetranslateCds->GetValue();

2366  return m_Field1

->SetFieldName(field);

2375  return m_Field2

->SetFieldName(field);

2388  return

wxNullBitmap;

2411

wxPanel::Create( parent,

id

, pos,

size

, style );

2416

GetSizer()->SetSizeHints(

this

);

2434

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

2435

itemPanel1->SetSizer(itemBoxSizer1);

2438

itemBoxSizer1->Add(m_Field, 0, wxALIGN_CENTER_HORIZONTAL, 0);

2445  return

m_Field->SetFieldName(field);

2454  return

m_Field->SetFieldName2(field);

2467  return

wxNullBitmap;

static const char * kFramePosX

static const char * kFrameHeight

wxDEFINE_EVENT(wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW, wxCommandEvent)

static const char * kFramePosY

static const char * kFrameWidth

#define ID_AECR_AUTOPOPULATE_EDIT_CHECKBOX

#define ID_AECR_LEAVE_ORIGINAL_CONVERT_CHECKBOX

#define ID_AECR_FRAME_LISTBOOK

#define ID_AECR_AUTOPOPULATE_APPLY_CHECKBOX

#define ID_AECR_STRIP_NAME_CONVERT_CHECKBOX

#define ID_AECR_AUTOPOPULATE_APPLY_COMBOBOX

#define ID_AECR_FRAME_LISTVIEW

wxIcon GetIconResource(const wxString &name)

void SetInitParameters(EActionType action_type, EFieldType field_type, const string &field=kEmptyStr, const wxString &title=wxEmptyString)

void AfterPageChange(wxBookCtrlEvent &event)

void BeforePageChange(wxBookCtrlEvent &event)

virtual void LoadSettings()

wxBitmap GetBitmapResource(const wxString &name)

bool Create(wxWindow *parent, IWorkbench *wb, wxWindowID id=wxID_ANY, const wxString &caption=_("Apply Edit Convert Remove"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

void UpdateStructuredCommentFields(wxWindow *win, const set< string > &fields)

void OnKeyDown(wxKeyEvent &event)

COkCancelPanel * m_OkCancel

virtual void SaveSettings() const

wxCheckBox * m_ClearWhenChanging

CAdvancedConstraintPanel * GetConstraintPanel(void)

virtual CRef< CCmdComposite > GetCommand()

static bool ShowToolTips()

void UpdateChildrenFeaturePanels(wxWindow *win, vector< const CFeatListItem * > *featlist)

virtual void SetRegistryPath(const string &reg_path)

CSeq_entry_Handle GetTopSeqEntryHandle(void)

CConstRef< objects::CSeq_submit > GetSeqSubmit(void)

IActionPanel * m_ActionPanel

virtual void UpdateEditor(void)

CAdvancedConstraintPanel * m_Constraint

void UnbindNotebookPageChanged()

virtual string GetErrorMessage()

void UpdateConstraintFieldType(wxCommandEvent &event)

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

void SetSelection(int page)

virtual void ExecuteCmd(CRef< CCmdComposite > cmd)

CConstRef< objects::CSeq_submit > m_SeqSubmit

objects::CSeq_entry_Handle m_TopSeqEntry

bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)

bool GetTopLevelSeqEntryAndProcessor()

edit::EExistingText x_GetExistingTextHandling(int num_conflicts, bool allow_multiple=false)

objects::ECapChange GetCapitalizationRequest()

static vector< string > GetFieldNames()

CCDSGeneProtFieldNamePanel * m_Field2

wxCheckBox * m_RetranslateCds

virtual string GetField1(bool subfield=true) const

virtual CFieldNamePanel * GetFieldNamePanel1(void)

CCDSGeneProtFieldNamePanel * m_Field1

virtual CFieldNamePanel * GetFieldNamePanel2(void)

wxCheckBox * m_UpdatemRNAProduct

wxDECLARE_NO_COPY_CLASS(CDualFieldPanel)

virtual vector< string > GetChoices(bool &allow_other) const

virtual string GetField2(bool subfield=true) const

wxDECLARE_NO_COPY_CLASS(CDualFieldPanel)

virtual string GetField1(bool subfield=true) const

virtual CFieldNamePanel * GetFieldNamePanel1(void)

virtual CFieldNamePanel * GetFieldNamePanel2(void)

virtual string GetField2(bool subfield=true) const

CDualRNAFieldNamePanel * m_Field

virtual vector< string > GetChoices(bool &allow_other) const

virtual bool SetFieldName(const string &field)

static bool ShowToolTips()

virtual string GetField2(bool subfield=true) const

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)

wxIcon GetIconResource(const wxString &name)

wxDECLARE_NO_COPY_CLASS(CDualFieldPanel)

virtual CFieldNamePanel * GetFieldNamePanel1(void)

virtual CFieldNamePanel * GetFieldNamePanel2(void)

virtual string GetField1(bool subfield=true) const

virtual ~CDualFieldPanel()

void SetFieldNames(const vector< string > &field_names)

virtual bool SetFieldName2(const string &field)

virtual vector< string > GetChoices(bool &allow_other) const

void AddAdditionalItems(bool composed)

macro::CMacroFunction_EditStringQual::ESearchLoc GetSearchLoc(void)

void SetFind(const string &str)

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

static EFieldType GetFieldTypeFromName(const string &field_type_name)

virtual void ClearValues(void)

CRegistryWriteView GetWriteView(const string &section)

get a read-write view at a particular level.

static CGuiRegistry & GetInstance()

access the application-wide singleton

CRegistryReadView GetReadView(const string &section) const

get a read-only view at a particular level.

static vector< string > GetStrings()

static vector< string > GetFieldNames()

CRef< objects::edit::CParseTextOptions > GetParseOptions()

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

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)

virtual void ClearValues(void)

wxIcon GetIconResource(const wxString &name)

wxComboBox * m_ApplyChoiceBox

void OnAutopopulateOptClick(wxCommandEvent &event)

static bool ShowToolTips()

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

void x_Autopopulate(void)

void OnUpdateQualChoices(wxCommandEvent &event)

virtual ~CQualApplyPanel()

wxCheckBox * m_AutopopulateOpt

void OnTextEnter(wxCommandEvent &event)

virtual void UpdateQualChoices(void)

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

wxCheckBox * m_LeaveOriginal

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

wxBitmap GetBitmapResource(const wxString &name)

static bool ShowToolTips()

wxIcon GetIconResource(const wxString &name)

virtual ~CQualConvertPanel()

CCapChangePanel * m_CapChangeOptions

virtual void ClearValues(void)

wxCheckBox * m_StripNameFromText

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

virtual ~CQualCopyPanel()

wxIcon GetIconResource(const wxString &name)

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

wxBitmap GetBitmapResource(const wxString &name)

virtual void ClearValues(void)

static bool ShowToolTips()

void x_Autopopulate(void)

void OnUpdateQualChoices(wxCommandEvent &event)

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

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

virtual void ClearValues(void)

wxIcon GetIconResource(const wxString &name)

static bool ShowToolTips()

wxCheckBox * m_AutopopulateOpt

virtual void UpdateQualChoices(void)

virtual ~CQualEditPanel()

void OnAutopopulateOptClick(wxCommandEvent &event)

CEditTextOptionsPanel * m_EditOptions

wxBitmap GetBitmapResource(const wxString &name)

void SetShowLegalOnly(bool show)

wxDECLARE_NO_COPY_CLASS(CQualPanel)

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

void OnPageChanged(wxBookCtrlEvent &event)

virtual void UnbindNotebookPageChanged()

wxBitmap GetBitmapResource(const wxString &name)

static bool ShowToolTips()

wxIcon GetIconResource(const wxString &name)

wxBitmap GetBitmapResource(const wxString &name)

virtual ~CQualParsePanel()

CParseTextOptionsDlg * m_ParseOptions

wxIcon GetIconResource(const wxString &name)

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

static bool ShowToolTips()

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

virtual void ClearValues(void)

wxBitmap GetBitmapResource(const wxString &name)

virtual ~CQualRemoveOutsidePanel()

CRemoveTextOutsideStringPanel * m_RemoveTextOutsideOptions

CQualRemoveOutsidePanel()

static bool ShowToolTips()

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

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

wxIcon GetIconResource(const wxString &name)

virtual void ClearValues(void)

wxIcon GetIconResource(const wxString &name)

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

static bool ShowToolTips()

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

virtual void ClearValues(void)

virtual ~CQualRemovePanel()

wxBitmap GetBitmapResource(const wxString &name)

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

wxIcon GetIconResource(const wxString &name)

wxBitmap GetBitmapResource(const wxString &name)

virtual ~CQualSwapPanel()

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

static bool ShowToolTips()

virtual void ClearValues(void)

class CRegistryReadView provides a nested hierarchical view at a particular key.

int GetInt(const string &key, int default_val=0) const

access a named key at this level, with no recursion

void Set(const string &key, int val)

access a named key at this level, with no recursion

CRef< macro::CRemoveTextOptions > GetRemoveTextOptions()

virtual string GetField1(bool subfield=true) const

CCDSGeneProtFieldNamePanel * m_Field

wxCheckBox * m_UpdatemRNAProduct

wxCheckBox * m_RetranslateCds

virtual vector< string > GetChoices(bool &allow_other) const

virtual CFieldNamePanel * GetFieldNamePanel1(void)

wxDECLARE_NO_COPY_CLASS(CSingleFieldPanel)

static bool ShowToolTips()

wxDECLARE_NO_COPY_CLASS(CSingleFieldPanel)

virtual bool SetFieldName(const string &field)

virtual vector< string > GetChoices(bool &allow_other) const

virtual CFieldNamePanel * GetFieldNamePanel1(void)

void SetShowLegalOnly(bool show)

void SetFieldNames(const vector< string > &field_names)

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

virtual string GetField1(bool subfield=true) const

wxIcon GetIconResource(const wxString &name)

void AddAdditionalItems(bool composed)

wxBitmap GetBitmapResource(const wxString &name)

virtual ~CSingleFieldPanel()

void ListStructCommentFields(const set< string > &field_names)

string GetField1(bool subfield=true) const

string GetAutopopulateValue(wxWindow *parent_win)

CFieldNamePanel * GetFieldNamePanel2(void)

CAECRFrame * GetBaseFrame(wxWindow *win)

virtual void ClearValues(void)

bool GetUpdateMRNAProductFlag(void) const

string GetFieldType(void) const

virtual bool IsAction2Required(void)

virtual CIRef< IEditingAction > CreateAction2(CSeq_entry_Handle seh, CConstRef< objects::CSeq_submit > submit)

virtual void UpdateQualChoices(void)

virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)

CFieldNamePanel * GetFieldNamePanel1(void)

int GetSelection(void) const

string GetField2(bool subfield=true) const

CIRef< IEditingAction > CreateAction2_imp(CSeq_entry_Handle seh, CConstRef< objects::CSeq_submit > submit)

void SetSelection(int page, const string &field1=kEmptyStr, const string &field2=kEmptyStr)

virtual int CheckForExistingText(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2)

CIRef< IEditingAction > CreateAction1(CSeq_entry_Handle seh, CConstRef< objects::CSeq_submit > submit)

bool GetRetranslateCds(void) const

CFieldNamePanel * GetFieldNamePanel1(void)

CFieldNamePanel * GetFieldNamePanel2(void)

ISpecificQual * m_SpecificQual

ISpecificQual * GetSpecificQualPanel(void)

string GetField2(bool subfield=true) const

virtual void UnbindNotebookPageChanged()

vector< string > GetChoices(bool &allow_other) const

void SetSelection(int page, const string &field1=kEmptyStr, const string &field2=kEmptyStr)

string GetField1(bool subfield=true) const

string GetFieldType(void) const

int GetSelection(void) const

virtual void UpdateRetranslateCds(void)

virtual bool GetRetranslateCds(void) const

virtual bool SetFieldName2(const string &field)

virtual vector< string > GetChoices(bool &allow_other) const =0

virtual void UpdateMRNAbutton(void)

virtual string GetField1(bool subfield=true) const

virtual void SetShowLegalOnly(bool show)

virtual string GetField2(bool subfield=true) const

virtual bool SetFieldName(const string &field)

virtual bool GetUpdateMRNAProductFlag(void) const

virtual CFieldNamePanel * GetFieldNamePanel1(void)

virtual CFieldNamePanel * GetFieldNamePanel2(void)

IWorkbench is the central interface in the application framework.

int GetSubtype(CFieldNamePanel *field_name_panel, string &ncRNA_class)

CIRef< IEditingAction > CreateAction(CSeq_entry_Handle seh, const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class=kEmptyStr, CConstRef< objects::CSeq_submit > submit=CConstRef< objects::CSeq_submit >(NULL))

const char * kDefinitionLineLabel

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

vector< const objects::CFeatListItem * > GetSortedFeatList(objects::CSeq_entry_Handle seh, size_t max=numeric_limits< size_t >::max())

const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)

If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)

Check if a string is blank (has no text).

static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)

Case-insensitive equality of a substring with another string.

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

const GenericPointer< typename T::ValueType > T2 value

static void SetTitle(CRef< CSeq_entry > entry, string title)

wxString ToWxString(const string &s)

wxRect GetScreenRect(const wxWindow &win)


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