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

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

34 #include "wx/wxprec.h" 99 

wxPanel::Create( parent,

id

, pos,

size

, style );

148

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

149

itemPanel2->SetSizer(itemBoxSizer1);

151

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

152

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

154

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

155

itemBoxSizer2->Add(itemBoxSizer3, 1, wxGROW, 0);

157

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

158

itemBoxSizer3->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);

160

wxStaticText* itemStaticText5 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"on"

), wxDefaultPosition, wxDefaultSize, 0 );

161

itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

163

wxArrayString m_StrandStrings;

164

m_StrandStrings.Add(

_

(

"Any strand"

));

165

m_StrandStrings.Add(

_

(

"Plus strand"

));

166

m_StrandStrings.Add(

_

(

"Minus strand"

));

167  m_Strand

=

new

wxChoice( itemPanel2,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, m_StrandStrings, 0 );

168  m_Strand

->SetStringSelection(

_

(

"Any strand"

));

169

itemBoxSizer4->Add(

m_Strand

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

171

wxStaticText* itemStaticText7 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"on"

), wxDefaultPosition, wxDefaultSize, 0 );

172

itemBoxSizer4->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

174

wxArrayString m_NucOrProtStrings;

175

m_NucOrProtStrings.Add(

_

(

"nucleotide and protein sequences"

));

176

m_NucOrProtStrings.Add(

_

(

"nucleotide sequences only"

));

177

m_NucOrProtStrings.Add(

_

(

"protein sequences only"

));

178  m_NucOrProt

=

new

wxChoice( itemPanel2,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, m_NucOrProtStrings, 0 );

179  m_NucOrProt

->SetStringSelection(

_

(

"nucleotide and protein sequences"

));

180

itemBoxSizer4->Add(

m_NucOrProt

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

182

wxBoxSizer* itemBoxSizer9 =

new

wxBoxSizer(wxHORIZONTAL);

183

itemBoxSizer3->Add(itemBoxSizer9, 0, wxGROW|wxALL, 5);

185

wxStaticText* itemStaticText10 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"5' end"

), wxDefaultPosition, wxDefaultSize, 0 );

186

itemBoxSizer9->Add(itemStaticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

188

wxArrayString m_5PartialStrings;

189

m_5PartialStrings.Add(

_

(

"Partial or Complete"

));

190

m_5PartialStrings.Add(

_

(

"Partial"

));

191

m_5PartialStrings.Add(

_

(

"Complete"

));

192  m_5Partial

=

new

wxChoice( itemPanel2,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, m_5PartialStrings, 0 );

193  m_5Partial

->SetStringSelection(

_

(

"Partial or Complete"

));

194

itemBoxSizer9->Add(

m_5Partial

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

196

wxStaticText* itemStaticText12 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"3' end"

), wxDefaultPosition, wxDefaultSize, 0 );

197

itemBoxSizer9->Add(itemStaticText12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

199

wxArrayString m_3PartialStrings;

200

m_3PartialStrings.Add(

_

(

"Partial or Complete"

));

201

m_3PartialStrings.Add(

_

(

"Partial"

));

202

m_3PartialStrings.Add(

_

(

"Complete"

));

203  m_3Partial

=

new

wxChoice( itemPanel2,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, m_3PartialStrings, 0 );

204  m_3Partial

->SetStringSelection(

_

(

"Partial or Complete"

));

205

itemBoxSizer9->Add(

m_3Partial

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

207

wxBoxSizer* itemBoxSizer14 =

new

wxBoxSizer(wxHORIZONTAL);

208

itemBoxSizer3->Add(itemBoxSizer14, 0, wxGROW|wxALL, 5);

210

wxStaticText* itemStaticText15 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"location type"

), wxDefaultPosition, wxDefaultSize, 0 );

211

itemBoxSizer14->Add(itemStaticText15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

213

wxArrayString m_LocTypeStrings;

214

m_LocTypeStrings.Add(

_

(

"Any"

));

215

m_LocTypeStrings.Add(

_

(

"Single interval"

));

216

m_LocTypeStrings.Add(

_

(

"Joined"

));

217

m_LocTypeStrings.Add(

_

(

"Ordered"

));

218  m_LocType

=

new

wxChoice( itemPanel2,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, m_LocTypeStrings, 0 );

220

itemBoxSizer14->Add(

m_LocType

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

222

wxBoxSizer* itemBoxSizer17 =

new

wxBoxSizer(wxHORIZONTAL);

223

itemBoxSizer3->Add(itemBoxSizer17, 0, wxGROW|wxALL, 5);

225

wxStaticText* itemStaticText18 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"where end of sequence is"

), wxDefaultPosition, wxDefaultSize, 0 );

226

itemBoxSizer17->Add(itemStaticText18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

228

wxArrayString m_5DistTypeStrings;

229

m_5DistTypeStrings.Add(

_

(

"Any distance"

));

230

m_5DistTypeStrings.Add(

_

(

"Exactly"

));

231

m_5DistTypeStrings.Add(

_

(

"No more than"

));

232

m_5DistTypeStrings.Add(

_

(

"No less than"

));

233  m_5DistType

=

new

wxChoice( itemPanel2,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, m_5DistTypeStrings, 0 );

234  m_5DistType

->SetStringSelection(

_

(

"Any distance"

));

235

itemBoxSizer17->Add(

m_5DistType

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

237  m_5Dist

=

new

wxTextCtrl( itemPanel2,

wxID_ANY

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

238

itemBoxSizer17->Add(

m_5Dist

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

239  m_5Dist

->SetValidator( wxTextValidator( wxFILTER_NUMERIC ) );

242

wxStaticText* itemStaticText21 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"from 5' end of the feature"

), wxDefaultPosition, wxDefaultSize, 0 );

243

itemBoxSizer17->Add(itemStaticText21, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

245

wxBoxSizer* itemBoxSizer22 =

new

wxBoxSizer(wxHORIZONTAL);

246

itemBoxSizer3->Add(itemBoxSizer22, 0, wxGROW|wxALL, 5);

248

wxStaticText* itemStaticText23 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"where end of sequence is"

), wxDefaultPosition, wxDefaultSize, 0 );

249

itemBoxSizer22->Add(itemStaticText23, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

251

wxArrayString m_3DistTypeStrings;

252

m_3DistTypeStrings.Add(

_

(

"Any distance"

));

253

m_3DistTypeStrings.Add(

_

(

"Exactly"

));

254

m_3DistTypeStrings.Add(

_

(

"No more than"

));

255

m_3DistTypeStrings.Add(

_

(

"No less than"

));

256  m_3DistType

=

new

wxChoice( itemPanel2,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, m_3DistTypeStrings, 0 );

257  m_3DistType

->SetStringSelection(

_

(

"Any distance"

));

258

itemBoxSizer22->Add(

m_3DistType

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

260  m_3Dist

=

new

wxTextCtrl( itemPanel2,

wxID_ANY

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

261

itemBoxSizer22->Add(

m_3Dist

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

262  m_3Dist

->SetValidator( wxTextValidator( wxFILTER_NUMERIC ) );

265

wxStaticText* itemStaticText26 =

new

wxStaticText( itemPanel2, wxID_STATIC,

_

(

"from 3' end of the feature"

), wxDefaultPosition, wxDefaultSize, 0 );

266

itemBoxSizer22->Add(itemStaticText26, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

322  m_5Dist

->SetValue(wxEmptyString);

331  m_3Dist

->SetValue(wxEmptyString);

342

field_type_matcher.

subtype

= -1;

351

|| (

lc

->CanGetEnd5()

353

|| (

lc

->CanGetEnd3()

358  return

make_pair(

label

, field_type_matcher);

399  int

d = wxAtoi(

m_5Dist

->GetValue());

402  case

1:

lc

->SetEnd5().SetDist_from_end(d);

break

;

403  case

2:

lc

->SetEnd5().SetMax_dist_from_end(d);

break

;

404  case

3:

lc

->SetEnd5().SetMin_dist_from_end(d);

break

;

410  int

d = wxAtoi(

m_3Dist

->GetValue());

413  case

1:

lc

->SetEnd3().SetDist_from_end(d);

break

;

414  case

2:

lc

->SetEnd3().SetMax_dist_from_end(d);

break

;

415  case

3:

lc

->SetEnd3().SetMin_dist_from_end(d);

break

;

424  string label

=

"only objects on "

;

427  case

1 :

label

+=

"plus strands of "

;

break

;

428  case

2 :

label

+=

"minus strands of "

;

break

;

433  case

1 :

label

+=

"nucleotide "

;

break

;

434  case

2 :

label

+=

"protein "

;

break

;

437  label

+=

"sequences "

;

441  case

1 : label2 +=

"5' partial "

;

break

;

442  case

2 : label2 +=

"5' complete "

;

break

;

447  case

1 : label2 +=

"3' partial "

;

break

;

448  case

2 : label2 +=

"3' complete "

;

break

;

453  case

1 : label2 +=

"with single interval "

;

break

;

454  case

2 : label2 +=

"with joined intervals "

;

break

;

455  case

3 : label2 +=

"with ordered intervals "

;

break

;

460

label2 +=

"with 5' end "

;

463  case

1: label2 +=

"exactly "

;

break

;

464  case

2: label2 +=

"no more than "

;

break

;

465  case

3: label2 +=

"no less than "

;

break

;

467

label2 +=

m_5Dist

->GetValue().ToStdString();

468

label2 +=

" from end of sequence "

;

472

label2 +=

"with 3' end "

;

475  case

1: label2 +=

"exactly "

;

break

;

476  case

2: label2 +=

"no more than "

;

break

;

477  case

3: label2 +=

"no less than "

;

break

;

479

label2 +=

m_3Dist

->GetValue().ToStdString();

480

label2 +=

" from end of sequence "

;

483  label

+=

"that are "

+ label2;

490  if

(

lc

->IsSetStrand())

492  switch

(

lc

->GetStrand())

499  if

(

lc

->IsSetSeq_type())

501  switch

(

lc

->GetSeq_type())

509  if

(

lc

->IsSetPartial5())

511  switch

(

lc

->GetPartial5())

519  if

(

lc

->IsSetPartial3())

521  switch

(

lc

->GetPartial3())

529  if

(

lc

->IsSetLocation_type())

531  switch

(

lc

->GetLocation_type())

540  if

(

lc

->IsSetEnd5())

543  if

(

lc

->GetEnd5().IsDist_from_end())

546

d <<

lc

->GetEnd5().GetDist_from_end();

548  if

(

lc

->GetEnd5().IsMax_dist_from_end())

551

d <<

lc

->GetEnd5().GetMax_dist_from_end();

553  if

(

lc

->GetEnd5().IsMin_dist_from_end())

556

d <<

lc

->GetEnd5().GetMin_dist_from_end();

561  if

(

lc

->IsSetEnd3())

564  if

(

lc

->GetEnd3().IsDist_from_end())

567

d <<

lc

->GetEnd3().GetDist_from_end();

569  if

(

lc

->GetEnd3().IsMax_dist_from_end())

572

d <<

lc

->GetEnd3().GetMax_dist_from_end();

574  if

(

lc

->GetEnd3().IsMin_dist_from_end())

577

d <<

lc

->GetEnd3().GetMin_dist_from_end();

~CLocationConstraintPanel()

Destructor.

CRef< objects::CLocation_constraint > GetLocationConstraint()

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

virtual void SetItem(const SFieldTypeAndMatcher &item)

void OnAnySelected(wxCommandEvent &event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for wxID_ANY

void Init()

Initialises member variables.

void CreateControls()

Creates the controls and sizers.

virtual pair< string, SFieldTypeAndMatcher > GetItem(CFieldNamePanel::EFieldType field_type)

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

static bool ShowToolTips()

Should we show tooltips?

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

CLocationConstraintPanel()

Constructors.

IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle

CFloatingFrame.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static const char label[]

@ eStrand_constraint_plus

@ eStrand_constraint_minus

@ eSeqtype_constraint_any

@ eSeqtype_constraint_prot

@ eSeqtype_constraint_nuc

@ ePartial_constraint_complete

@ ePartial_constraint_partial

@ ePartial_constraint_either

@ eLocation_type_constraint_ordered

@ eLocation_type_constraint_joined

@ eLocation_type_constraint_any

@ eLocation_type_constraint_single_interval

@ e_not_set

No variant selected.

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

CRef< CConstraintMatcher > matcher

CFieldNamePanel::EFieldType field_type

CRef< objects::CLocation_constraint > location_constraint


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