NCBI C++ ToolKit
edit_feat_loc_panel.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: edit_feat_loc_panel.cpp 34894 2016-02-26 19:03:19Z asztalos $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Colleen Bollin
27  */
28 
29 
30 #include <ncbi_pch.hpp>
31 
32 ////@begin includes
33 ////@end includes
34 #include <wx/stattext.h>
35 #include <wx/sizer.h>
36 
38 
39 ////@begin XPM images
40 ////@end XPM images
41 
44 
45 /*!
46  * CEditFeatLocPanel type definition
47  */
48 
49 IMPLEMENT_DYNAMIC_CLASS( CEditFeatLocPanel, wxPanel )
50 
51 
52 /*!
53  * CEditFeatLocPanel event table definition
54  */
55 
56 BEGIN_EVENT_TABLE( CEditFeatLocPanel, wxPanel )
57 
58 ////@begin CEditFeatLocPanel event table entries
59  EVT_CHOICE( ID_EFL_PARTIAL5, CEditFeatLocPanel::OnEflPartial5Selected )
60  EVT_CHOICE( ID_EFL_PARTIAL3, CEditFeatLocPanel::OnEflPartial3Selected )
61 ////@end CEditFeatLocPanel event table entries
62 
64 
65 
66 /*!
67  * CEditFeatLocPanel constructors
68  */
69 
71 {
72  Init();
73 }
74 
75 CEditFeatLocPanel::CEditFeatLocPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style )
76 {
77  Init();
78  Create(parent, id, pos, size, style);
79 }
80 
81 
82 /*!
83  * CEditFeatLocPanel creator
84  */
85 
86 bool CEditFeatLocPanel::Create( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style )
87 {
88 ////@begin CEditFeatLocPanel creation
89  wxPanel::Create( parent, id, pos, size, style );
90 
92  if (GetSizer())
93  {
94  GetSizer()->SetSizeHints(this);
95  }
96  Centre();
97 ////@end CEditFeatLocPanel creation
98  return true;
99 }
100 
101 
102 /*!
103  * CEditFeatLocPanel destructor
104  */
105 
107 {
108 ////@begin CEditFeatLocPanel destruction
109 ////@end CEditFeatLocPanel destruction
110 }
111 
112 
113 /*!
114  * Member initialisation
115  */
116 
118 {
119 ////@begin CEditFeatLocPanel member initialisation
121  m_Extend5Btn = NULL;
123  m_Extend3Btn = NULL;
127 ////@end CEditFeatLocPanel member initialisation
128  m_Retranslate = false;
129  m_AdjustGene = false;
130 }
131 
132 
133 /*!
134  * Control creation for CEditFeatLocPanel
135  */
136 
138 {
139 ////@begin CEditFeatLocPanel content construction
140  CEditFeatLocPanel* itemPanel1 = this;
141 
142  wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
143  itemPanel1->SetSizer(itemBoxSizer2);
144 
145  wxFlexGridSizer* itemFlexGridSizer3 = new wxFlexGridSizer(0, 2, 0, 0);
146  itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
147 
148  wxStaticText* itemStaticText4 = new wxStaticText( itemPanel1, wxID_STATIC, _("Partials:"), wxDefaultPosition, wxDefaultSize, 0 );
149  itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
150 
151  wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxVERTICAL);
152  itemFlexGridSizer3->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 0);
153 
154  wxBoxSizer* itemBoxSizer6 = new wxBoxSizer(wxHORIZONTAL);
155  itemBoxSizer5->Add(itemBoxSizer6, 0, wxALIGN_LEFT|wxALL, 5);
156 
157  wxStaticText* itemStaticText7 = new wxStaticText( itemPanel1, wxID_STATIC, _("5' partial:"), wxDefaultPosition, wxDefaultSize, 0 );
158  itemBoxSizer6->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
159 
160  wxArrayString m_Adjust5PartialStrings;
161  m_Adjust5PartialStrings.Add(_("Set"));
162  m_Adjust5PartialStrings.Add(_("Set only if at 5' end"));
163  m_Adjust5PartialStrings.Add(_("Set if bad start codon"));
164  m_Adjust5PartialStrings.Add(_("Set if CDS frame > 1"));
165  m_Adjust5PartialStrings.Add(_("Clear"));
166  m_Adjust5PartialStrings.Add(_("Clear if not at 5' end"));
167  m_Adjust5PartialStrings.Add(_("Clear if good start codon"));
168  m_Adjust5PartialStrings.Add(_("Do not change"));
169  m_Adjust5Partial = new wxChoice( itemPanel1, ID_EFL_PARTIAL5, wxDefaultPosition, wxDefaultSize, m_Adjust5PartialStrings, 0 );
170  m_Adjust5Partial->SetStringSelection(_("Do not change"));
171  itemBoxSizer6->Add(m_Adjust5Partial, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
172 
173  m_Extend5Btn = new wxCheckBox( itemPanel1, ID_EFL_EXTEND5, _("Extend to 5' end of sequence if setting 5' partial"), wxDefaultPosition, wxDefaultSize, 0 );
174  m_Extend5Btn->SetValue(false);
175  m_Extend5Btn->Enable(false);
176  itemBoxSizer5->Add(m_Extend5Btn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
177 
178  wxBoxSizer* itemBoxSizer10 = new wxBoxSizer(wxHORIZONTAL);
179  itemBoxSizer5->Add(itemBoxSizer10, 0, wxALIGN_LEFT|wxALL, 5);
180 
181  wxStaticText* itemStaticText11 = new wxStaticText( itemPanel1, wxID_STATIC, _("3' partial:"), wxDefaultPosition, wxDefaultSize, 0 );
182  itemBoxSizer10->Add(itemStaticText11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
183 
184  wxArrayString m_Adjust3PartialStrings;
185  m_Adjust3PartialStrings.Add(_("Set"));
186  m_Adjust3PartialStrings.Add(_("Set only if at 3' end"));
187  m_Adjust3PartialStrings.Add(_("Set if bad stop codon"));
188  m_Adjust3PartialStrings.Add(_("Clear"));
189  m_Adjust3PartialStrings.Add(_("Clear if not at 3' end"));
190  m_Adjust3PartialStrings.Add(_("Clear if good stop codon"));
191  m_Adjust3PartialStrings.Add(_("Do not change"));
192  m_Adjust3Partial = new wxChoice( itemPanel1, ID_EFL_PARTIAL3, wxDefaultPosition, wxDefaultSize, m_Adjust3PartialStrings, 0 );
193  m_Adjust3Partial->SetStringSelection(_("Do not change"));
194  itemBoxSizer10->Add(m_Adjust3Partial, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
195 
196  m_Extend3Btn = new wxCheckBox( itemPanel1, ID_EFL_EXTEND3, _("Extend to 3' end of sequence if setting 3' partial"), wxDefaultPosition, wxDefaultSize, 0 );
197  m_Extend3Btn->SetValue(false);
198  m_Extend3Btn->Enable(false);
199  itemBoxSizer5->Add(m_Extend3Btn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
200 
201  wxStaticText* itemStaticText14 = new wxStaticText( itemPanel1, wxID_STATIC, _("Join/Order/Merge:"), wxDefaultPosition, wxDefaultSize, 0 );
202  itemFlexGridSizer3->Add(itemStaticText14, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
203 
204  wxArrayString m_JoinOrderMergeStrings;
205  m_JoinOrderMergeStrings.Add(_("Do not convert location"));
206  m_JoinOrderMergeStrings.Add(_("Convert location to join"));
207  m_JoinOrderMergeStrings.Add(_("Convert location to order"));
208  m_JoinOrderMergeStrings.Add(_("Convert location to single interval"));
209  m_JoinOrderMerge = new wxChoice( itemPanel1, ID_EFL_JOM, wxDefaultPosition, wxDefaultSize, m_JoinOrderMergeStrings, 0 );
210  m_JoinOrderMerge->SetStringSelection(_("Do not convert location"));
211  itemFlexGridSizer3->Add(m_JoinOrderMerge, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
212 
213  m_RetranslateBtn = new wxCheckBox( itemPanel1, ID_EFL_RETRANSLATE, _("Retranslate coding regions"), wxDefaultPosition, wxDefaultSize, 0 );
214  m_RetranslateBtn->SetValue(false);
215  itemBoxSizer2->Add(m_RetranslateBtn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
216 
217  m_AdjustGeneBtn = new wxCheckBox( itemPanel1, ID_EFL_ADJUST_GENE, _("Adjust gene location"), wxDefaultPosition, wxDefaultSize, 0 );
218  m_AdjustGeneBtn->SetValue(false);
219  itemBoxSizer2->Add(m_AdjustGeneBtn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
220 
221 ////@end CEditFeatLocPanel content construction
222 }
223 
224 
225 /*!
226  * Should we show tooltips?
227  */
228 
230 {
231  return true;
232 }
233 
234 /*!
235  * Get bitmap resources
236  */
237 
238 wxBitmap CEditFeatLocPanel::GetBitmapResource( const wxString& name )
239 {
240  // Bitmap retrieval
241 ////@begin CEditFeatLocPanel bitmap retrieval
242  wxUnusedVar(name);
243  return wxNullBitmap;
244 ////@end CEditFeatLocPanel bitmap retrieval
245 }
246 
247 /*!
248  * Get icon resources
249  */
250 
251 wxIcon CEditFeatLocPanel::GetIconResource( const wxString& name )
252 {
253  // Icon retrieval
254 ////@begin CEditFeatLocPanel icon retrieval
255  wxUnusedVar(name);
256  return wxNullIcon;
257 ////@end CEditFeatLocPanel icon retrieval
258 }
259 
260 
261 edit::CLocationEditPolicy::EPartialPolicy CEditFeatLocPanel::x_GetPartial5Policy()
262 {
263  edit::CLocationEditPolicy::EPartialPolicy policy5 = edit::CLocationEditPolicy::ePartialPolicy_eNoChange;
264  int val = m_Adjust5Partial->GetSelection();
265  switch (val) {
266  case 0:
267  policy5 = edit::CLocationEditPolicy::ePartialPolicy_eSet;
268  break;
269  case 1:
270  policy5 = edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd;
271  break;
272  case 2:
273  policy5 = edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd;
274  break;
275  case 3:
276  policy5 = edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame;
277  break;
278  case 4:
279  policy5 = edit::CLocationEditPolicy::ePartialPolicy_eClear;
280  break;
281  case 5:
282  policy5 = edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd;
283  break;
284  case 6:
285  policy5 = edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd;
286  break;
287  }
288  return policy5;
289 }
290 
291 
292 void CEditFeatLocPanel::x_SetPartial5Policy(edit::CLocationEditPolicy::EPartialPolicy partial5)
293 {
294  switch (partial5) {
295  case edit::CLocationEditPolicy::ePartialPolicy_eNoChange:
296  m_Adjust5Partial->SetSelection(7);
297  break;
298  case edit::CLocationEditPolicy::ePartialPolicy_eSet:
299  m_Adjust5Partial->SetSelection(0);
300  break;
301  case edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd:
302  m_Adjust5Partial->SetSelection(1);
303  break;
304  case edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd:
305  m_Adjust5Partial->SetSelection(2);
306  break;
307  case edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame:
308  m_Adjust5Partial->SetSelection(3);
309  break;
310  case edit::CLocationEditPolicy::ePartialPolicy_eClear:
311  m_Adjust5Partial->SetSelection(4);
312  break;
313  case edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd:
314  m_Adjust5Partial->SetSelection(5);
315  break;
316  case edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd:
317  m_Adjust5Partial->SetSelection(6);
318  break;
319  }
320 }
321 
322 
323 edit::CLocationEditPolicy::EPartialPolicy CEditFeatLocPanel::x_GetPartial3Policy()
324 {
325  edit::CLocationEditPolicy::EPartialPolicy policy3 = edit::CLocationEditPolicy::ePartialPolicy_eNoChange;
326  int val = m_Adjust3Partial->GetSelection();
327  switch (val) {
328  case 0:
329  policy3 = edit::CLocationEditPolicy::ePartialPolicy_eSet;
330  break;
331  case 1:
332  policy3 = edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd;
333  break;
334  case 2:
335  policy3 = edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd;
336  break;
337  case 3:
338  policy3 = edit::CLocationEditPolicy::ePartialPolicy_eClear;
339  break;
340  case 4:
341  policy3 = edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd;
342  break;
343  case 5:
344  policy3 = edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd;
345  break;
346  }
347  return policy3;
348 }
349 
350 
351 void CEditFeatLocPanel::x_SetPartial3Policy(edit::CLocationEditPolicy::EPartialPolicy partial3)
352 {
353  switch (partial3) {
354  case edit::CLocationEditPolicy::ePartialPolicy_eNoChange:
355  m_Adjust3Partial->SetSelection(6);
356  break;
357  case edit::CLocationEditPolicy::ePartialPolicy_eSet:
358  m_Adjust3Partial->SetSelection(0);
359  break;
360  case edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd:
361  m_Adjust3Partial->SetSelection(1);
362  break;
363  case edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd:
364  case edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame:
365  m_Adjust3Partial->SetSelection(2);
366  break;
367  case edit::CLocationEditPolicy::ePartialPolicy_eClear:
368  m_Adjust3Partial->SetSelection(3);
369  break;
370  case edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd:
371  m_Adjust3Partial->SetSelection(4);
372  break;
373  case edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd:
374  m_Adjust3Partial->SetSelection(5);
375  break;
376  }
377 }
378 
379 
380 edit::CLocationEditPolicy::EMergePolicy CEditFeatLocPanel::x_GetMergePolicy()
381 {
382  edit::CLocationEditPolicy::EMergePolicy merge = edit::CLocationEditPolicy::eMergePolicy_NoChange;
383  int val = m_JoinOrderMerge->GetSelection();
384  switch (val) {
385  case 0:
386  merge = edit::CLocationEditPolicy::eMergePolicy_NoChange;
387  break;
388  case 1:
389  merge = edit::CLocationEditPolicy::eMergePolicy_Join;
390  break;
391  case 2:
392  merge = edit::CLocationEditPolicy::eMergePolicy_Order;
393  break;
394  case 3:
395  merge = edit::CLocationEditPolicy::eMergePolicy_SingleInterval;
396  break;
397  }
398  return merge;
399 }
400 
401 
402 void CEditFeatLocPanel::x_SetMergePolicy(edit::CLocationEditPolicy::EMergePolicy merge)
403 {
404  switch (merge) {
405  case edit::CLocationEditPolicy::eMergePolicy_NoChange:
406  m_JoinOrderMerge->SetSelection(0);
407  break;
408  case edit::CLocationEditPolicy::eMergePolicy_Join:
409  m_JoinOrderMerge->SetSelection(1);
410  break;
411  case edit::CLocationEditPolicy::eMergePolicy_Order:
412  m_JoinOrderMerge->SetSelection(2);
413  break;
414  case edit::CLocationEditPolicy::eMergePolicy_SingleInterval:
415  m_JoinOrderMerge->SetSelection(3);
416  break;
417  }
418 }
419 
420 
422 {
423  edit::CLocationEditPolicy::EPartialPolicy policy5 = x_GetPartial5Policy();
424  switch (policy5) {
425  case edit::CLocationEditPolicy::ePartialPolicy_eNoChange:
426  case edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd:
427  case edit::CLocationEditPolicy::ePartialPolicy_eClear:
428  case edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd:
429  case edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd:
430  m_Extend5Btn->Enable(false);
431  break;
432  case edit::CLocationEditPolicy::ePartialPolicy_eSet:
433  case edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd:
434  case edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame:
435  m_Extend5Btn->Enable(true);
436  break;
437  }
438 }
439 
440 
442 {
443  edit::CLocationEditPolicy::EPartialPolicy policy3 = x_GetPartial3Policy();
444  switch (policy3) {
445  case edit::CLocationEditPolicy::ePartialPolicy_eNoChange:
446  case edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd:
447  case edit::CLocationEditPolicy::ePartialPolicy_eClear:
448  case edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd:
449  case edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd:
450  m_Extend3Btn->Enable(false);
451  break;
452  case edit::CLocationEditPolicy::ePartialPolicy_eSet:
453  case edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd:
454  case edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame:
455  m_Extend3Btn->Enable(true);
456  break;
457  }
458 }
459 
460 
462 {
463  if (policy) {
464  x_SetPartial5Policy(policy->GetPartial5Policy());
465  x_SetPartial3Policy(policy->GetPartial3Policy());
466  x_SetMergePolicy(policy->GetMergePolicy());
467  m_Extend5Btn->SetValue(policy->GetExtend5());
468  m_Extend3Btn->SetValue(policy->GetExtend3());
469  } else {
470  x_SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eNoChange);
471  x_SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eNoChange);
472  x_SetMergePolicy(edit::CLocationEditPolicy::eMergePolicy_NoChange);
473  m_Extend5Btn->SetValue(false);
474  m_Extend3Btn->SetValue(false);
475  }
478 }
479 
480 
482 {
483  edit::CLocationEditPolicy::EPartialPolicy policy5 = x_GetPartial5Policy();
484  edit::CLocationEditPolicy::EPartialPolicy policy3 = x_GetPartial3Policy();
485  edit::CLocationEditPolicy::EMergePolicy merge = x_GetMergePolicy();
486  bool extend5 = m_Extend5Btn->GetValue();
487  bool extend3 = m_Extend3Btn->GetValue();
488 
489  CRef<edit::CLocationEditPolicy> policy(new edit::CLocationEditPolicy(policy5, policy3, extend5, extend3, merge));
490  return policy;
491 }
492 
493 
495 {
496  m_Retranslate = val;
497  m_RetranslateBtn->SetValue(val);
498 }
499 
500 
502 {
503  return m_RetranslateBtn->GetValue();
504 }
505 
506 
508 {
509  m_AdjustGene = val;
510  m_AdjustGeneBtn->SetValue(val);
511 }
512 
513 
515 {
516  return m_AdjustGeneBtn->GetValue();
517 }
518 
519 
520 /*!
521  * wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_PARTIAL5
522  */
523 
524 void CEditFeatLocPanel::OnEflPartial5Selected( wxCommandEvent& event )
525 {
527 }
528 
529 
530 /*!
531  * wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_PARTIAL3
532  */
533 
534 void CEditFeatLocPanel::OnEflPartial3Selected( wxCommandEvent& event )
535 {
536  edit::CLocationEditPolicy::EPartialPolicy policy3 = x_GetPartial3Policy();
537  switch (policy3) {
538  case edit::CLocationEditPolicy::ePartialPolicy_eNoChange:
539  case edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd:
540  case edit::CLocationEditPolicy::ePartialPolicy_eClear:
541  case edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd:
542  case edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd:
543  m_Extend3Btn->Enable(false);
544  break;
545  case edit::CLocationEditPolicy::ePartialPolicy_eSet:
546  case edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd:
547  case edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame:
548  m_Extend3Btn->Enable(true);
549  break;
550  }
551 }
552 
553 
void x_SetPartial5Policy(objects::edit::CLocationEditPolicy::EPartialPolicy partial5)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
static bool ShowToolTips()
Should we show tooltips?
CEditFeatLocPanel()
Constructors.
void x_SetPartial3Policy(objects::edit::CLocationEditPolicy::EPartialPolicy partial3)
objects::edit::CLocationEditPolicy::EMergePolicy x_GetMergePolicy()
objects::edit::CLocationEditPolicy::EPartialPolicy x_GetPartial3Policy()
bool Create(wxWindow *parent, wxWindowID id=ID_CEDITFEATLOCPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
CRef< objects::edit::CLocationEditPolicy > GetPolicy()
void SetPolicy(CRef< objects::edit::CLocationEditPolicy > policy)
void SetAdjustGene(bool val)
void Init()
Initialises member variables.
void OnEflPartial3Selected(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_EFL_PARTIAL3
void SetRetranslate(bool val)
void x_SetMergePolicy(objects::edit::CLocationEditPolicy::EMergePolicy merge)
objects::edit::CLocationEditPolicy::EPartialPolicy x_GetPartial5Policy()
void OnEflPartial5Selected(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_EFL_PARTIAL5
~CEditFeatLocPanel()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CRef –.
Definition: ncbiobj.hpp:618
#define _(proto)
Definition: ct_nlmzip_i.h:78
USING_SCOPE(ncbi::objects)
static void Init(void)
Definition: cursor6.c:76
#define NULL
Definition: ncbistd.hpp:225
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
END_EVENT_TABLE()
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Wed Jun 19 17:05:47 2024 by modify_doxy.py rev. 669887